blob: 22b44f254e1be6915789e04ffece229fdf6f46d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/**
* This file defines the <code>PPB_Fullscreen_Dev</code> interface.
*/
label Chrome {
M16 = 0.5
};
interface PPB_Fullscreen_Dev {
/**
* Checks whether the plugin instance is currently in fullscreen mode.
*/
PP_Bool IsFullscreen(
[in] PP_Instance instance);
/**
* Switches the plugin instance to/from fullscreen mode. Returns PP_TRUE on
* success, PP_FALSE on failure.
*
* The transition to and from fullscreen is asynchronous.
* During the transition, IsFullscreen will return the original value, and
* no 2D or 3D device can be bound. The transition ends at DidChangeView
* when IsFullscreen returns the new value. You might receive other
* DidChangeView calls while in transition.
*
* The transition to fullscreen can only occur while the browser is
* processing a user gesture, even if PP_TRUE is returned.
*/
PP_Bool SetFullscreen(
[in] PP_Instance instance,
[in] PP_Bool fullscreen);
/**
* Gets the size of the screen in pixels. When going fullscreen, the instance
* will be resized to that size.
*/
PP_Bool GetScreenSize(
[in] PP_Instance instance,
[out] PP_Size size);
};
|