| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2012 Google Inc. All rights reserved. | 2  * Copyright (C) 2012 Google Inc. All rights reserved. | 
| 3  * | 3  * | 
| 4  * Redistribution and use in source and binary forms, with or without | 4  * Redistribution and use in source and binary forms, with or without | 
| 5  * modification, are permitted provided that the following conditions | 5  * modification, are permitted provided that the following conditions | 
| 6  * are met: | 6  * are met: | 
| 7  * 1.  Redistributions of source code must retain the above copyright | 7  * 1.  Redistributions of source code must retain the above copyright | 
| 8  *     notice, this list of conditions and the following disclaimer. | 8  *     notice, this list of conditions and the following disclaimer. | 
| 9  * 2.  Redistributions in binary form must reproduce the above copyright | 9  * 2.  Redistributions in binary form must reproduce the above copyright | 
| 10  *     notice, this list of conditions and the following disclaimer in the | 10  *     notice, this list of conditions and the following disclaimer in the | 
| (...skipping 29 matching lines...) Expand all  Loading... | 
| 40 class WebValidationMessageClient; | 40 class WebValidationMessageClient; | 
| 41 class WebViewImpl; | 41 class WebViewImpl; | 
| 42 | 42 | 
| 43 class ValidationMessageClientImpl : public WebCore::ValidationMessageClient { | 43 class ValidationMessageClientImpl : public WebCore::ValidationMessageClient { | 
| 44 public: | 44 public: | 
| 45     static PassOwnPtr<ValidationMessageClientImpl> create(WebViewImpl&, WebValid
    ationMessageClient&); | 45     static PassOwnPtr<ValidationMessageClientImpl> create(WebViewImpl&, WebValid
    ationMessageClient&); | 
| 46     virtual ~ValidationMessageClientImpl(); | 46     virtual ~ValidationMessageClientImpl(); | 
| 47 | 47 | 
| 48 private: | 48 private: | 
| 49     ValidationMessageClientImpl(WebViewImpl&, WebValidationMessageClient&); | 49     ValidationMessageClientImpl(WebViewImpl&, WebValidationMessageClient&); | 
| 50     void askClientToShowValidationMessage(); |  | 
| 51     void checkAnchorStatus(WebCore::Timer<ValidationMessageClientImpl>*); | 50     void checkAnchorStatus(WebCore::Timer<ValidationMessageClientImpl>*); | 
| 52     WebCore::FrameView* currentView(); | 51     WebCore::FrameView* currentView(); | 
| 53 | 52 | 
| 54     virtual void showValidationMessage(const WebCore::Element& anchor, const Str
    ing& message) OVERRIDE; | 53     virtual void showValidationMessage(const WebCore::Element& anchor, const Str
    ing& message) OVERRIDE; | 
| 55     virtual void hideValidationMessage(const WebCore::Element& anchor) OVERRIDE; | 54     virtual void hideValidationMessage(const WebCore::Element& anchor) OVERRIDE; | 
| 56     virtual bool isValidationMessageVisible(const WebCore::Element& anchor) OVER
    RIDE; | 55     virtual bool isValidationMessageVisible(const WebCore::Element& anchor) OVER
    RIDE; | 
| 57 | 56 | 
| 58     WebViewImpl& m_webView; | 57     WebViewImpl& m_webView; | 
| 59     WebValidationMessageClient& m_client; | 58     WebValidationMessageClient& m_client; | 
| 60     const WebCore::Element* m_currentAnchor; | 59     const WebCore::Element* m_currentAnchor; | 
| 61     String m_message; | 60     String m_message; | 
| 62     WebCore::IntRect m_lastAnchorRectInScreen; | 61     WebCore::IntRect m_lastAnchorRectInScreen; | 
| 63     float m_lastPageScaleFactor; | 62     float m_lastPageScaleFactor; | 
| 64     double m_finishTime; | 63     double m_finishTime; | 
| 65     WebCore::Timer<ValidationMessageClientImpl> m_timer; | 64     WebCore::Timer<ValidationMessageClientImpl> m_timer; | 
| 66 }; | 65 }; | 
| 67 | 66 | 
| 68 } | 67 } | 
| 69 | 68 | 
| 70 #endif | 69 #endif | 
| OLD | NEW | 
|---|