| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 void RegisterPopupOpeningObserver(PopupOpeningObserver*) override; | 232 void RegisterPopupOpeningObserver(PopupOpeningObserver*) override; |
| 233 void UnregisterPopupOpeningObserver(PopupOpeningObserver*) override; | 233 void UnregisterPopupOpeningObserver(PopupOpeningObserver*) override; |
| 234 void NotifyPopupOpeningObservers() const override; | 234 void NotifyPopupOpeningObservers() const override; |
| 235 | 235 |
| 236 void InstallSupplements(LocalFrame&) override; | 236 void InstallSupplements(LocalFrame&) override; |
| 237 | 237 |
| 238 WebLayerTreeView* GetWebLayerTreeView(LocalFrame*) override; | 238 WebLayerTreeView* GetWebLayerTreeView(LocalFrame*) override; |
| 239 | 239 |
| 240 WebLocalFrameBase* GetWebLocalFrameBase(LocalFrame*) override; | 240 WebLocalFrameBase* GetWebLocalFrameBase(LocalFrame*) override; |
| 241 | 241 |
| 242 void RequestDecode( |
| 243 LocalFrame*, |
| 244 sk_sp<SkImage>, |
| 245 std::unique_ptr<WTF::Function<void(bool)>> callback) override; |
| 246 |
| 242 private: | 247 private: |
| 243 explicit ChromeClientImpl(WebViewBase*); | 248 explicit ChromeClientImpl(WebViewBase*); |
| 244 | 249 |
| 245 bool IsChromeClientImpl() const override { return true; } | 250 bool IsChromeClientImpl() const override { return true; } |
| 246 | 251 |
| 247 void SetCursor(const WebCursorInfo&, LocalFrame*); | 252 void SetCursor(const WebCursorInfo&, LocalFrame*); |
| 248 | 253 |
| 249 WebViewBase* web_view_; // Weak pointer. | 254 WebViewBase* web_view_; // Weak pointer. |
| 250 WindowFeatures window_features_; | 255 WindowFeatures window_features_; |
| 251 Vector<PopupOpeningObserver*> popup_opening_observers_; | 256 Vector<PopupOpeningObserver*> popup_opening_observers_; |
| 252 Cursor last_set_mouse_cursor_for_testing_; | 257 Cursor last_set_mouse_cursor_for_testing_; |
| 253 bool cursor_overridden_; | 258 bool cursor_overridden_; |
| 254 bool did_request_non_empty_tool_tip_; | 259 bool did_request_non_empty_tool_tip_; |
| 255 }; | 260 }; |
| 256 | 261 |
| 257 DEFINE_TYPE_CASTS(ChromeClientImpl, | 262 DEFINE_TYPE_CASTS(ChromeClientImpl, |
| 258 ChromeClient, | 263 ChromeClient, |
| 259 client, | 264 client, |
| 260 client->IsChromeClientImpl(), | 265 client->IsChromeClientImpl(), |
| 261 client.IsChromeClientImpl()); | 266 client.IsChromeClientImpl()); |
| 262 | 267 |
| 263 } // namespace blink | 268 } // namespace blink |
| 264 | 269 |
| 265 #endif | 270 #endif |
| OLD | NEW |