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 | 6 |
7 /** | 7 /** |
8 * This file defines the <code>PPB_Fullscreen_Dev</code> interface. | 8 * This file defines the <code>PPB_Fullscreen_Dev</code> interface. |
9 */ | 9 */ |
10 | 10 |
11 label Chrome { | 11 label Chrome { |
12 M16 = 0.5 | 12 M16 = 0.5 |
13 }; | 13 }; |
14 | 14 |
15 interface PPB_Fullscreen_Dev { | 15 interface PPB_Fullscreen_Dev { |
16 /** | 16 /** |
17 * Checks whether the plugin instance is currently in fullscreen mode. | 17 * Checks whether the plugin instance is currently in fullscreen mode. |
18 */ | 18 */ |
19 PP_Bool IsFullscreen( | 19 PP_Bool IsFullscreen( |
20 [in] PP_Instance instance); | 20 [in] PP_Instance instance); |
21 | 21 |
22 /** | 22 /** |
23 * Switches the plugin instance to/from fullscreen mode. Returns PP_TRUE on | 23 * Switches the plugin instance to/from fullscreen mode. Returns PP_TRUE on |
24 * success, PP_FALSE on failure. | 24 * success, PP_FALSE on failure. |
25 * | 25 * |
26 * This unbinds the current 2D or 3D devices. Pending flushes and swapbuffers | 26 * The transition to and from fullscreen is asynchronous. |
27 * will execute as if the resource was off-screen. The transition to and from | 27 * During the transition, IsFullscreen will return the original value, and |
28 * fullscreen is asynchronous. During the transition, IsFullscreen will | 28 * no 2D or 3D device can be bound. The transition ends at DidChangeView |
29 * return the original value, and no 2D or 3D device can be bound. | 29 * when IsFullscreen returns the new value. You might receive other |
30 * The transition ends at DidChangeView when IsFullscreen returns the new | 30 * DidChangeView calls while in transition. |
31 * value. You might receive other DidChangeView calls while in | |
32 * transition. | |
33 * | 31 * |
34 * The transition to fullscreen can only occur while the browser is | 32 * The transition to fullscreen can only occur while the browser is |
35 * processing a user gesture, even if PP_TRUE is returned. | 33 * processing a user gesture, even if PP_TRUE is returned. |
36 */ | 34 */ |
37 PP_Bool SetFullscreen( | 35 PP_Bool SetFullscreen( |
38 [in] PP_Instance instance, | 36 [in] PP_Instance instance, |
39 [in] PP_Bool fullscreen); | 37 [in] PP_Bool fullscreen); |
40 | 38 |
41 /** | 39 /** |
42 * Gets the size of the screen in pixels. When going fullscreen, the instance | 40 * Gets the size of the screen in pixels. When going fullscreen, the instance |
43 * will be resized to that size. | 41 * will be resized to that size. |
44 */ | 42 */ |
45 PP_Bool GetScreenSize( | 43 PP_Bool GetScreenSize( |
46 [in] PP_Instance instance, | 44 [in] PP_Instance instance, |
47 [out] PP_Size size); | 45 [out] PP_Size size); |
48 }; | 46 }; |
49 | 47 |
OLD | NEW |