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 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 void ChromeClientImpl::detachCompositorAnimationTimeline(CompositorAnimationTime
line* compositorTimeline, LocalFrame* localFrame) | 822 void ChromeClientImpl::detachCompositorAnimationTimeline(CompositorAnimationTime
line* compositorTimeline, LocalFrame* localFrame) |
823 { | 823 { |
824 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(localFrame)->loca
lRoot(); | 824 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(localFrame)->loca
lRoot(); |
825 | 825 |
826 // This method can be called when the frame is being detached, after the | 826 // This method can be called when the frame is being detached, after the |
827 // widget is destroyed. | 827 // widget is destroyed. |
828 if (webFrame->frameWidget()) | 828 if (webFrame->frameWidget()) |
829 webFrame->frameWidget()->detachCompositorAnimationTimeline(compositorTim
eline); | 829 webFrame->frameWidget()->detachCompositorAnimationTimeline(compositorTim
eline); |
830 } | 830 } |
831 | 831 |
832 void ChromeClientImpl::enterFullScreenForElement(Element* element) | 832 void ChromeClientImpl::enterFullscreenForElement(Element* element) |
833 { | 833 { |
834 m_webView->enterFullScreenForElement(element); | 834 m_webView->enterFullscreenForElement(element); |
835 } | 835 } |
836 | 836 |
837 void ChromeClientImpl::exitFullScreenForElement(Element* element) | 837 void ChromeClientImpl::exitFullscreenForElement(Element* element) |
838 { | 838 { |
839 m_webView->exitFullScreenForElement(element); | 839 m_webView->exitFullscreenForElement(element); |
840 } | 840 } |
841 | 841 |
842 void ChromeClientImpl::clearCompositedSelection(LocalFrame* frame) | 842 void ChromeClientImpl::clearCompositedSelection(LocalFrame* frame) |
843 { | 843 { |
844 LocalFrame* localRoot = frame->localFrameRoot(); | 844 LocalFrame* localRoot = frame->localFrameRoot(); |
845 auto client = WebLocalFrameImpl::fromFrame(localRoot)->frameWidget()->client
(); | 845 auto client = WebLocalFrameImpl::fromFrame(localRoot)->frameWidget()->client
(); |
846 if (!client) | 846 if (!client) |
847 return; | 847 return; |
848 | 848 |
849 auto layerTreeView = client->layerTreeView(); | 849 auto layerTreeView = client->layerTreeView(); |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1136 ScreenOrientationController::provideTo(frame, client ? client->webScreenOrie
ntationClient() : nullptr); | 1136 ScreenOrientationController::provideTo(frame, client ? client->webScreenOrie
ntationClient() : nullptr); |
1137 if (RuntimeEnabledFeatures::presentationEnabled()) | 1137 if (RuntimeEnabledFeatures::presentationEnabled()) |
1138 PresentationController::provideTo(frame, client ? client->presentationCl
ient() : nullptr); | 1138 PresentationController::provideTo(frame, client ? client->presentationCl
ient() : nullptr); |
1139 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) | 1139 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) |
1140 provideAudioOutputDeviceClientTo(frame, AudioOutputDeviceClientImpl::cre
ate()); | 1140 provideAudioOutputDeviceClientTo(frame, AudioOutputDeviceClientImpl::cre
ate()); |
1141 if (RuntimeEnabledFeatures::installedAppEnabled()) | 1141 if (RuntimeEnabledFeatures::installedAppEnabled()) |
1142 InstalledAppController::provideTo(frame, client ? client->installedAppCl
ient() : nullptr); | 1142 InstalledAppController::provideTo(frame, client ? client->installedAppCl
ient() : nullptr); |
1143 } | 1143 } |
1144 | 1144 |
1145 } // namespace blink | 1145 } // namespace blink |
OLD | NEW |