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 Tue Oct 11 15:45:41 2011. */ | 6 /* From dev/ppb_fullscreen_dev.idl modified Fri Oct 14 05:00:39 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 12 matching lines...) Expand all Loading... |
29 */ | 29 */ |
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 2D or 3D devices. Pending flushes and swapbuffers | 39 * The transition to and from fullscreen is asynchronous. |
40 * will execute as if the resource was off-screen. The transition to and from | 40 * During the transition, IsFullscreen will return the original value, and |
41 * fullscreen is asynchronous. During the transition, IsFullscreen will | 41 * no 2D or 3D device can be bound. The transition ends at DidChangeView |
42 * return the original value, and no 2D or 3D device can be bound. | 42 * when IsFullscreen returns the new value. You might receive other |
43 * The transition ends at DidChangeView when IsFullscreen returns the new | 43 * DidChangeView calls while in transition. |
44 * value. You might receive other DidChangeView calls while in | |
45 * transition. | |
46 * | 44 * |
47 * The transition to fullscreen can only occur while the browser is | 45 * The transition to fullscreen can only occur while the browser is |
48 * processing a user gesture, even if PP_TRUE is returned. | 46 * processing a user gesture, even if PP_TRUE is returned. |
49 */ | 47 */ |
50 PP_Bool (*SetFullscreen)(PP_Instance instance, PP_Bool fullscreen); | 48 PP_Bool (*SetFullscreen)(PP_Instance instance, PP_Bool fullscreen); |
51 /** | 49 /** |
52 * Gets the size of the screen in pixels. When going fullscreen, the instance | 50 * Gets the size of the screen in pixels. When going fullscreen, the instance |
53 * will be resized to that size. | 51 * will be resized to that size. |
54 */ | 52 */ |
55 PP_Bool (*GetScreenSize)(PP_Instance instance, struct PP_Size* size); | 53 PP_Bool (*GetScreenSize)(PP_Instance instance, struct PP_Size* size); |
56 }; | 54 }; |
57 /** | 55 /** |
58 * @} | 56 * @} |
59 */ | 57 */ |
60 | 58 |
61 #endif /* PPAPI_C_DEV_PPB_FULLSCREEN_DEV_H_ */ | 59 #endif /* PPAPI_C_DEV_PPB_FULLSCREEN_DEV_H_ */ |
62 | 60 |
OLD | NEW |