| 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</code> interface. | 8 * This file defines the <code>PPB_Fullscreen</code> interface. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 label Chrome { | 11 label Chrome { |
| 12 M16 = 1.0 | 12 M16 = 1.0 |
| 13 }; | 13 }; |
| 14 | 14 |
| 15 interface PPB_Fullscreen { | 15 interface PPB_Fullscreen { |
| 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 * |
| 19 * This function returns the same result as |
| 20 * PPB_Instance.GetView().IsFullscreen(). |
| 18 */ | 21 */ |
| 19 PP_Bool IsFullscreen( | 22 PP_Bool IsFullscreen( |
| 20 [in] PP_Instance instance); | 23 [in] PP_Instance instance); |
| 21 | 24 |
| 22 /** | 25 /** |
| 23 * Switches the plugin instance to/from fullscreen mode. Returns PP_TRUE on | 26 * Switches the plugin instance to/from fullscreen mode. Returns PP_TRUE on |
| 24 * success, PP_FALSE on failure. | 27 * success, PP_FALSE on failure. |
| 25 * | 28 * |
| 26 * The transition to and from fullscreen is asynchronous. | 29 * The transition to and from fullscreen is asynchronous. |
| 27 * During the transition, IsFullscreen will return the original value, and | 30 * During the transition, IsFullscreen will return the original value, and |
| (...skipping 10 matching lines...) Expand all Loading... |
| 38 | 41 |
| 39 /** | 42 /** |
| 40 * Gets the size of the screen in pixels. When going fullscreen, the instance | 43 * Gets the size of the screen in pixels. When going fullscreen, the instance |
| 41 * will be resized to that size. | 44 * will be resized to that size. |
| 42 */ | 45 */ |
| 43 PP_Bool GetScreenSize( | 46 PP_Bool GetScreenSize( |
| 44 [in] PP_Instance instance, | 47 [in] PP_Instance instance, |
| 45 [out] PP_Size size); | 48 [out] PP_Size size); |
| 46 }; | 49 }; |
| 47 | 50 |
| OLD | NEW |