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

Unified Diff: content/renderer/pepper_plugin_delegate_impl.cc

Issue 7826017: Add PPB_Fullscreen;0.5. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/pepper_plugin_delegate_impl.cc
===================================================================
--- content/renderer/pepper_plugin_delegate_impl.cc (revision 102782)
+++ content/renderer/pepper_plugin_delegate_impl.cc (working copy)
@@ -1410,7 +1410,8 @@
params.custom_items = menu->menu_data();
// Transform the position to be in render view's coordinates.
- if (instance->FlashIsFullscreen(instance->pp_instance())) {
+ if (instance->IsFullscreen(instance->pp_instance()) ||
+ instance->FlashIsFullscreen(instance->pp_instance())) {
WebKit::WebRect rect = render_view_->windowRect();
params.x -= rect.x;
params.y -= rect.y;

Powered by Google App Engine
This is Rietveld 408576698