| 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 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 950 | 950 |
| 951 WebLayerTreeView* ChromeClientImpl::GetWebLayerTreeView(LocalFrame* frame) { | 951 WebLayerTreeView* ChromeClientImpl::GetWebLayerTreeView(LocalFrame* frame) { |
| 952 WebLocalFrameImpl* web_frame = WebLocalFrameImpl::FromFrame(frame); | 952 WebLocalFrameImpl* web_frame = WebLocalFrameImpl::FromFrame(frame); |
| 953 return web_frame->LocalRoot()->FrameWidget()->GetLayerTreeView(); | 953 return web_frame->LocalRoot()->FrameWidget()->GetLayerTreeView(); |
| 954 } | 954 } |
| 955 | 955 |
| 956 WebLocalFrameBase* ChromeClientImpl::GetWebLocalFrameBase(LocalFrame* frame) { | 956 WebLocalFrameBase* ChromeClientImpl::GetWebLocalFrameBase(LocalFrame* frame) { |
| 957 return WebLocalFrameImpl::FromFrame(frame); | 957 return WebLocalFrameImpl::FromFrame(frame); |
| 958 } | 958 } |
| 959 | 959 |
| 960 void ChromeClientImpl::RequestDecode( |
| 961 LocalFrame* frame, |
| 962 sk_sp<SkImage> image, |
| 963 std::unique_ptr<WTF::Function<void(bool)>> callback) { |
| 964 WebLocalFrameImpl* web_frame = WebLocalFrameImpl::FromFrame(frame); |
| 965 web_frame->LocalRoot()->FrameWidget()->RequestDecode(std::move(image), |
| 966 std::move(callback)); |
| 967 } |
| 968 |
| 960 void ChromeClientImpl::SetEventListenerProperties( | 969 void ChromeClientImpl::SetEventListenerProperties( |
| 961 LocalFrame* frame, | 970 LocalFrame* frame, |
| 962 WebEventListenerClass event_class, | 971 WebEventListenerClass event_class, |
| 963 WebEventListenerProperties properties) { | 972 WebEventListenerProperties properties) { |
| 964 // |frame| might be null if called via TreeScopeAdopter:: | 973 // |frame| might be null if called via TreeScopeAdopter:: |
| 965 // moveNodeToNewDocument() and the new document has no frame attached. | 974 // moveNodeToNewDocument() and the new document has no frame attached. |
| 966 // Since a document without a frame cannot attach one later, it is safe to | 975 // Since a document without a frame cannot attach one later, it is safe to |
| 967 // exit early. | 976 // exit early. |
| 968 if (!frame) | 977 if (!frame) |
| 969 return; | 978 return; |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1248 if (RuntimeEnabledFeatures::presentationEnabled()) | 1257 if (RuntimeEnabledFeatures::presentationEnabled()) |
| 1249 PresentationController::ProvideTo(frame, client->PresentationClient()); | 1258 PresentationController::ProvideTo(frame, client->PresentationClient()); |
| 1250 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { | 1259 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { |
| 1251 ProvideAudioOutputDeviceClientTo(frame, | 1260 ProvideAudioOutputDeviceClientTo(frame, |
| 1252 new AudioOutputDeviceClientImpl(frame)); | 1261 new AudioOutputDeviceClientImpl(frame)); |
| 1253 } | 1262 } |
| 1254 InstalledAppController::ProvideTo(frame, client->GetRelatedAppsFetcher()); | 1263 InstalledAppController::ProvideTo(frame, client->GetRelatedAppsFetcher()); |
| 1255 } | 1264 } |
| 1256 | 1265 |
| 1257 } // namespace blink | 1266 } // namespace blink |
| OLD | NEW |