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 CHROME_RENDERER_PEPPER_PEPPER_FLASH_FULLSCREEN_HOST_H_ | 5 #ifndef CHROME_RENDERER_PEPPER_PEPPER_FLASH_FULLSCREEN_HOST_H_ |
6 #define CHROME_RENDERER_PEPPER_PEPPER_FLASH_FULLSCREEN_HOST_H_ | 6 #define CHROME_RENDERER_PEPPER_PEPPER_FLASH_FULLSCREEN_HOST_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "ppapi/host/resource_host.h" | 10 #include "ppapi/host/resource_host.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 class RendererPpapiHost; | 13 class RendererPpapiHost; |
14 } | 14 } |
15 | 15 |
16 class PepperFlashFullscreenHost : public ppapi::host::ResourceHost { | 16 class PepperFlashFullscreenHost : public ppapi::host::ResourceHost { |
17 public: | 17 public: |
18 PepperFlashFullscreenHost(content::RendererPpapiHost* host, | 18 PepperFlashFullscreenHost(content::RendererPpapiHost* host, |
19 PP_Instance instance, | 19 PP_Instance instance, |
20 PP_Resource resource); | 20 PP_Resource resource); |
21 virtual ~PepperFlashFullscreenHost(); | 21 virtual ~PepperFlashFullscreenHost(); |
22 | 22 |
23 virtual int32_t OnResourceMessageReceived( | 23 virtual int32_t OnResourceMessageReceived( |
24 const IPC::Message& msg, | 24 const IPC::Message& msg, |
25 ppapi::host::HostMessageContext* context) OVERRIDE; | 25 ppapi::host::HostMessageContext* context) override; |
26 | 26 |
27 private: | 27 private: |
28 int32_t OnSetFullscreen(ppapi::host::HostMessageContext* context, | 28 int32_t OnSetFullscreen(ppapi::host::HostMessageContext* context, |
29 bool fullscreen); | 29 bool fullscreen); |
30 | 30 |
31 // Non-owning pointer. | 31 // Non-owning pointer. |
32 content::RendererPpapiHost* renderer_ppapi_host_; | 32 content::RendererPpapiHost* renderer_ppapi_host_; |
33 | 33 |
34 DISALLOW_COPY_AND_ASSIGN(PepperFlashFullscreenHost); | 34 DISALLOW_COPY_AND_ASSIGN(PepperFlashFullscreenHost); |
35 }; | 35 }; |
36 | 36 |
37 #endif // CHROME_RENDERER_PEPPER_PEPPER_FLASH_FULLSCREEN_HOST_H_ | 37 #endif // CHROME_RENDERER_PEPPER_PEPPER_FLASH_FULLSCREEN_HOST_H_ |
OLD | NEW |