| 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 21 matching lines...) Expand all Loading... |
| 32 #include "wtf/text/WTFString.h" | 32 #include "wtf/text/WTFString.h" |
| 33 | 33 |
| 34 namespace WebCore { | 34 namespace WebCore { |
| 35 class FrameView; | 35 class FrameView; |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class WebViewImpl; | 40 class WebViewImpl; |
| 41 | 41 |
| 42 class ValidationMessageClientImpl : public WebCore::ValidationMessageClient { | 42 class ValidationMessageClientImpl FINAL : public WebCore::ValidationMessageClien
t { |
| 43 public: | 43 public: |
| 44 static PassOwnPtr<ValidationMessageClientImpl> create(WebViewImpl&); | 44 static PassOwnPtr<ValidationMessageClientImpl> create(WebViewImpl&); |
| 45 virtual ~ValidationMessageClientImpl(); | 45 virtual ~ValidationMessageClientImpl(); |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 ValidationMessageClientImpl(WebViewImpl&); | 48 ValidationMessageClientImpl(WebViewImpl&); |
| 49 void checkAnchorStatus(WebCore::Timer<ValidationMessageClientImpl>*); | 49 void checkAnchorStatus(WebCore::Timer<ValidationMessageClientImpl>*); |
| 50 WebCore::FrameView* currentView(); | 50 WebCore::FrameView* currentView(); |
| 51 | 51 |
| 52 virtual void showValidationMessage(const WebCore::Element& anchor, const Str
ing& message) OVERRIDE; | 52 virtual void showValidationMessage(const WebCore::Element& anchor, const Str
ing& message) OVERRIDE; |
| 53 virtual void hideValidationMessage(const WebCore::Element& anchor) OVERRIDE; | 53 virtual void hideValidationMessage(const WebCore::Element& anchor) OVERRIDE; |
| 54 virtual bool isValidationMessageVisible(const WebCore::Element& anchor) OVER
RIDE; | 54 virtual bool isValidationMessageVisible(const WebCore::Element& anchor) OVER
RIDE; |
| 55 virtual void documentDetached(const WebCore::Document&) OVERRIDE; | 55 virtual void documentDetached(const WebCore::Document&) OVERRIDE; |
| 56 | 56 |
| 57 WebViewImpl& m_webView; | 57 WebViewImpl& m_webView; |
| 58 const WebCore::Element* m_currentAnchor; | 58 const WebCore::Element* m_currentAnchor; |
| 59 String m_message; | 59 String m_message; |
| 60 WebCore::IntRect m_lastAnchorRectInScreen; | 60 WebCore::IntRect m_lastAnchorRectInScreen; |
| 61 float m_lastPageScaleFactor; | 61 float m_lastPageScaleFactor; |
| 62 double m_finishTime; | 62 double m_finishTime; |
| 63 WebCore::Timer<ValidationMessageClientImpl> m_timer; | 63 WebCore::Timer<ValidationMessageClientImpl> m_timer; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } | 66 } |
| 67 | 67 |
| 68 #endif | 68 #endif |
| OLD | NEW |