| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 BlameContext*) override; | 225 BlameContext*) override; |
| 226 | 226 |
| 227 double lastFrameTimeMonotonic() const override; | 227 double lastFrameTimeMonotonic() const override; |
| 228 | 228 |
| 229 void notifyPopupOpeningObservers() const; | 229 void notifyPopupOpeningObservers() const; |
| 230 | 230 |
| 231 void installSupplements(LocalFrame&) override; | 231 void installSupplements(LocalFrame&) override; |
| 232 | 232 |
| 233 WebLayerTreeView* getWebLayerTreeView(LocalFrame*) override; | 233 WebLayerTreeView* getWebLayerTreeView(LocalFrame*) override; |
| 234 | 234 |
| 235 void requestDecode( |
| 236 sk_sp<SkImage>, |
| 237 std::unique_ptr<WTF::Function<void(bool)>> callback) override; |
| 238 |
| 235 private: | 239 private: |
| 236 explicit ChromeClientImpl(WebViewImpl*); | 240 explicit ChromeClientImpl(WebViewImpl*); |
| 237 | 241 |
| 238 bool isChromeClientImpl() const override { return true; } | 242 bool isChromeClientImpl() const override { return true; } |
| 239 void registerPopupOpeningObserver(PopupOpeningObserver*) override; | 243 void registerPopupOpeningObserver(PopupOpeningObserver*) override; |
| 240 void unregisterPopupOpeningObserver(PopupOpeningObserver*) override; | 244 void unregisterPopupOpeningObserver(PopupOpeningObserver*) override; |
| 241 | 245 |
| 242 void setCursor(const WebCursorInfo&, LocalFrame*); | 246 void setCursor(const WebCursorInfo&, LocalFrame*); |
| 243 | 247 |
| 244 WebViewImpl* m_webView; // Weak pointer. | 248 WebViewImpl* m_webView; // Weak pointer. |
| 245 WindowFeatures m_windowFeatures; | 249 WindowFeatures m_windowFeatures; |
| 246 Vector<PopupOpeningObserver*> m_popupOpeningObservers; | 250 Vector<PopupOpeningObserver*> m_popupOpeningObservers; |
| 247 Cursor m_lastSetMouseCursorForTesting; | 251 Cursor m_lastSetMouseCursorForTesting; |
| 248 bool m_cursorOverridden; | 252 bool m_cursorOverridden; |
| 249 bool m_didRequestNonEmptyToolTip; | 253 bool m_didRequestNonEmptyToolTip; |
| 250 }; | 254 }; |
| 251 | 255 |
| 252 DEFINE_TYPE_CASTS(ChromeClientImpl, | 256 DEFINE_TYPE_CASTS(ChromeClientImpl, |
| 253 ChromeClient, | 257 ChromeClient, |
| 254 client, | 258 client, |
| 255 client->isChromeClientImpl(), | 259 client->isChromeClientImpl(), |
| 256 client.isChromeClientImpl()); | 260 client.isChromeClientImpl()); |
| 257 | 261 |
| 258 } // namespace blink | 262 } // namespace blink |
| 259 | 263 |
| 260 #endif | 264 #endif |
| OLD | NEW |