Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: third_party/WebKit/Source/core/page/ChromeClient.h

Issue 2769823002: Add decode() functionality to image elements. (Closed)
Patch Set: update Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 BlameContext*) = 0; 343 BlameContext*) = 0;
344 344
345 // Returns the time of the beginning of the last beginFrame, in seconds, if 345 // Returns the time of the beginning of the last beginFrame, in seconds, if
346 // any, and 0.0 otherwise. 346 // any, and 0.0 otherwise.
347 virtual double LastFrameTimeMonotonic() const { return 0.0; } 347 virtual double LastFrameTimeMonotonic() const { return 0.0; }
348 348
349 virtual void InstallSupplements(LocalFrame&) {} 349 virtual void InstallSupplements(LocalFrame&) {}
350 350
351 virtual WebLayerTreeView* GetWebLayerTreeView(LocalFrame*) { return nullptr; } 351 virtual WebLayerTreeView* GetWebLayerTreeView(LocalFrame*) { return nullptr; }
352 352
353 virtual void RequestDecode(
354 LocalFrame*,
355 sk_sp<SkImage> image,
356 std::unique_ptr<WTF::Function<void(bool)>> callback) {
357 (*callback)(false);
358 }
359
353 DECLARE_TRACE(); 360 DECLARE_TRACE();
354 361
355 protected: 362 protected:
356 ~ChromeClient() override {} 363 ~ChromeClient() override {}
357 364
358 virtual void ShowMouseOverURL(const HitTestResult&) = 0; 365 virtual void ShowMouseOverURL(const HitTestResult&) = 0;
359 virtual void SetWindowRect(const IntRect&, LocalFrame&) = 0; 366 virtual void SetWindowRect(const IntRect&, LocalFrame&) = 0;
360 virtual bool OpenBeforeUnloadConfirmPanelDelegate(LocalFrame*, 367 virtual bool OpenBeforeUnloadConfirmPanelDelegate(LocalFrame*,
361 bool is_reload) = 0; 368 bool is_reload) = 0;
362 virtual bool OpenJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; 369 virtual bool OpenJavaScriptAlertDelegate(LocalFrame*, const String&) = 0;
(...skipping 13 matching lines...) Expand all
376 WeakMember<Node> last_mouse_over_node_; 383 WeakMember<Node> last_mouse_over_node_;
377 LayoutPoint last_tool_tip_point_; 384 LayoutPoint last_tool_tip_point_;
378 String last_tool_tip_text_; 385 String last_tool_tip_text_;
379 386
380 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); 387 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood);
381 }; 388 };
382 389
383 } // namespace blink 390 } // namespace blink
384 391
385 #endif // ChromeClient_h 392 #endif // ChromeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698