OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights |
3 * reserved. | 3 * reserved. |
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 virtual WebLayerTreeView* GetWebLayerTreeView(LocalFrame*) { return nullptr; } | 365 virtual WebLayerTreeView* GetWebLayerTreeView(LocalFrame*) { return nullptr; } |
366 | 366 |
367 virtual WebLocalFrameBase* GetWebLocalFrameBase(LocalFrame*) { | 367 virtual WebLocalFrameBase* GetWebLocalFrameBase(LocalFrame*) { |
368 return nullptr; | 368 return nullptr; |
369 } | 369 } |
370 | 370 |
371 virtual WebRemoteFrameBase* GetWebRemoteFrameBase(RemoteFrame&) { | 371 virtual WebRemoteFrameBase* GetWebRemoteFrameBase(RemoteFrame&) { |
372 return nullptr; | 372 return nullptr; |
373 } | 373 } |
374 | 374 |
| 375 virtual void RequestDecode( |
| 376 LocalFrame*, |
| 377 sk_sp<SkImage> image, |
| 378 std::unique_ptr<WTF::Function<void(bool)>> callback) { |
| 379 (*callback)(false); |
| 380 } |
| 381 |
375 DECLARE_TRACE(); | 382 DECLARE_TRACE(); |
376 | 383 |
377 protected: | 384 protected: |
378 ~ChromeClient() override {} | 385 ~ChromeClient() override {} |
379 | 386 |
380 virtual void ShowMouseOverURL(const HitTestResult&) = 0; | 387 virtual void ShowMouseOverURL(const HitTestResult&) = 0; |
381 virtual void SetWindowRect(const IntRect&, LocalFrame&) = 0; | 388 virtual void SetWindowRect(const IntRect&, LocalFrame&) = 0; |
382 virtual bool OpenBeforeUnloadConfirmPanelDelegate(LocalFrame*, | 389 virtual bool OpenBeforeUnloadConfirmPanelDelegate(LocalFrame*, |
383 bool is_reload) = 0; | 390 bool is_reload) = 0; |
384 virtual bool OpenJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; | 391 virtual bool OpenJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; |
(...skipping 13 matching lines...) Expand all Loading... |
398 WeakMember<Node> last_mouse_over_node_; | 405 WeakMember<Node> last_mouse_over_node_; |
399 LayoutPoint last_tool_tip_point_; | 406 LayoutPoint last_tool_tip_point_; |
400 String last_tool_tip_text_; | 407 String last_tool_tip_text_; |
401 | 408 |
402 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); | 409 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); |
403 }; | 410 }; |
404 | 411 |
405 } // namespace blink | 412 } // namespace blink |
406 | 413 |
407 #endif // ChromeClient_h | 414 #endif // ChromeClient_h |
OLD | NEW |