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) 2014 Opera Software ASA. All rights reserved. | 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. |
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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 GraphicsLayer::registerContentsLayer(layer); | 309 GraphicsLayer::registerContentsLayer(layer); |
310 | 310 |
311 m_webLayer = layer; | 311 m_webLayer = layer; |
312 | 312 |
313 if (m_element) | 313 if (m_element) |
314 m_element->setNeedsCompositingUpdate(); | 314 m_element->setNeedsCompositingUpdate(); |
315 } | 315 } |
316 | 316 |
317 void WebPluginContainerImpl::requestFullscreen() | 317 void WebPluginContainerImpl::requestFullscreen() |
318 { | 318 { |
319 Fullscreen::from(m_element->document()).requestFullscreen(*m_element, Fullsc
reen::PrefixedRequest); | 319 Fullscreen::requestFullscreen(*m_element, Fullscreen::PrefixedRequest); |
320 } | 320 } |
321 | 321 |
322 bool WebPluginContainerImpl::isFullscreenElement() const | 322 bool WebPluginContainerImpl::isFullscreenElement() const |
323 { | 323 { |
324 return Fullscreen::isCurrentFullScreenElement(*m_element); | 324 return Fullscreen::isCurrentFullScreenElement(*m_element); |
325 } | 325 } |
326 | 326 |
327 void WebPluginContainerImpl::cancelFullscreen() | 327 void WebPluginContainerImpl::cancelFullscreen() |
328 { | 328 { |
329 Fullscreen::fullyExitFullscreen(m_element->document()); | 329 Fullscreen::fullyExitFullscreen(m_element->document()); |
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
937 // frame view. | 937 // frame view. |
938 computeClipRectsForPlugin(m_element, windowRect, clipRect, unobscuredRec
t); | 938 computeClipRectsForPlugin(m_element, windowRect, clipRect, unobscuredRec
t); |
939 } | 939 } |
940 getPluginOcclusions(m_element, this->parent(), frameRect(), cutOutRects); | 940 getPluginOcclusions(m_element, this->parent(), frameRect(), cutOutRects); |
941 // Convert to the plugin position. | 941 // Convert to the plugin position. |
942 for (size_t i = 0; i < cutOutRects.size(); i++) | 942 for (size_t i = 0; i < cutOutRects.size(); i++) |
943 cutOutRects[i].move(-frameRect().x(), -frameRect().y()); | 943 cutOutRects[i].move(-frameRect().x(), -frameRect().y()); |
944 } | 944 } |
945 | 945 |
946 } // namespace blink | 946 } // namespace blink |
OLD | NEW |