OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PPAPI_PROXY_FLASH_FULLSCREEN_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_FLASH_FULLSCREEN_RESOURCE_H_ |
6 #define PPAPI_PROXY_FLASH_FULLSCREEN_RESOURCE_H_ | 6 #define PPAPI_PROXY_FLASH_FULLSCREEN_RESOURCE_H_ |
7 | 7 |
8 #include "ppapi/proxy/connection.h" | 8 #include "ppapi/proxy/connection.h" |
9 #include "ppapi/proxy/plugin_resource.h" | 9 #include "ppapi/proxy/plugin_resource.h" |
10 #include "ppapi/thunk/ppb_flash_fullscreen_api.h" | 10 #include "ppapi/thunk/ppb_flash_fullscreen_api.h" |
11 | 11 |
12 namespace ppapi { | 12 namespace ppapi { |
13 namespace proxy { | 13 namespace proxy { |
14 | 14 |
15 class FlashFullscreenResource | 15 class FlashFullscreenResource |
16 : public PluginResource, | 16 : public PluginResource, |
17 public thunk::PPB_Flash_Fullscreen_API { | 17 public thunk::PPB_Flash_Fullscreen_API { |
18 public: | 18 public: |
19 FlashFullscreenResource(Connection connection, | 19 FlashFullscreenResource(Connection connection, |
20 PP_Instance instance); | 20 PP_Instance instance); |
21 virtual ~FlashFullscreenResource(); | 21 virtual ~FlashFullscreenResource(); |
22 | 22 |
23 // Resource overrides. | 23 // Resource overrides. |
24 virtual thunk::PPB_Flash_Fullscreen_API* | 24 virtual thunk::PPB_Flash_Fullscreen_API* |
25 AsPPB_Flash_Fullscreen_API() OVERRIDE; | 25 AsPPB_Flash_Fullscreen_API() override; |
26 | 26 |
27 // PPB_Flash_Fullscreen_API implementation. | 27 // PPB_Flash_Fullscreen_API implementation. |
28 virtual PP_Bool IsFullscreen(PP_Instance instance) OVERRIDE; | 28 virtual PP_Bool IsFullscreen(PP_Instance instance) override; |
29 virtual PP_Bool SetFullscreen(PP_Instance instance, | 29 virtual PP_Bool SetFullscreen(PP_Instance instance, |
30 PP_Bool fullscreen) OVERRIDE; | 30 PP_Bool fullscreen) override; |
31 virtual void SetLocalIsFullscreen(PP_Instance instance, | 31 virtual void SetLocalIsFullscreen(PP_Instance instance, |
32 PP_Bool is_fullscreen) OVERRIDE; | 32 PP_Bool is_fullscreen) override; |
33 | 33 |
34 private: | 34 private: |
35 PP_Bool is_fullscreen_; | 35 PP_Bool is_fullscreen_; |
36 | 36 |
37 DISALLOW_COPY_AND_ASSIGN(FlashFullscreenResource); | 37 DISALLOW_COPY_AND_ASSIGN(FlashFullscreenResource); |
38 }; | 38 }; |
39 | 39 |
40 } // namespace proxy | 40 } // namespace proxy |
41 } // namespace ppapi | 41 } // namespace ppapi |
42 | 42 |
43 #endif // PPAPI_PROXY_FLASH_FULLSCREEN_RESOURCE_H_ | 43 #endif // PPAPI_PROXY_FLASH_FULLSCREEN_RESOURCE_H_ |
OLD | NEW |