summaryrefslogtreecommitdiffstats
path: root/ppapi/api/private/ppb_flash_fullscreen.idl
blob: 6760fad42cccd5f2c4061f1a4cef59a46b4783ee (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
48
49
/* Copyright (c) 2011 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_FlashFullscreen</code> interface.
 */

label Chrome {
  M16 = 0.1
};

interface PPB_FlashFullscreen {
  /**
   * 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.
   *
   * This unbinds the current Graphics2D or Graphics3D. Pending flushes and
   * swapbuffers will execute as if the resource was off-screen. The transition
   * is asynchronous. During the transition, IsFullscreen will return PP_FALSE,
   * and no Graphics2D or Graphics3D can be bound. The transition ends at the
   * next DidChangeView when going into fullscreen mode. The transition out of
   * fullscreen mode is synchronous.
   *
   * Note: when switching to and from fullscreen, Graphics3D resources need to
   * be re-created. This is a current limitation that will be lifted in a later
   * revision.
   */
  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);
};