blob: 0c276a3c85e812ea8d543cf5d505258a241ea751 [file] [log] [blame]
[email protected]22fdaa62012-11-30 01:55:441// Copyright (c) 2012 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#ifndef PPAPI_PROXY_FLASH_FULLSCREEN_RESOURCE_H_
6#define PPAPI_PROXY_FLASH_FULLSCREEN_RESOURCE_H_
7
avie029c4132015-12-23 06:45:228#include "base/macros.h"
[email protected]22fdaa62012-11-30 01:55:449#include "ppapi/proxy/connection.h"
10#include "ppapi/proxy/plugin_resource.h"
11#include "ppapi/thunk/ppb_flash_fullscreen_api.h"
12
13namespace ppapi {
14namespace proxy {
15
16class FlashFullscreenResource
17 : public PluginResource,
18 public thunk::PPB_Flash_Fullscreen_API {
19 public:
20 FlashFullscreenResource(Connection connection,
21 PP_Instance instance);
nicke4784432015-04-23 14:01:4822 ~FlashFullscreenResource() override;
[email protected]22fdaa62012-11-30 01:55:4423
24 // Resource overrides.
nicke4784432015-04-23 14:01:4825 thunk::PPB_Flash_Fullscreen_API* AsPPB_Flash_Fullscreen_API() override;
[email protected]22fdaa62012-11-30 01:55:4426
27 // PPB_Flash_Fullscreen_API implementation.
nicke4784432015-04-23 14:01:4828 PP_Bool IsFullscreen(PP_Instance instance) override;
29 PP_Bool SetFullscreen(PP_Instance instance, PP_Bool fullscreen) override;
30 void SetLocalIsFullscreen(PP_Instance instance,
31 PP_Bool is_fullscreen) override;
[email protected]22fdaa62012-11-30 01:55:4432
33 private:
34 PP_Bool is_fullscreen_;
35
36 DISALLOW_COPY_AND_ASSIGN(FlashFullscreenResource);
37};
38
39} // namespace proxy
40} // namespace ppapi
41
42#endif // PPAPI_PROXY_FLASH_FULLSCREEN_RESOURCE_H_