| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 #ifndef ChromeClientImpl_h | 32 #ifndef ChromeClientImpl_h |
| 33 #define ChromeClientImpl_h | 33 #define ChromeClientImpl_h |
| 34 | 34 |
| 35 #include "core/page/ChromeClient.h" | 35 #include "core/page/ChromeClient.h" |
| 36 #include "core/page/WindowFeatures.h" | 36 #include "core/page/WindowFeatures.h" |
| 37 #include "public/web/WebNavigationPolicy.h" | 37 #include "public/web/WebNavigationPolicy.h" |
| 38 #include "web/WebExport.h" | |
| 39 #include "wtf/PassOwnPtr.h" | 38 #include "wtf/PassOwnPtr.h" |
| 40 | 39 |
| 41 namespace blink { | 40 namespace blink { |
| 42 | 41 |
| 43 class PagePopup; | 42 class PagePopup; |
| 44 class PagePopupClient; | 43 class PagePopupClient; |
| 45 class WebViewImpl; | 44 class WebViewImpl; |
| 46 struct WebCursorInfo; | 45 struct WebCursorInfo; |
| 47 | 46 |
| 48 // Handles window-level notifications from core on behalf of a WebView. | 47 // Handles window-level notifications from core on behalf of a WebView. |
| 49 class WEB_EXPORT ChromeClientImpl final : public ChromeClient { | 48 class ChromeClientImpl final : public ChromeClient { |
| 50 public: | 49 public: |
| 51 static PassOwnPtrWillBeRawPtr<ChromeClientImpl> create(WebViewImpl*); | 50 static PassOwnPtrWillBeRawPtr<ChromeClientImpl> create(WebViewImpl*); |
| 52 ~ChromeClientImpl() override; | 51 ~ChromeClientImpl() override; |
| 53 | 52 |
| 54 void* webView() const override; | 53 void* webView() const override; |
| 55 | 54 |
| 56 // ChromeClient methods: | 55 // ChromeClient methods: |
| 57 void chromeDestroyed() override; | 56 void chromeDestroyed() override; |
| 58 void setWindowRect(const IntRect&) override; | 57 void setWindowRect(const IntRect&) override; |
| 59 IntRect windowRect() override; | 58 IntRect windowRect() override; |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 Cursor m_lastSetMouseCursorForTesting; | 195 Cursor m_lastSetMouseCursorForTesting; |
| 197 bool m_cursorOverridden; | 196 bool m_cursorOverridden; |
| 198 bool m_didRequestNonEmptyToolTip; | 197 bool m_didRequestNonEmptyToolTip; |
| 199 }; | 198 }; |
| 200 | 199 |
| 201 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient
Impl(), client.isChromeClientImpl()); | 200 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient
Impl(), client.isChromeClientImpl()); |
| 202 | 201 |
| 203 } // namespace blink | 202 } // namespace blink |
| 204 | 203 |
| 205 #endif | 204 #endif |
| OLD | NEW |