summaryrefslogtreecommitdiffstats
path: root/ppapi/c
diff options
context:
space:
mode:
authorpolina@google.com <polina@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-14 09:24:43 +0000
committerpolina@google.com <polina@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-14 09:24:43 +0000
commita2706da6dc6ea7346b0276218303de192f6b5362 (patch)
tree02ba51e8c4db3fcc8e0b46527c4cb90ce89aa54c /ppapi/c
parentb7bd3d4658875c6d9c70c032dcd0601bd1b0bf6a (diff)
downloadchromium_src-a2706da6dc6ea7346b0276218303de192f6b5362.zip
chromium_src-a2706da6dc6ea7346b0276218303de192f6b5362.tar.gz
chromium_src-a2706da6dc6ea7346b0276218303de192f6b5362.tar.bz2
PPAPI Fullscreen: Hack plugin's attributes to force resizing of the plugin to fill in the screen in SetFullscreen. Reset plugin size in ViewChanged when we exit. Update tests.
We are forced to resize the plugin in the Pepper layer because WebKit does yet do it. It only moves the plugin to the middle of the screen with the expectations the web page will contain the following css: :-webkit-full-screen { width: 100%; height: 100%; } That's not acceptable for Pepper/NaCl users. BUG=41780,98474 TEST=in CL Review URL: http://codereview.chromium.org/8228023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105476 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c')
-rw-r--r--ppapi/c/dev/ppb_fullscreen_dev.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/ppapi/c/dev/ppb_fullscreen_dev.h b/ppapi/c/dev/ppb_fullscreen_dev.h
index bae1497..5022c2a 100644
--- a/ppapi/c/dev/ppb_fullscreen_dev.h
+++ b/ppapi/c/dev/ppb_fullscreen_dev.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From dev/ppb_fullscreen_dev.idl modified Mon Sep 26 15:06:40 2011. */
+/* From dev/ppb_fullscreen_dev.idl modified Tue Oct 11 15:45:41 2011. */
#ifndef PPAPI_C_DEV_PPB_FULLSCREEN_DEV_H_
#define PPAPI_C_DEV_PPB_FULLSCREEN_DEV_H_
@@ -40,14 +40,12 @@ struct PPB_Fullscreen_Dev {
* will execute as if the resource was off-screen. The transition to and from
* fullscreen is asynchronous. During the transition, IsFullscreen will
* return the original value, and no 2D or 3D device can be bound.
- * The transition ends at the next DidChangeView.
+ * The transition ends at DidChangeView when IsFullscreen returns the new
+ * value. You might receive other DidChangeView calls while in
+ * transition.
*
* The transition to fullscreen can only occur while the browser is
- * processing a user gesture, even if PP_TRUE is returned. Note that two
- * DidChangeView calls will happen when switching to fullscreen:
- * one for moving the plugin to the middle of the window and one for
- * stretching the window placing the plugin in the middle of the screen.
- * Plugin size will not be affected.
+ * processing a user gesture, even if PP_TRUE is returned.
*/
PP_Bool (*SetFullscreen)(PP_Instance instance, PP_Bool fullscreen);
/**