blob: ac718c38628739306b711501b39fbfbdb0150fcc [file] [log] [blame]
/* 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.
*/
/* From dev/ppb_fullscreen_dev.idl modified Fri Oct 14 14:57:50 2011. */
#ifndef PPAPI_C_DEV_PPB_FULLSCREEN_DEV_H_
#define PPAPI_C_DEV_PPB_FULLSCREEN_DEV_H_
#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_macros.h"
#include "ppapi/c/pp_size.h"
#include "ppapi/c/pp_stdint.h"
#define PPB_FULLSCREEN_DEV_INTERFACE_0_5 "PPB_Fullscreen(Dev);0.5"
#define PPB_FULLSCREEN_DEV_INTERFACE PPB_FULLSCREEN_DEV_INTERFACE_0_5
/**
* @file
* This file defines the <code>PPB_Fullscreen_Dev</code> interface.
*/
/**
* @addtogroup Interfaces
* @{
*/
struct PPB_Fullscreen_Dev_0_5 {
/**
* Checks whether the plugin instance is currently in fullscreen mode.
*/
PP_Bool (*IsFullscreen)(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)(PP_Instance instance, 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)(PP_Instance instance, struct PP_Size* size);
};
typedef struct PPB_Fullscreen_Dev_0_5 PPB_Fullscreen_Dev;
/**
* @}
*/
#endif /* PPAPI_C_DEV_PPB_FULLSCREEN_DEV_H_ */