OLD | NEW |
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 dev/ppb_fullscreen_dev.idl modified Fri Aug 26 10:51:16 2011. */ | 6 /* From dev/ppb_fullscreen_dev.idl modified Thu Sep 1 14:52:34 2011. */ |
7 | 7 |
8 #ifndef PPAPI_C_DEV_PPB_FULLSCREEN_DEV_H_ | 8 #ifndef PPAPI_C_DEV_PPB_FULLSCREEN_DEV_H_ |
9 #define PPAPI_C_DEV_PPB_FULLSCREEN_DEV_H_ | 9 #define PPAPI_C_DEV_PPB_FULLSCREEN_DEV_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 |
(...skipping 13 matching lines...) Expand all Loading... |
30 struct PPB_Fullscreen_Dev { | 30 struct PPB_Fullscreen_Dev { |
31 /** | 31 /** |
32 * Checks whether the plugin instance is currently in fullscreen mode. | 32 * Checks whether the plugin instance is currently in fullscreen mode. |
33 */ | 33 */ |
34 PP_Bool (*IsFullscreen)(PP_Instance instance); | 34 PP_Bool (*IsFullscreen)(PP_Instance instance); |
35 /** | 35 /** |
36 * 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 |
37 * success, PP_FALSE on failure. | 37 * success, PP_FALSE on failure. |
38 * | 38 * |
39 * This unbinds the current Graphics2D or Surface3D. Pending flushes and | 39 * This unbinds the current Graphics2D or Surface3D. Pending flushes and |
40 * 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 |
41 * is asynchronous. During the transition, IsFullscreen will return PP_False, | 41 * is asynchronous. During the transition, IsFullscreen will return PP_FALSE, |
42 * and no Graphics2D or Surface3D can be bound. The transition ends at the | 42 * and no Graphics2D or Surface3D can be bound. The transition ends at the |
43 * next DidChangeView. | 43 * next DidChangeView. The transition from fullscreen is synchronous. |
44 * | 44 * |
45 * Note: when switching to and from fullscreen, Context3D and Surface3D | 45 * Note: when switching to and from fullscreen, Context3D and Surface3D |
46 * resources need to be re-created. This is a current limitation that will be | 46 * resources need to be re-created. This is a current limitation that will be |
47 * lifted in a later revision. | 47 * lifted in a later revision. |
48 */ | 48 */ |
49 PP_Bool (*SetFullscreen)(PP_Instance instance, PP_Bool fullscreen); | 49 PP_Bool (*SetFullscreen)(PP_Instance instance, PP_Bool fullscreen); |
50 /** | 50 /** |
51 * Gets the size of the screen. When going fullscreen, the instance will be | 51 * Gets the logical size (aka resolution) of the screen in pixels. |
52 * resized to that size. | 52 * When going fullscreen, the instance will be resized to that size. |
53 */ | 53 */ |
54 PP_Bool (*GetScreenSize)(PP_Instance instance, struct PP_Size* size); | 54 PP_Bool (*GetScreenSize)(PP_Instance instance, struct PP_Size* size); |
55 }; | 55 }; |
56 /** | 56 /** |
57 * @} | 57 * @} |
58 */ | 58 */ |
59 | 59 |
60 #endif /* PPAPI_C_DEV_PPB_FULLSCREEN_DEV_H_ */ | 60 #endif /* PPAPI_C_DEV_PPB_FULLSCREEN_DEV_H_ */ |
61 | 61 |
OLD | NEW |