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

Unified Diff: ppapi/api/dev/ppb_fullscreen_dev.idl

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: ppapi/api/dev/ppb_fullscreen_dev.idl
===================================================================
--- ppapi/api/dev/ppb_fullscreen_dev.idl (revision 102782)
+++ ppapi/api/dev/ppb_fullscreen_dev.idl (working copy)
@@ -5,11 +5,11 @@
/**
- * This file defines the <code>PPB_Fullscreen</code> interface.
+ * This file defines the <code>PPB_Fullscreen_Dev</code> interface.
*/
label Chrome {
- M14 = 0.4
+ M16 = 0.5
};
interface PPB_Fullscreen_Dev {
@@ -23,23 +23,26 @@
* Switches the plugin instance to/from fullscreen mode. Returns PP_TRUE on
* success, PP_FALSE on failure.
*
- * This unbinds the current Graphics2D or Surface3D. Pending flushes and
- * swapbuffers will execute as if the resource was off-screen. The transition
- * is asynchronous. During the transition, IsFullscreen will return PP_False,
- * and no Graphics2D or Surface3D can be bound. The transition ends at the
- * next DidChangeView.
+ * This unbinds the current 2D or 3D devices. Pending flushes and swapbuffers
+ * 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.
*
- * Note: when switching to and from fullscreen, Context3D and Surface3D
- * resources need to be re-created. This is a current limitation that will be
- * lifted in a later revision.
+ * 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.
polina 2011/09/26 22:12:36 I am updating the header comments in a different p
polina 2011/09/26 22:24:10 Also, please not that the plugin is not resized to
piman 2011/09/26 23:01:03 I don't understand this... How can a plugin deal w
polina 2011/09/27 00:49:08 I was surprised by this behavior myself. In his JS
*/
PP_Bool SetFullscreen(
[in] PP_Instance instance,
[in] PP_Bool fullscreen);
/**
- * Gets the size of the screen. When going fullscreen, the instance will be
- * resized to that size.
+ * Gets the size of the screen in pixels. When going fullscreen, the instance
+ * will be resized to that size.
*/
PP_Bool GetScreenSize(
[in] PP_Instance instance,

Powered by Google App Engine
This is Rietveld 408576698