Roll src/third_party/WebKit ef7cfd7:80927b2 (svn 194570:194575)
[chromium-blink-merge.git] / ppapi / c / private / ppb_flash_fullscreen.h
blob3dc23cc1df065def817e00bbb36dd4fa35638f9a
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 */
6 /* From private/ppb_flash_fullscreen.idl modified Tue Sep 11 13:52:24 2012. */
8 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_FULLSCREEN_H_
9 #define PPAPI_C_PRIVATE_PPB_FLASH_FULLSCREEN_H_
11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_size.h"
15 #include "ppapi/c/pp_stdint.h"
17 #define PPB_FLASHFULLSCREEN_INTERFACE_0_1 "PPB_FlashFullscreen;0.1"
18 #define PPB_FLASHFULLSCREEN_INTERFACE_1_0 "PPB_FlashFullscreen;1.0"
19 #define PPB_FLASHFULLSCREEN_INTERFACE PPB_FLASHFULLSCREEN_INTERFACE_1_0
21 /**
22 * @file
23 * This file defines the <code>PPB_FlashFullscreen</code> interface.
27 /**
28 * @addtogroup Interfaces
29 * @{
31 struct PPB_FlashFullscreen_1_0 {
32 /**
33 * Checks whether the plugin instance is currently in fullscreen mode.
35 PP_Bool (*IsFullscreen)(PP_Instance instance);
36 /**
37 * Switches the plugin instance to/from fullscreen mode. Returns PP_TRUE on
38 * success, PP_FALSE on failure.
40 * This does not unbind the current Graphics2D or Graphics3D. Pending flushes
41 * and swapbuffers will execute as if the resource was off-screen. The
42 * transition is asynchronous. During the transition, IsFullscreen will
43 * return PP_FALSE, and no Graphics2D or Graphics3D can be bound. The
44 * transition ends at the next DidChangeView when going into fullscreen mode.
45 * The transition out of fullscreen mode is synchronous.
47 PP_Bool (*SetFullscreen)(PP_Instance instance, PP_Bool fullscreen);
48 /**
49 * Gets the size of the screen in pixels. When going fullscreen, the instance
50 * will be resized to that size.
52 PP_Bool (*GetScreenSize)(PP_Instance instance, struct PP_Size* size);
55 typedef struct PPB_FlashFullscreen_1_0 PPB_FlashFullscreen;
57 struct PPB_FlashFullscreen_0_1 {
58 PP_Bool (*IsFullscreen)(PP_Instance instance);
59 PP_Bool (*SetFullscreen)(PP_Instance instance, PP_Bool fullscreen);
60 PP_Bool (*GetScreenSize)(PP_Instance instance, struct PP_Size* size);
62 /**
63 * @}
66 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_FULLSCREEN_H_ */