summaryrefslogtreecommitdiffstats
path: root/ppapi/api/private
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-20 20:08:40 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-20 20:08:40 +0000
commitdafab7597fe21cb8eb08e384a09636e7cd7c88dc (patch)
tree95d272f43d790e66398ee4b615e37b16ec6aa20b /ppapi/api/private
parent1c4164cfa27f4c12089cd5836cd016f2f859a276 (diff)
downloadchromium_src-dafab7597fe21cb8eb08e384a09636e7cd7c88dc.zip
chromium_src-dafab7597fe21cb8eb08e384a09636e7cd7c88dc.tar.gz
chromium_src-dafab7597fe21cb8eb08e384a09636e7cd7c88dc.tar.bz2
Rename PPB_Fullscreen_Dev to PPB_FlashFullscreen.
This is to make way for the new PPB_Fullscreen interface which will hopefully replace the old one at some point. This maintains backwards binary compat. I renamed two things related to the broker because the file wasn't being included in the proxy properly, and we never noticed they were wrong. This also fixes a crash in the test harness generating the list of tests, since there is no current test case for the DidChangeView call. Review URL: http://codereview.chromium.org/7917019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101999 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api/private')
-rw-r--r--ppapi/api/private/ppb_flash_fullscreen.idl48
1 files changed, 48 insertions, 0 deletions
diff --git a/ppapi/api/private/ppb_flash_fullscreen.idl b/ppapi/api/private/ppb_flash_fullscreen.idl
new file mode 100644
index 0000000..9019366
--- /dev/null
+++ b/ppapi/api/private/ppb_flash_fullscreen.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_FlashFullscreen</code> interface.
+ */
+
+label Chrome {
+ M16 = 0.1
+};
+
+interface PPB_FlashFullscreen {
+ /**
+ * 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);
+};
+