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

Side by Side Diff: third_party/WebKit/Source/web/WebPluginContainerImpl.cpp

Issue 2325663002: Make Fullscreen::requestFullscreen and exitFullscreen static (Closed)
Patch Set: doc->document, for loop Created 4 years, 3 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRDisplay.cpp ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698