| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_FlashFullscreen</code> interface. | 8 * This file defines the <code>PPB_FlashFullscreen</code> interface. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 label Chrome { | 11 label Chrome { |
| 12 M16 = 0.1 | 12 M16 = 0.1, |
| 13 M23 = 1.0 |
| 13 }; | 14 }; |
| 14 | 15 |
| 15 interface PPB_FlashFullscreen { | 16 interface PPB_FlashFullscreen { |
| 16 /** | 17 /** |
| 17 * Checks whether the plugin instance is currently in fullscreen mode. | 18 * Checks whether the plugin instance is currently in fullscreen mode. |
| 18 */ | 19 */ |
| 19 PP_Bool IsFullscreen( | 20 PP_Bool IsFullscreen( |
| 20 [in] PP_Instance instance); | 21 [in] PP_Instance instance); |
| 21 | 22 |
| 23 /* |
| 24 * This older version required that graphics contexts be recreated after the |
| 25 * transition. |
| 26 */ |
| 27 [version=0.1, deprecate=1.0] |
| 28 PP_Bool SetFullscreen( |
| 29 [in] PP_Instance instance, |
| 30 [in] PP_Bool fullscreen); |
| 31 |
| 22 /** | 32 /** |
| 23 * Switches the plugin instance to/from fullscreen mode. Returns PP_TRUE on | 33 * Switches the plugin instance to/from fullscreen mode. Returns PP_TRUE on |
| 24 * success, PP_FALSE on failure. | 34 * success, PP_FALSE on failure. |
| 25 * | 35 * |
| 26 * This unbinds the current Graphics2D or Graphics3D. Pending flushes and | 36 * This does not unbind the current Graphics2D or Graphics3D. Pending flushes |
| 27 * swapbuffers will execute as if the resource was off-screen. The transition | 37 * and swapbuffers will execute as if the resource was off-screen. The |
| 28 * is asynchronous. During the transition, IsFullscreen will return PP_FALSE, | 38 * transition is asynchronous. During the transition, IsFullscreen will |
| 29 * and no Graphics2D or Graphics3D can be bound. The transition ends at the | 39 * return PP_FALSE, and no Graphics2D or Graphics3D can be bound. The |
| 30 * next DidChangeView when going into fullscreen mode. The transition out of | 40 * transition ends at the next DidChangeView when going into fullscreen mode. |
| 31 * fullscreen mode is synchronous. | 41 * The transition out of fullscreen mode is synchronous. |
| 32 * | |
| 33 * Note: when switching to and from fullscreen, Graphics3D resources need to | |
| 34 * be re-created. This is a current limitation that will be lifted in a later | |
| 35 * revision. | |
| 36 */ | 42 */ |
| 43 [version=1.0] |
| 37 PP_Bool SetFullscreen( | 44 PP_Bool SetFullscreen( |
| 38 [in] PP_Instance instance, | 45 [in] PP_Instance instance, |
| 39 [in] PP_Bool fullscreen); | 46 [in] PP_Bool fullscreen); |
| 40 | 47 |
| 41 /** | 48 /** |
| 42 * Gets the size of the screen in pixels. When going fullscreen, the instance | 49 * Gets the size of the screen in pixels. When going fullscreen, the instance |
| 43 * will be resized to that size. | 50 * will be resized to that size. |
| 44 */ | 51 */ |
| 45 PP_Bool GetScreenSize( | 52 PP_Bool GetScreenSize( |
| 46 [in] PP_Instance instance, | 53 [in] PP_Instance instance, |
| 47 [out] PP_Size size); | 54 [out] PP_Size size); |
| 48 }; | 55 }; |
| 49 | 56 |
| OLD | NEW |