| 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 ppb_fullscreen.idl modified Wed Dec 21 11:00:23 2011. */ | 6 /* From ppb_fullscreen.idl modified Wed Dec 21 19:08:34 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPB_FULLSCREEN_H_ | 8 #ifndef PPAPI_C_PPB_FULLSCREEN_H_ |
| 9 #define PPAPI_C_PPB_FULLSCREEN_H_ | 9 #define PPAPI_C_PPB_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_FULLSCREEN_INTERFACE_1_0 "PPB_Fullscreen;1.0" | 17 #define PPB_FULLSCREEN_INTERFACE_1_0 "PPB_Fullscreen;1.0" |
| 18 #define PPB_FULLSCREEN_INTERFACE PPB_FULLSCREEN_INTERFACE_1_0 | 18 #define PPB_FULLSCREEN_INTERFACE PPB_FULLSCREEN_INTERFACE_1_0 |
| 19 | 19 |
| 20 /** | 20 /** |
| 21 * @file | 21 * @file |
| 22 * This file defines the <code>PPB_Fullscreen</code> interface for | 22 * This file defines the <code>PPB_Fullscreen</code> interface for |
| 23 * handling transitions of a module instance to and from fullscreen mode. | 23 * handling transitions of a module instance to and from fullscreen mode. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 | 26 |
| 27 /** | 27 /** |
| 28 * @addtogroup Interfaces | 28 * @addtogroup Interfaces |
| 29 * @{ | 29 * @{ |
| 30 */ | 30 */ |
| 31 /** | 31 /** |
| 32 * The <code>PPB_Fullscreen</code> interface is implemented by the browser. | 32 * The <code>PPB_Fullscreen</code> interface is implemented by the browser. |
| 33 * This interface provides a way of checking the current screen mode and | 33 * This interface provides a way of checking the current screen mode and |
| 34 * toggling fullscreen mode. | 34 * toggling fullscreen mode. |
| 35 */ | 35 */ |
| 36 struct PPB_Fullscreen { | 36 struct PPB_Fullscreen_1_0 { |
| 37 /** | 37 /** |
| 38 * IsFullscreen() checks whether the module instance is currently in | 38 * IsFullscreen() checks whether the module instance is currently in |
| 39 * fullscreen mode. | 39 * fullscreen mode. |
| 40 * | 40 * |
| 41 * @param[in] instance A <code>PP_Instance</code> identifying one instance | 41 * @param[in] instance A <code>PP_Instance</code> identifying one instance |
| 42 * of a module. | 42 * of a module. |
| 43 * | 43 * |
| 44 * @return <code>PP_TRUE</code> if the module instance is in fullscreen mode, | 44 * @return <code>PP_TRUE</code> if the module instance is in fullscreen mode, |
| 45 * <code>PP_FALSE</code> if the module instance is not in fullscreen mode. | 45 * <code>PP_FALSE</code> if the module instance is not in fullscreen mode. |
| 46 */ | 46 */ |
| (...skipping 27 matching lines...) Expand all Loading... |
| 74 * | 74 * |
| 75 * @param[in] instance A <code>PP_Instance</code> identifying one instance | 75 * @param[in] instance A <code>PP_Instance</code> identifying one instance |
| 76 * of a module. | 76 * of a module. |
| 77 * @param[out] size The size of the entire screen in pixels. | 77 * @param[out] size The size of the entire screen in pixels. |
| 78 * | 78 * |
| 79 * @return <code>PP_TRUE</code> on success or <code>PP_FALSE</code> on | 79 * @return <code>PP_TRUE</code> on success or <code>PP_FALSE</code> on |
| 80 * failure. | 80 * failure. |
| 81 */ | 81 */ |
| 82 PP_Bool (*GetScreenSize)(PP_Instance instance, struct PP_Size* size); | 82 PP_Bool (*GetScreenSize)(PP_Instance instance, struct PP_Size* size); |
| 83 }; | 83 }; |
| 84 |
| 85 typedef struct PPB_Fullscreen_1_0 PPB_Fullscreen; |
| 84 /** | 86 /** |
| 85 * @} | 87 * @} |
| 86 */ | 88 */ |
| 87 | 89 |
| 88 #endif /* PPAPI_C_PPB_FULLSCREEN_H_ */ | 90 #endif /* PPAPI_C_PPB_FULLSCREEN_H_ */ |
| 89 | 91 |
| OLD | NEW |