| 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 if (layer) | 301 if (layer) |
| 302 GraphicsLayer::registerContentsLayer(layer); | 302 GraphicsLayer::registerContentsLayer(layer); |
| 303 | 303 |
| 304 m_webLayer = layer; | 304 m_webLayer = layer; |
| 305 | 305 |
| 306 if (m_element) | 306 if (m_element) |
| 307 m_element->setNeedsCompositingUpdate(); | 307 m_element->setNeedsCompositingUpdate(); |
| 308 } | 308 } |
| 309 | 309 |
| 310 void WebPluginContainerImpl::requestFullscreen() { | 310 void WebPluginContainerImpl::requestFullscreen() { |
| 311 Fullscreen::requestFullscreen(*m_element, Fullscreen::PrefixedRequest); | 311 Fullscreen::requestFullscreen(*m_element); |
| 312 } | 312 } |
| 313 | 313 |
| 314 bool WebPluginContainerImpl::isFullscreenElement() const { | 314 bool WebPluginContainerImpl::isFullscreenElement() const { |
| 315 return Fullscreen::isCurrentFullScreenElement(*m_element); | 315 return Fullscreen::isCurrentFullScreenElement(*m_element); |
| 316 } | 316 } |
| 317 | 317 |
| 318 void WebPluginContainerImpl::cancelFullscreen() { | 318 void WebPluginContainerImpl::cancelFullscreen() { |
| 319 Fullscreen::fullyExitFullscreen(m_element->document()); | 319 Fullscreen::fullyExitFullscreen(m_element->document()); |
| 320 } | 320 } |
| 321 | 321 |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 961 // frame view. | 961 // frame view. |
| 962 computeClipRectsForPlugin(m_element, windowRect, clipRect, unobscuredRect); | 962 computeClipRectsForPlugin(m_element, windowRect, clipRect, unobscuredRect); |
| 963 } | 963 } |
| 964 getPluginOcclusions(m_element, this->parent(), frameRect(), cutOutRects); | 964 getPluginOcclusions(m_element, this->parent(), frameRect(), cutOutRects); |
| 965 // Convert to the plugin position. | 965 // Convert to the plugin position. |
| 966 for (size_t i = 0; i < cutOutRects.size(); i++) | 966 for (size_t i = 0; i < cutOutRects.size(); i++) |
| 967 cutOutRects[i].move(-frameRect().x(), -frameRect().y()); | 967 cutOutRects[i].move(-frameRect().x(), -frameRect().y()); |
| 968 } | 968 } |
| 969 | 969 |
| 970 } // namespace blink | 970 } // namespace blink |
| OLD | NEW |