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

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
« no previous file with comments | « no previous file | ppapi/api/dev/ppb_fullscreen_dev.idl » ('j') | ppapi/api/dev/ppb_fullscreen_dev.idl » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper_plugin_delegate_impl.cc
===================================================================
--- content/renderer/pepper_plugin_delegate_impl.cc (revision 99979)
+++ content/renderer/pepper_plugin_delegate_impl.cc (working copy)
@@ -1299,7 +1299,7 @@
webkit::ppapi::PPB_Flash_Menu_Impl* menu,
const gfx::Point& position) {
int32 render_widget_id = render_view_->routing_id();
- if (instance->IsFullscreen(instance->pp_instance())) {
+ if (instance->IsFullscreen_Dev(instance->pp_instance())) {
webkit::ppapi::FullscreenContainer* container =
instance->fullscreen_container();
DCHECK(container);
@@ -1319,7 +1319,8 @@
params.custom_items = menu->menu_data();
// Transform the position to be in render view's coordinates.
- if (instance->IsFullscreen(instance->pp_instance())) {
+ if (instance->IsFullscreen(instance->pp_instance()) ||
+ instance->IsFullscreen_Dev(instance->pp_instance())) {
WebKit::WebRect rect = render_view_->windowRect();
params.x -= rect.x;
params.y -= rect.y;
« no previous file with comments | « no previous file | ppapi/api/dev/ppb_fullscreen_dev.idl » ('j') | ppapi/api/dev/ppb_fullscreen_dev.idl » ('J')

Powered by Google App Engine
This is Rietveld 408576698