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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 BlameContext*) = 0; | 342 BlameContext*) = 0; |
343 | 343 |
344 // Returns the time of the beginning of the last beginFrame, in seconds, if | 344 // Returns the time of the beginning of the last beginFrame, in seconds, if |
345 // any, and 0.0 otherwise. | 345 // any, and 0.0 otherwise. |
346 virtual double lastFrameTimeMonotonic() const { return 0.0; } | 346 virtual double lastFrameTimeMonotonic() const { return 0.0; } |
347 | 347 |
348 virtual void installSupplements(LocalFrame&) {} | 348 virtual void installSupplements(LocalFrame&) {} |
349 | 349 |
350 virtual WebLayerTreeView* getWebLayerTreeView(LocalFrame*) { return nullptr; } | 350 virtual WebLayerTreeView* getWebLayerTreeView(LocalFrame*) { return nullptr; } |
351 | 351 |
| 352 virtual void requestDecode( |
| 353 sk_sp<SkImage> image, |
| 354 std::unique_ptr<WTF::Function<void(bool)>> callback) { |
| 355 (*callback)(false); |
| 356 } |
| 357 |
352 DECLARE_TRACE(); | 358 DECLARE_TRACE(); |
353 | 359 |
354 protected: | 360 protected: |
355 ~ChromeClient() override {} | 361 ~ChromeClient() override {} |
356 | 362 |
357 virtual void showMouseOverURL(const HitTestResult&) = 0; | 363 virtual void showMouseOverURL(const HitTestResult&) = 0; |
358 virtual void setWindowRect(const IntRect&, LocalFrame&) = 0; | 364 virtual void setWindowRect(const IntRect&, LocalFrame&) = 0; |
359 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, | 365 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, |
360 bool isReload) = 0; | 366 bool isReload) = 0; |
361 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; | 367 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; |
(...skipping 13 matching lines...) Expand all Loading... |
375 WeakMember<Node> m_lastMouseOverNode; | 381 WeakMember<Node> m_lastMouseOverNode; |
376 LayoutPoint m_lastToolTipPoint; | 382 LayoutPoint m_lastToolTipPoint; |
377 String m_lastToolTipText; | 383 String m_lastToolTipText; |
378 | 384 |
379 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); | 385 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); |
380 }; | 386 }; |
381 | 387 |
382 } // namespace blink | 388 } // namespace blink |
383 | 389 |
384 #endif // ChromeClient_h | 390 #endif // ChromeClient_h |
OLD | NEW |