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