| 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 29 matching lines...) Expand all Loading... |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class PagePopup; | 42 class PagePopup; |
| 43 class PagePopupClient; | 43 class PagePopupClient; |
| 44 class WebViewImpl; | 44 class WebViewImpl; |
| 45 struct WebCursorInfo; | 45 struct WebCursorInfo; |
| 46 | 46 |
| 47 // Handles window-level notifications from core on behalf of a WebView. | 47 // Handles window-level notifications from core on behalf of a WebView. |
| 48 class ChromeClientImpl final : public ChromeClient { | 48 class ChromeClientImpl final : public ChromeClient { |
| 49 public: | 49 public: |
| 50 explicit ChromeClientImpl(WebViewImpl*); | 50 static PassOwnPtrWillBeRawPtr<ChromeClientImpl> create(WebViewImpl*); |
| 51 ~ChromeClientImpl() override; | 51 ~ChromeClientImpl() override; |
| 52 | 52 |
| 53 void* webView() const override; | 53 void* webView() const override; |
| 54 | 54 |
| 55 // ChromeClient methods: | 55 // ChromeClient methods: |
| 56 void chromeDestroyed() override; | 56 void chromeDestroyed() override; |
| 57 void setWindowRect(const IntRect&) override; | 57 void setWindowRect(const IntRect&) override; |
| 58 IntRect windowRect() override; | 58 IntRect windowRect() override; |
| 59 IntRect pageRect() override; | 59 IntRect pageRect() override; |
| 60 void focus() override; | 60 void focus() override; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 163 |
| 164 void registerViewportLayers() const override; | 164 void registerViewportLayers() const override; |
| 165 | 165 |
| 166 void showUnhandledTapUIIfNeeded(IntPoint, Node*, bool) override; | 166 void showUnhandledTapUIIfNeeded(IntPoint, Node*, bool) override; |
| 167 void onMouseDown(Node*) override; | 167 void onMouseDown(Node*) override; |
| 168 void didUpdateTopControls() const override; | 168 void didUpdateTopControls() const override; |
| 169 | 169 |
| 170 FloatSize elasticOverscroll() const override; | 170 FloatSize elasticOverscroll() const override; |
| 171 | 171 |
| 172 private: | 172 private: |
| 173 explicit ChromeClientImpl(WebViewImpl*); |
| 174 |
| 173 bool isChromeClientImpl() const override { return true; } | 175 bool isChromeClientImpl() const override { return true; } |
| 174 void registerPopupOpeningObserver(PopupOpeningObserver*) override; | 176 void registerPopupOpeningObserver(PopupOpeningObserver*) override; |
| 175 void unregisterPopupOpeningObserver(PopupOpeningObserver*) override; | 177 void unregisterPopupOpeningObserver(PopupOpeningObserver*) override; |
| 176 | 178 |
| 177 void notifyPopupOpeningObservers() const; | 179 void notifyPopupOpeningObservers() const; |
| 178 void setCursor(const WebCursorInfo&); | 180 void setCursor(const WebCursorInfo&); |
| 179 | 181 |
| 180 WebViewImpl* m_webView; // Weak pointer. | 182 WebViewImpl* m_webView; // Weak pointer. |
| 181 WindowFeatures m_windowFeatures; | 183 WindowFeatures m_windowFeatures; |
| 182 Vector<PopupOpeningObserver*> m_popupOpeningObservers; | 184 Vector<PopupOpeningObserver*> m_popupOpeningObservers; |
| 183 Cursor m_lastSetMouseCursorForTesting; | 185 Cursor m_lastSetMouseCursorForTesting; |
| 184 }; | 186 }; |
| 185 | 187 |
| 186 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient
Impl(), client.isChromeClientImpl()); | 188 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient
Impl(), client.isChromeClientImpl()); |
| 187 | 189 |
| 188 } // namespace blink | 190 } // namespace blink |
| 189 | 191 |
| 190 #endif | 192 #endif |
| OLD | NEW |