Implement form validation message UI
[WebKit-https.git] / Source / WebCore / html / ValidationMessage.h
index d78e3f3344636e923a8be7b668847cc9fc246dcc..5fa1f96f68aad5c7ed1f210df3ef9439b76b418c 100644 (file)
 #include "Timer.h"
 #include <wtf/Noncopyable.h>
 #include <wtf/OwnPtr.h>
+#include <wtf/RefPtr.h>
 #include <wtf/text/WTFString.h>
 
 namespace WebCore {
 
 class FormAssociatedElement;
+class HTMLElement;
 
 class ValidationMessage : public Noncopyable {
 public:
@@ -46,14 +48,19 @@ public:
     ~ValidationMessage();
     String message() const { return m_message; }
     void setMessage(const String&);
+    void requestToHideMessage();
 
 private:
     ValidationMessage(FormAssociatedElement*);
-    void hideMessage(Timer<ValidationMessage>* = 0);
+    void setMessageDOMAndStartTimer(Timer<ValidationMessage>* = 0);
+    void buildBubbleTree(Timer<ValidationMessage>*);
+    void deleteBubbleTree(Timer<ValidationMessage>* = 0);
 
     FormAssociatedElement* m_element;
     String m_message;
     OwnPtr<Timer<ValidationMessage> > m_timer;
+    RefPtr<HTMLElement> m_bubble;
+    RefPtr<HTMLElement> m_bubbleMessage;
 };
 
 } // namespace WebCore