| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 static PassOwnPtrWillBeRawPtr<ValidationMessageClientImpl> create(WebViewImp
l&); | 46 static PassOwnPtrWillBeRawPtr<ValidationMessageClientImpl> create(WebViewImp
l&); |
| 47 virtual ~ValidationMessageClientImpl(); | 47 virtual ~ValidationMessageClientImpl(); |
| 48 | 48 |
| 49 virtual void trace(WebCore::Visitor*) OVERRIDE; | 49 virtual void trace(WebCore::Visitor*) OVERRIDE; |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 ValidationMessageClientImpl(WebViewImpl&); | 52 ValidationMessageClientImpl(WebViewImpl&); |
| 53 void checkAnchorStatus(WebCore::Timer<ValidationMessageClientImpl>*); | 53 void checkAnchorStatus(WebCore::Timer<ValidationMessageClientImpl>*); |
| 54 WebCore::FrameView* currentView(); | 54 WebCore::FrameView* currentView(); |
| 55 | 55 |
| 56 virtual void showValidationMessage(const WebCore::Element& anchor, const Str
ing& message) OVERRIDE; | 56 virtual void showValidationMessage(const WebCore::Element& anchor, const Str
ing& message, MessageType) OVERRIDE; |
| 57 virtual void hideValidationMessage(const WebCore::Element& anchor) OVERRIDE; | 57 virtual void hideValidationMessage(const WebCore::Element& anchor) OVERRIDE; |
| 58 virtual bool isValidationMessageVisible(const WebCore::Element& anchor) OVER
RIDE; | 58 virtual bool isValidationMessageVisible(const WebCore::Element& anchor) OVER
RIDE; |
| 59 virtual void documentDetached(const WebCore::Document&) OVERRIDE; | 59 virtual void documentDetached(const WebCore::Document&) OVERRIDE; |
| 60 virtual void willBeDestroyed() OVERRIDE; | 60 virtual void willBeDestroyed() OVERRIDE; |
| 61 | 61 |
| 62 WebViewImpl& m_webView; | 62 WebViewImpl& m_webView; |
| 63 RawPtrWillBeMember<const WebCore::Element> m_currentAnchor; | 63 RawPtrWillBeMember<const WebCore::Element> m_currentAnchor; |
| 64 String m_message; | 64 String m_message; |
| 65 WebCore::IntRect m_lastAnchorRectInScreen; | 65 WebCore::IntRect m_lastAnchorRectInScreen; |
| 66 float m_lastPageScaleFactor; | 66 float m_lastPageScaleFactor; |
| 67 double m_finishTime; | 67 double m_finishTime; |
| 68 WebCore::Timer<ValidationMessageClientImpl> m_timer; | 68 WebCore::Timer<ValidationMessageClientImpl> m_timer; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } | 71 } |
| 72 | 72 |
| 73 #endif | 73 #endif |
| OLD | NEW |