OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef PPAPI_C_DEV_PPB_FULLSCREEN_DEV_H_ | 5 #ifndef PPAPI_C_DEV_PPB_FULLSCREEN_DEV_H_ |
6 #define PPAPI_C_DEV_PPB_FULLSCREEN_DEV_H_ | 6 #define PPAPI_C_DEV_PPB_FULLSCREEN_DEV_H_ |
7 | 7 |
| 8 #include "ppapi/c/pp_bool.h" |
8 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
9 #include "ppapi/c/pp_stdint.h" | 10 #include "ppapi/c/pp_stdint.h" |
10 | 11 |
11 #define PPB_FULLSCREEN_DEV_INTERFACE "PPB_Fullscreen(Dev);0.1" | 12 #define PPB_FULLSCREEN_DEV_INTERFACE "PPB_Fullscreen(Dev);0.2" |
12 | 13 |
13 // Use this interface to change a plugin instance to fullscreen mode. | 14 // Use this interface to change a plugin instance to fullscreen mode. |
14 struct PPB_Fullscreen_Dev { | 15 struct PPB_Fullscreen_Dev { |
15 // Checks whether the plugin instance is currently in fullscreen mode. | 16 // Checks whether the plugin instance is currently in fullscreen mode. |
16 bool (*IsFullscreen)(PP_Instance instance); | 17 PP_Bool (*IsFullscreen)(PP_Instance instance); |
17 | 18 |
18 // Switches the plugin instance to/from fullscreen mode. Returns true on | 19 // Switches the plugin instance to/from fullscreen mode. Returns PP_TRUE on |
19 // success, false on failure. | 20 // success, PP_FALSE on failure. |
20 // When in fullscreen mode, the plugin will be transparently scaled to the | 21 // When in fullscreen mode, the plugin will be transparently scaled to the |
21 // size of the screen. It will not receive a ViewChanged event, and doesn't | 22 // size of the screen. It will not receive a ViewChanged event, and doesn't |
22 // need to rebind the graphics context. The pending flushes will execute | 23 // need to rebind the graphics context. The pending flushes will execute |
23 // normally, to the new fullscreen window. | 24 // normally, to the new fullscreen window. |
24 bool (*SetFullscreen)(PP_Instance instance, bool fullscreen); | 25 PP_Bool (*SetFullscreen)(PP_Instance instance, PP_Bool fullscreen); |
25 }; | 26 }; |
26 | 27 |
27 #endif // PPAPI_C_DEV_PPB_FULLSCREEN_DEV_H_ | 28 #endif // PPAPI_C_DEV_PPB_FULLSCREEN_DEV_H_ |
OLD | NEW |