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

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

Issue 2855843002: Reland "Sync requestFullscreen() and exitFullscreen() algorithms with the spec" (Closed)
Patch Set: Reland "Sync requestFullscreen() and exitFullscreen() algorithms with the spec" Created 3 years, 6 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 321
322 if (element_) 322 if (element_)
323 element_->SetNeedsCompositingUpdate(); 323 element_->SetNeedsCompositingUpdate();
324 } 324 }
325 325
326 void WebPluginContainerImpl::RequestFullscreen() { 326 void WebPluginContainerImpl::RequestFullscreen() {
327 Fullscreen::RequestFullscreen(*element_); 327 Fullscreen::RequestFullscreen(*element_);
328 } 328 }
329 329
330 bool WebPluginContainerImpl::IsFullscreenElement() const { 330 bool WebPluginContainerImpl::IsFullscreenElement() const {
331 return Fullscreen::IsCurrentFullScreenElement(*element_); 331 return Fullscreen::IsFullscreenElement(*element_);
332 } 332 }
333 333
334 void WebPluginContainerImpl::CancelFullscreen() { 334 void WebPluginContainerImpl::CancelFullscreen() {
335 Fullscreen::FullyExitFullscreen(element_->GetDocument()); 335 Fullscreen::FullyExitFullscreen(element_->GetDocument());
336 } 336 }
337 337
338 bool WebPluginContainerImpl::SupportsPaginatedPrint() const { 338 bool WebPluginContainerImpl::SupportsPaginatedPrint() const {
339 return web_plugin_->SupportsPaginatedPrint(); 339 return web_plugin_->SupportsPaginatedPrint();
340 } 340 }
341 341
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 .GetLayoutViewItem() 1042 .GetLayoutViewItem()
1043 .IsNull()) { 1043 .IsNull()) {
1044 // Take our element and get the clip rect from the enclosing layer and 1044 // Take our element and get the clip rect from the enclosing layer and
1045 // frame view. 1045 // frame view.
1046 ComputeClipRectsForPlugin(element_, window_rect, clip_rect, 1046 ComputeClipRectsForPlugin(element_, window_rect, clip_rect,
1047 unobscured_rect); 1047 unobscured_rect);
1048 } 1048 }
1049 } 1049 }
1050 1050
1051 } // namespace blink 1051 } // 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