Chromium Code Reviews| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 151 | 151 |
| 152 void FullscreenController::exitFullScreenForElement(Element* element) | 152 void FullscreenController::exitFullScreenForElement(Element* element) |
| 153 { | 153 { |
| 154 // The client is exiting full screen, so don't send a notification. | 154 // The client is exiting full screen, so don't send a notification. |
| 155 if (m_isCancelingFullScreen) | 155 if (m_isCancelingFullScreen) |
| 156 return; | 156 return; |
| 157 if (WebViewClient* client = m_webViewImpl->client()) | 157 if (WebViewClient* client = m_webViewImpl->client()) |
| 158 client->exitFullScreen(); | 158 client->exitFullScreen(); |
| 159 } | 159 } |
| 160 | 160 |
| 161 void FullscreenController::updateSize() | |
| 162 { | |
| 163 if (!isFullscreen()) | |
| 164 return; | |
| 165 | |
|
trchen
2014/10/14 23:48:40
ASSERT(Fullscreen::from(*m_fullScreenFrame->docume
| |
| 166 Fullscreen::from(*m_fullScreenFrame->document()).fullScreenRenderer()->updat eStyle(); | |
| 167 } | |
| 168 | |
| 161 void FullscreenController::trace(Visitor* visitor) | 169 void FullscreenController::trace(Visitor* visitor) |
| 162 { | 170 { |
| 163 visitor->trace(m_provisionalFullScreenElement); | 171 visitor->trace(m_provisionalFullScreenElement); |
| 164 visitor->trace(m_fullScreenFrame); | 172 visitor->trace(m_fullScreenFrame); |
| 165 } | 173 } |
| 166 | 174 |
| 167 } // namespace blink | 175 } // namespace blink |
| 168 | 176 |
| OLD | NEW |