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