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

Side by Side Diff: ppapi/c/private/ppb_flash_fullscreen.h

Issue 8676042: Remove Context3D/Surface3D (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: style Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/pp_graphics_3d.h ('k') | ppapi/cpp/dev/context_3d_dev.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /* From private/ppb_flash_fullscreen.idl modified Fri Aug 26 10:51:16 2011. */ 6 /* From private/ppb_flash_fullscreen.idl modified Tue Nov 29 11:39:26 2011. */
7 7
8 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_FULLSCREEN_H_ 8 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_FULLSCREEN_H_
9 #define PPAPI_C_PRIVATE_PPB_FLASH_FULLSCREEN_H_ 9 #define PPAPI_C_PRIVATE_PPB_FLASH_FULLSCREEN_H_
10 10
11 #include "ppapi/c/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_instance.h" 12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_macros.h" 13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_size.h" 14 #include "ppapi/c/pp_size.h"
15 #include "ppapi/c/pp_stdint.h" 15 #include "ppapi/c/pp_stdint.h"
16 16
17 #define PPB_FLASHFULLSCREEN_INTERFACE_0_1 "PPB_FlashFullscreen;0.1" 17 #define PPB_FLASHFULLSCREEN_INTERFACE_0_1 "PPB_FlashFullscreen;0.1"
18 #define PPB_FLASHFULLSCREEN_INTERFACE PPB_FLASHFULLSCREEN_INTERFACE_0_1 18 #define PPB_FLASHFULLSCREEN_INTERFACE PPB_FLASHFULLSCREEN_INTERFACE_0_1
19 19
20 /** 20 /**
21 * PPB_Fullscreen is a copy of PPB_Fullscreen_Dev at rev 0.4.
22 * For backward compatibility keep the string for it until Flash is updated to
23 * use PPB_FlashFullscreen.
24 */
25 #define PPB_FULLSCREEN_DEV_INTERFACE_0_4 "PPB_Fullscreen(Dev);0.4"
26
27
28 /**
29 * @file 21 * @file
30 * This file defines the <code>PPB_FlashFullscreen</code> interface. 22 * This file defines the <code>PPB_FlashFullscreen</code> interface.
31 */ 23 */
32 24
25
33 /** 26 /**
34 * @addtogroup Interfaces 27 * @addtogroup Interfaces
35 * @{ 28 * @{
36 */ 29 */
37 struct PPB_FlashFullscreen { 30 struct PPB_FlashFullscreen {
38 /** 31 /**
39 * Checks whether the plugin instance is currently in fullscreen mode. 32 * Checks whether the plugin instance is currently in fullscreen mode.
40 */ 33 */
41 PP_Bool (*IsFullscreen)(PP_Instance instance); 34 PP_Bool (*IsFullscreen)(PP_Instance instance);
42 /** 35 /**
43 * Switches the plugin instance to/from fullscreen mode. Returns PP_TRUE on 36 * Switches the plugin instance to/from fullscreen mode. Returns PP_TRUE on
44 * success, PP_FALSE on failure. 37 * success, PP_FALSE on failure.
45 * 38 *
46 * This unbinds the current Graphics2D or Surface3D. Pending flushes and 39 * This unbinds the current Graphics2D or Graphics3D. Pending flushes and
47 * swapbuffers will execute as if the resource was off-screen. The transition 40 * swapbuffers will execute as if the resource was off-screen. The transition
48 * is asynchronous. During the transition, IsFullscreen will return PP_FALSE, 41 * is asynchronous. During the transition, IsFullscreen will return PP_FALSE,
49 * and no Graphics2D or Surface3D can be bound. The transition ends at the 42 * and no Graphics2D or Graphics3D can be bound. The transition ends at the
50 * next DidChangeView when going into fullscreen mode. The transition out of 43 * next DidChangeView when going into fullscreen mode. The transition out of
51 * fullscreen mode is synchronous. 44 * fullscreen mode is synchronous.
52 * 45 *
53 * Note: when switching to and from fullscreen, Context3D and Surface3D 46 * Note: when switching to and from fullscreen, Graphics3D resources need to
54 * resources need to be re-created. This is a current limitation that will be 47 * be re-created. This is a current limitation that will be lifted in a later
55 * lifted in a later revision. 48 * revision.
56 */ 49 */
57 PP_Bool (*SetFullscreen)(PP_Instance instance, PP_Bool fullscreen); 50 PP_Bool (*SetFullscreen)(PP_Instance instance, PP_Bool fullscreen);
58 /** 51 /**
59 * Gets the size of the screen in pixels. When going fullscreen, the instance 52 * Gets the size of the screen in pixels. When going fullscreen, the instance
60 * will be resized to that size. 53 * will be resized to that size.
61 */ 54 */
62 PP_Bool (*GetScreenSize)(PP_Instance instance, struct PP_Size* size); 55 PP_Bool (*GetScreenSize)(PP_Instance instance, struct PP_Size* size);
63 }; 56 };
64 /** 57 /**
65 * @} 58 * @}
66 */ 59 */
67 60
68 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_FULLSCREEN_H_ */ 61 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_FULLSCREEN_H_ */
62
OLDNEW
« no previous file with comments | « ppapi/c/pp_graphics_3d.h ('k') | ppapi/cpp/dev/context_3d_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698