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