summaryrefslogtreecommitdiffstats
path: root/ppapi/c
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/c
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/c')
-rw-r--r--ppapi/c/private/ppb_flash_fullscreen.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/ppapi/c/private/ppb_flash_fullscreen.h b/ppapi/c/private/ppb_flash_fullscreen.h
new file mode 100644
index 0000000..d751e9e
--- /dev/null
+++ b/ppapi/c/private/ppb_flash_fullscreen.h
@@ -0,0 +1,62 @@
+/* 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.
+ */
+
+/* From private/ppb_flash_fullscreen.idl modified Fri Aug 26 10:51:16 2011. */
+
+#ifndef PPAPI_C_PRIVATE_PPB_FLASH_FULLSCREEN_H_
+#define PPAPI_C_PRIVATE_PPB_FLASH_FULLSCREEN_H_
+
+#include "ppapi/c/pp_bool.h"
+#include "ppapi/c/pp_instance.h"
+#include "ppapi/c/pp_macros.h"
+#include "ppapi/c/pp_size.h"
+#include "ppapi/c/pp_stdint.h"
+
+#define PPB_FLASHFULLSCREEN_INTERFACE_0_1 "PPB_FlashFullscreen;0.1"
+#define PPB_FLASHFULLSCREEN_INTERFACE PPB_FLASHFULLSCREEN_INTERFACE_0_1
+
+/**
+ * @file
+ * This file defines the <code>PPB_FlashFullscreen</code> interface.
+ */
+
+
+/**
+ * @addtogroup Interfaces
+ * @{
+ */
+struct PPB_FlashFullscreen {
+ /**
+ * Checks whether the plugin instance is currently in fullscreen mode.
+ */
+ PP_Bool (*IsFullscreen)(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 when going into fullscreen mode. The transition out of
+ * fullscreen mode is synchronous.
+ *
+ * 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)(PP_Instance instance, PP_Bool fullscreen);
+ /**
+ * Gets the size of the screen in pixels. When going fullscreen, the instance
+ * will be resized to that size.
+ */
+ PP_Bool (*GetScreenSize)(PP_Instance instance, struct PP_Size* size);
+};
+/**
+ * @}
+ */
+
+#endif /* PPAPI_C_PRIVATE_PPB_FLASH_FULLSCREEN_H_ */
+