summaryrefslogtreecommitdiffstats
path: root/ppapi/api
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-26 19:44:50 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-26 19:44:50 +0000
commit1649b5b0f8d0e42075a99cefb874f7e53d8527ec (patch)
treeeafe5dca8e21cc6c7241e4b12eb886924f47e60a /ppapi/api
parent814127cb0ef1687e792519a44bfb71580e922e5b (diff)
downloadchromium_src-1649b5b0f8d0e42075a99cefb874f7e53d8527ec.zip
chromium_src-1649b5b0f8d0e42075a99cefb874f7e53d8527ec.tar.gz
chromium_src-1649b5b0f8d0e42075a99cefb874f7e53d8527ec.tar.bz2
Add IDL for the fullscreen dev API and automatically generate the .h file.
Review URL: http://codereview.chromium.org/7740052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98465 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api')
-rw-r--r--ppapi/api/dev/ppb_fullscreen_dev.idl48
1 files changed, 48 insertions, 0 deletions
diff --git a/ppapi/api/dev/ppb_fullscreen_dev.idl b/ppapi/api/dev/ppb_fullscreen_dev.idl
new file mode 100644
index 0000000..6aeecff
--- /dev/null
+++ b/ppapi/api/dev/ppb_fullscreen_dev.idl
@@ -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</code> interface.
+ */
+
+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);
+};
+