Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(496)

Side by Side Diff: ppapi/api/dev/ppb_fullscreen_dev.idl

Issue 7740052: Add IDL for the fullscreen dev API. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ppapi/c/dev/ppb_fullscreen_dev.h » ('j') | ppapi/c/dev/ppb_fullscreen_dev.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 * found in the LICENSE file.
4 */
5
6
7 /**
8 * This file defines the <code>PPB_Fullscreen</dev> interface.
9 */
10
11 label Chrome {
12 M14 = 0.4
13 };
14
15 interface PPB_Fullscreen_Dev {
16 /**
17 * Checks whether the plugin instance is currently in fullscreen mode.
18 */
19 PP_Bool IsFullscreen(
20 [in] PP_Instance instance);
21
22 /**
23 * Switches the plugin instance to/from fullscreen mode. Returns PP_TRUE on
24 * success, PP_FALSE on failure.
25 *
26 * This unbinds the current Graphics2D or Surface3D. Pending flushes and
27 * swapbuffers will execute as if the resource was off-screen. The transition
28 * is asynchronous. During the transition, IsFullscreen will return PP_False,
29 * and no Graphics2D or Surface3D can be bound. The transition ends at the
30 * next DidChangeView.
31 *
32 * Note: when switching to and from fullscreen, Context3D and Surface3D
33 * resources need to be re-created. This is a current limitation that will be
34 * lifted in a later revision.
35 */
36 PP_Bool SetFullscreen(
37 [in] PP_Instance instance,
38 [in] PP_Bool fullscreen);
39
40 /**
41 * Gets the size of the screen. When going fullscreen, the instance will be
42 * resized to that size.
43 */
44 PP_Bool GetScreenSize(
45 [in] PP_Instance instance,
46 [out] PP_Size size);
47 };
48
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/dev/ppb_fullscreen_dev.h » ('j') | ppapi/c/dev/ppb_fullscreen_dev.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698