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

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

Issue 7740052: Add IDL for the fullscreen dev API. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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/c/dev/ppb_fullscreen_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/dev/ppb_fullscreen_dev.idl
===================================================================
--- ppapi/api/dev/ppb_fullscreen_dev.idl (revision 0)
+++ ppapi/api/dev/ppb_fullscreen_dev.idl (revision 0)
@@ -0,0 +1,48 @@
+/* Copyright (c) 2011 The Chromium Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+
+/**
+ * This file defines the <code>PPB_Fullscreen</dev> interface.
piman 2011/08/26 18:29:27 qq: is <code>...</dev> intended ?
+ */
+
+label Chrome {
+ M14 = 0.4
+};
+
+interface PPB_Fullscreen_Dev {
+ /**
+ * Checks whether the plugin instance is currently in fullscreen mode.
+ */
+ PP_Bool IsFullscreen(
+ [in] PP_Instance instance);
+
+ /**
+ * 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.
+ *
+ * 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.
+ */
+ 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.
+ */
+ PP_Bool GetScreenSize(
+ [in] PP_Instance instance,
+ [out] PP_Size size);
+};
+
Property changes on: ppapi/api/dev/ppb_fullscreen_dev.idl
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « no previous file | ppapi/c/dev/ppb_fullscreen_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698