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

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

Issue 2573773002: Sync requestFullscreen() and exitFullscreen() algorithms with the spec (Closed)
Patch Set: address feedback Created 4 years 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 304
305 if (m_element) 305 if (m_element)
306 m_element->setNeedsCompositingUpdate(); 306 m_element->setNeedsCompositingUpdate();
307 } 307 }
308 308
309 void WebPluginContainerImpl::requestFullscreen() { 309 void WebPluginContainerImpl::requestFullscreen() {
310 Fullscreen::requestFullscreen(*m_element); 310 Fullscreen::requestFullscreen(*m_element);
311 } 311 }
312 312
313 bool WebPluginContainerImpl::isFullscreenElement() const { 313 bool WebPluginContainerImpl::isFullscreenElement() const {
314 return Fullscreen::isCurrentFullScreenElement(*m_element); 314 return Fullscreen::isFullscreenElement(*m_element);
315 } 315 }
316 316
317 void WebPluginContainerImpl::cancelFullscreen() { 317 void WebPluginContainerImpl::cancelFullscreen() {
318 Fullscreen::fullyExitFullscreen(m_element->document()); 318 Fullscreen::fullyExitFullscreen(m_element->document());
319 } 319 }
320 320
321 bool WebPluginContainerImpl::supportsPaginatedPrint() const { 321 bool WebPluginContainerImpl::supportsPaginatedPrint() const {
322 return m_webPlugin->supportsPaginatedPrint(); 322 return m_webPlugin->supportsPaginatedPrint();
323 } 323 }
324 324
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 // frame view. 970 // frame view.
971 computeClipRectsForPlugin(m_element, windowRect, clipRect, unobscuredRect); 971 computeClipRectsForPlugin(m_element, windowRect, clipRect, unobscuredRect);
972 } 972 }
973 getPluginOcclusions(m_element, this->parent(), frameRect(), cutOutRects); 973 getPluginOcclusions(m_element, this->parent(), frameRect(), cutOutRects);
974 // Convert to the plugin position. 974 // Convert to the plugin position.
975 for (size_t i = 0; i < cutOutRects.size(); i++) 975 for (size_t i = 0; i < cutOutRects.size(); i++)
976 cutOutRects[i].move(-frameRect().x(), -frameRect().y()); 976 cutOutRects[i].move(-frameRect().x(), -frameRect().y());
977 } 977 }
978 978
979 } // namespace blink 979 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/FullscreenController.cpp ('k') | third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698