Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2530883002: Refactor overlay fullscreen video handling into a single callback (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 } 852 }
853 853
854 void ChromeClientImpl::enterFullscreenForElement(Element* element) { 854 void ChromeClientImpl::enterFullscreenForElement(Element* element) {
855 m_webView->enterFullscreenForElement(element); 855 m_webView->enterFullscreenForElement(element);
856 } 856 }
857 857
858 void ChromeClientImpl::exitFullscreen(LocalFrame* frame) { 858 void ChromeClientImpl::exitFullscreen(LocalFrame* frame) {
859 m_webView->exitFullscreen(frame); 859 m_webView->exitFullscreen(frame);
860 } 860 }
861 861
862 void ChromeClientImpl::fullscreenElementChanged(Element* fromElement,
863 Element* toElement) {
864 m_webView->fullscreenElementChanged(fromElement, toElement);
865 }
866
862 void ChromeClientImpl::clearCompositedSelection(LocalFrame* frame) { 867 void ChromeClientImpl::clearCompositedSelection(LocalFrame* frame) {
863 LocalFrame* localRoot = frame->localFrameRoot(); 868 LocalFrame* localRoot = frame->localFrameRoot();
864 auto client = 869 auto client =
865 WebLocalFrameImpl::fromFrame(localRoot)->frameWidget()->client(); 870 WebLocalFrameImpl::fromFrame(localRoot)->frameWidget()->client();
866 if (!client) 871 if (!client)
867 return; 872 return;
868 873
869 auto layerTreeView = client->layerTreeView(); 874 auto layerTreeView = client->layerTreeView();
870 if (layerTreeView) 875 if (layerTreeView)
871 layerTreeView->clearSelection(); 876 layerTreeView->clearSelection();
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 if (RuntimeEnabledFeatures::presentationEnabled()) 1170 if (RuntimeEnabledFeatures::presentationEnabled())
1166 PresentationController::provideTo(frame, client->presentationClient()); 1171 PresentationController::provideTo(frame, client->presentationClient());
1167 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) 1172 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled())
1168 provideAudioOutputDeviceClientTo(frame, 1173 provideAudioOutputDeviceClientTo(frame,
1169 AudioOutputDeviceClientImpl::create()); 1174 AudioOutputDeviceClientImpl::create());
1170 if (RuntimeEnabledFeatures::installedAppEnabled()) 1175 if (RuntimeEnabledFeatures::installedAppEnabled())
1171 InstalledAppController::provideTo(frame, client->installedAppClient()); 1176 InstalledAppController::provideTo(frame, client->installedAppClient());
1172 } 1177 }
1173 1178
1174 } // namespace blink 1179 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.h ('k') | third_party/WebKit/Source/web/FullscreenController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698