| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |