summaryrefslogtreecommitdiffstats
path: root/ppapi/thunk/ppb_flash_fullscreen_api.h
blob: d1435b55f8658be26af593d4e40fddc269bfb5f5 (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
// 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.

#ifndef PPAPI_THUNK_PPB_FLASH_FULLSCREEN_API_H_
#define PPAPI_THUNK_PPB_FLASH_FULLSCREEN_API_H_

#include "ppapi/shared_impl/singleton_resource_id.h"
#include "ppapi/thunk/ppapi_thunk_export.h"

namespace ppapi {
namespace thunk {

class PPAPI_THUNK_EXPORT PPB_Flash_Fullscreen_API {
 public:
  virtual ~PPB_Flash_Fullscreen_API() {}

  virtual PP_Bool IsFullscreen(PP_Instance instance) = 0;
  virtual PP_Bool SetFullscreen(PP_Instance instance,
                                PP_Bool fullscreen) = 0;

  // Internal function used to update whether or not Flash fullscreen is enabled
  // in the plugin side. The value is passed with a
  // PpapiMsg_PPPInstance_DidChangeView message.
  virtual void SetLocalIsFullscreen(PP_Instance instance,
                                    PP_Bool fullscreen) = 0;

  static const SingletonResourceID kSingletonResourceID =
      FLASH_FULLSCREEN_SINGLETON_ID;
};

}  // namespace thunk
}  // namespace ppapi

#endif // PPAPI_THUNK_PPB_FLASH_FULLSCREEN_API_H_