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

Side by Side Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

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) 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 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 return WebLocalFrameImpl::FromFrame(frame); 829 return WebLocalFrameImpl::FromFrame(frame);
830 } 830 }
831 831
832 WebRemoteFrameBase* ChromeClientImpl::GetWebRemoteFrameBase( 832 WebRemoteFrameBase* ChromeClientImpl::GetWebRemoteFrameBase(
833 RemoteFrame& frame) { 833 RemoteFrame& frame) {
834 return WebRemoteFrameImpl::FromFrame(frame); 834 return WebRemoteFrameImpl::FromFrame(frame);
835 } 835 }
836 836
837 void ChromeClientImpl::RequestDecode( 837 void ChromeClientImpl::RequestDecode(
838 LocalFrame* frame, 838 LocalFrame* frame,
839 sk_sp<SkImage> image, 839 const PaintImage& image,
840 std::unique_ptr<WTF::Function<void(bool)>> callback) { 840 std::unique_ptr<WTF::Function<void(bool)>> callback) {
841 WebLocalFrameImpl* web_frame = WebLocalFrameImpl::FromFrame(frame); 841 WebLocalFrameImpl* web_frame = WebLocalFrameImpl::FromFrame(frame);
842 web_frame->LocalRoot()->FrameWidget()->RequestDecode(std::move(image), 842 web_frame->LocalRoot()->FrameWidget()->RequestDecode(image,
843 std::move(callback)); 843 std::move(callback));
844 } 844 }
845 845
846 void ChromeClientImpl::SetEventListenerProperties( 846 void ChromeClientImpl::SetEventListenerProperties(
847 LocalFrame* frame, 847 LocalFrame* frame,
848 WebEventListenerClass event_class, 848 WebEventListenerClass event_class,
849 WebEventListenerProperties properties) { 849 WebEventListenerProperties properties) {
850 // |frame| might be null if called via TreeScopeAdopter:: 850 // |frame| might be null if called via TreeScopeAdopter::
851 // moveNodeToNewDocument() and the new document has no frame attached. 851 // moveNodeToNewDocument() and the new document has no frame attached.
852 // Since a document without a frame cannot attach one later, it is safe to 852 // Since a document without a frame cannot attach one later, it is safe to
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 if (RuntimeEnabledFeatures::presentationEnabled()) 1141 if (RuntimeEnabledFeatures::presentationEnabled())
1142 PresentationController::ProvideTo(frame, client->PresentationClient()); 1142 PresentationController::ProvideTo(frame, client->PresentationClient());
1143 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { 1143 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) {
1144 ProvideAudioOutputDeviceClientTo(frame, 1144 ProvideAudioOutputDeviceClientTo(frame,
1145 new AudioOutputDeviceClientImpl(frame)); 1145 new AudioOutputDeviceClientImpl(frame));
1146 } 1146 }
1147 InstalledAppController::ProvideTo(frame, client->GetRelatedAppsFetcher()); 1147 InstalledAppController::ProvideTo(frame, client->GetRelatedAppsFetcher());
1148 } 1148 }
1149 1149
1150 } // namespace blink 1150 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.h ('k') | third_party/WebKit/Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698