| 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 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 WebConsoleMessage(WebConsoleMessage::LevelError, message)); | 935 WebConsoleMessage(WebConsoleMessage::LevelError, message)); |
| 936 | 936 |
| 937 return false; | 937 return false; |
| 938 } | 938 } |
| 939 | 939 |
| 940 WebLayerTreeView* ChromeClientImpl::getWebLayerTreeView(LocalFrame* frame) { | 940 WebLayerTreeView* ChromeClientImpl::getWebLayerTreeView(LocalFrame* frame) { |
| 941 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame); | 941 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame); |
| 942 return webFrame->localRoot()->frameWidget()->getLayerTreeView(); | 942 return webFrame->localRoot()->frameWidget()->getLayerTreeView(); |
| 943 } | 943 } |
| 944 | 944 |
| 945 void ChromeClientImpl::requestDecode( |
| 946 sk_sp<SkImage> image, |
| 947 std::unique_ptr<WTF::Function<void(bool)>> callback) { |
| 948 m_webView->requestDecode(std::move(image), std::move(callback)); |
| 949 } |
| 950 |
| 945 void ChromeClientImpl::setEventListenerProperties( | 951 void ChromeClientImpl::setEventListenerProperties( |
| 946 LocalFrame* frame, | 952 LocalFrame* frame, |
| 947 WebEventListenerClass eventClass, | 953 WebEventListenerClass eventClass, |
| 948 WebEventListenerProperties properties) { | 954 WebEventListenerProperties properties) { |
| 949 // |frame| might be null if called via TreeScopeAdopter:: | 955 // |frame| might be null if called via TreeScopeAdopter:: |
| 950 // moveNodeToNewDocument() and the new document has no frame attached. | 956 // moveNodeToNewDocument() and the new document has no frame attached. |
| 951 // Since a document without a frame cannot attach one later, it is safe to | 957 // Since a document without a frame cannot attach one later, it is safe to |
| 952 // exit early. | 958 // exit early. |
| 953 if (!frame) | 959 if (!frame) |
| 954 return; | 960 return; |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1228 if (RuntimeEnabledFeatures::presentationEnabled()) | 1234 if (RuntimeEnabledFeatures::presentationEnabled()) |
| 1229 PresentationController::provideTo(frame, client->presentationClient()); | 1235 PresentationController::provideTo(frame, client->presentationClient()); |
| 1230 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { | 1236 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { |
| 1231 provideAudioOutputDeviceClientTo(frame, | 1237 provideAudioOutputDeviceClientTo(frame, |
| 1232 new AudioOutputDeviceClientImpl(frame)); | 1238 new AudioOutputDeviceClientImpl(frame)); |
| 1233 } | 1239 } |
| 1234 InstalledAppController::provideTo(frame, client->getRelatedAppsFetcher()); | 1240 InstalledAppController::provideTo(frame, client->getRelatedAppsFetcher()); |
| 1235 } | 1241 } |
| 1236 | 1242 |
| 1237 } // namespace blink | 1243 } // namespace blink |
| OLD | NEW |