| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|