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

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

Issue 2929493002: Plumb PaintImage for the img.decode instead of SkImage. (Closed)
Patch Set: Created 3 years, 6 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 virtual WebLocalFrameBase* GetWebLocalFrameBase(LocalFrame*) { 352 virtual WebLocalFrameBase* GetWebLocalFrameBase(LocalFrame*) {
353 return nullptr; 353 return nullptr;
354 } 354 }
355 355
356 virtual WebRemoteFrameBase* GetWebRemoteFrameBase(RemoteFrame&) { 356 virtual WebRemoteFrameBase* GetWebRemoteFrameBase(RemoteFrame&) {
357 return nullptr; 357 return nullptr;
358 } 358 }
359 359
360 virtual void RequestDecode( 360 virtual void RequestDecode(
361 LocalFrame*, 361 LocalFrame*,
362 sk_sp<SkImage> image, 362 const PaintImage& image,
363 std::unique_ptr<WTF::Function<void(bool)>> callback) { 363 std::unique_ptr<WTF::Function<void(bool)>> callback) {
364 (*callback)(false); 364 (*callback)(false);
365 } 365 }
366 366
367 DECLARE_TRACE(); 367 DECLARE_TRACE();
368 368
369 protected: 369 protected:
370 ~ChromeClient() override {} 370 ~ChromeClient() override {}
371 371
372 virtual void ShowMouseOverURL(const HitTestResult&) = 0; 372 virtual void ShowMouseOverURL(const HitTestResult&) = 0;
(...skipping 17 matching lines...) Expand all
390 WeakMember<Node> last_mouse_over_node_; 390 WeakMember<Node> last_mouse_over_node_;
391 LayoutPoint last_tool_tip_point_; 391 LayoutPoint last_tool_tip_point_;
392 String last_tool_tip_text_; 392 String last_tool_tip_text_;
393 393
394 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); 394 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood);
395 }; 395 };
396 396
397 } // namespace blink 397 } // namespace blink
398 398
399 #endif // ChromeClient_h 399 #endif // ChromeClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLImageElement.cpp ('k') | third_party/WebKit/Source/web/ChromeClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698