| 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 11 matching lines...) Expand all Loading... |
| 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 23 * SUCH DAMAGE. | 23 * SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "web/ValidationMessageClientImpl.h" | 26 #include "web/ValidationMessageClientImpl.h" |
| 27 | 27 |
| 28 #include "core/dom/Element.h" | 28 #include "core/dom/Element.h" |
| 29 #include "core/dom/TaskRunnerHelper.h" | 29 #include "core/dom/TaskRunnerHelper.h" |
| 30 #include "core/frame/FrameView.h" | 30 #include "core/frame/FrameView.h" |
| 31 #include "platform/HostWindow.h" | 31 #include "platform/HostWindow.h" |
| 32 #include "platform/wtf/CurrentTime.h" |
| 32 #include "public/platform/WebRect.h" | 33 #include "public/platform/WebRect.h" |
| 33 #include "public/platform/WebString.h" | 34 #include "public/platform/WebString.h" |
| 34 #include "public/web/WebTextDirection.h" | 35 #include "public/web/WebTextDirection.h" |
| 35 #include "public/web/WebViewClient.h" | 36 #include "public/web/WebViewClient.h" |
| 36 #include "web/WebViewImpl.h" | 37 #include "web/WebViewImpl.h" |
| 37 #include "wtf/CurrentTime.h" | |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 ValidationMessageClientImpl::ValidationMessageClientImpl(WebViewImpl& webView) | 41 ValidationMessageClientImpl::ValidationMessageClientImpl(WebViewImpl& webView) |
| 42 : m_webView(webView), | 42 : m_webView(webView), |
| 43 m_currentAnchor(nullptr), | 43 m_currentAnchor(nullptr), |
| 44 m_lastPageScaleFactor(1), | 44 m_lastPageScaleFactor(1), |
| 45 m_finishTime(0) {} | 45 m_finishTime(0) {} |
| 46 | 46 |
| 47 ValidationMessageClientImpl* ValidationMessageClientImpl::create( | 47 ValidationMessageClientImpl* ValidationMessageClientImpl::create( |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 if (m_currentAnchor) | 150 if (m_currentAnchor) |
| 151 hideValidationMessage(*m_currentAnchor); | 151 hideValidationMessage(*m_currentAnchor); |
| 152 } | 152 } |
| 153 | 153 |
| 154 DEFINE_TRACE(ValidationMessageClientImpl) { | 154 DEFINE_TRACE(ValidationMessageClientImpl) { |
| 155 visitor->trace(m_currentAnchor); | 155 visitor->trace(m_currentAnchor); |
| 156 ValidationMessageClient::trace(visitor); | 156 ValidationMessageClient::trace(visitor); |
| 157 } | 157 } |
| 158 | 158 |
| 159 } // namespace blink | 159 } // namespace blink |
| OLD | NEW |