[email protected] | 22fdaa6 | 2012-11-30 01:55:44 | [diff] [blame] | 1 | // 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 | |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 8 | #include "base/macros.h" |
[email protected] | 22fdaa6 | 2012-11-30 01:55:44 | [diff] [blame] | 9 | #include "ppapi/proxy/connection.h" |
| 10 | #include "ppapi/proxy/plugin_resource.h" |
| 11 | #include "ppapi/thunk/ppb_flash_fullscreen_api.h" |
| 12 | |
| 13 | namespace ppapi { |
| 14 | namespace proxy { |
| 15 | |
| 16 | class FlashFullscreenResource |
| 17 | : public PluginResource, |
| 18 | public thunk::PPB_Flash_Fullscreen_API { |
| 19 | public: |
| 20 | FlashFullscreenResource(Connection connection, |
| 21 | PP_Instance instance); |
nick | e478443 | 2015-04-23 14:01:48 | [diff] [blame] | 22 | ~FlashFullscreenResource() override; |
[email protected] | 22fdaa6 | 2012-11-30 01:55:44 | [diff] [blame] | 23 | |
| 24 | // Resource overrides. |
nick | e478443 | 2015-04-23 14:01:48 | [diff] [blame] | 25 | thunk::PPB_Flash_Fullscreen_API* AsPPB_Flash_Fullscreen_API() override; |
[email protected] | 22fdaa6 | 2012-11-30 01:55:44 | [diff] [blame] | 26 | |
| 27 | // PPB_Flash_Fullscreen_API implementation. |
nick | e478443 | 2015-04-23 14:01:48 | [diff] [blame] | 28 | 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] | 22fdaa6 | 2012-11-30 01:55:44 | [diff] [blame] | 32 | |
| 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_ |