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

Side by Side Diff: Source/web/FullscreenController.cpp

Issue 485953003: Make Fullscreen::fullyExitFullscreen() static (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | Source/web/WebDocument.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 return; 111 return;
112 112
113 if (Document* doc = m_fullScreenFrame->document()) { 113 if (Document* doc = m_fullScreenFrame->document()) {
114 Fullscreen* fullscreen = Fullscreen::fromIfExists(*doc); 114 Fullscreen* fullscreen = Fullscreen::fromIfExists(*doc);
115 if (!fullscreen) 115 if (!fullscreen)
116 return; 116 return;
117 if (fullscreen->isFullScreen(*doc)) { 117 if (fullscreen->isFullScreen(*doc)) {
118 // When the client exits from full screen we have to call fullyExitF ullscreen to notify 118 // When the client exits from full screen we have to call fullyExitF ullscreen to notify
119 // the document. While doing that, suppress notifications back to th e client. 119 // the document. While doing that, suppress notifications back to th e client.
120 m_isCancelingFullScreen = true; 120 m_isCancelingFullScreen = true;
121 fullscreen->fullyExitFullscreen(); 121 Fullscreen::fullyExitFullscreen(*doc);
122 m_isCancelingFullScreen = false; 122 m_isCancelingFullScreen = false;
123 fullscreen->willExitFullScreenForElement(0); 123 fullscreen->willExitFullScreenForElement(0);
124 if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled() && m_web ViewImpl->layerTreeView()) 124 if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled() && m_web ViewImpl->layerTreeView())
125 m_webViewImpl->layerTreeView()->setHasTransparentBackground(m_we bViewImpl->isTransparent()); 125 m_webViewImpl->layerTreeView()->setHasTransparentBackground(m_we bViewImpl->isTransparent());
126 } 126 }
127 } 127 }
128 } 128 }
129 129
130 void FullscreenController::didExitFullScreen() 130 void FullscreenController::didExitFullScreen()
131 { 131 {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 { 178 {
179 // The client is exiting full screen, so don't send a notification. 179 // The client is exiting full screen, so don't send a notification.
180 if (m_isCancelingFullScreen) 180 if (m_isCancelingFullScreen)
181 return; 181 return;
182 if (WebViewClient* client = m_webViewImpl->client()) 182 if (WebViewClient* client = m_webViewImpl->client())
183 client->exitFullScreen(); 183 client->exitFullScreen();
184 } 184 }
185 185
186 } // namespace blink 186 } // namespace blink
187 187
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | Source/web/WebDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698