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 CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ |
6 #define CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 9 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
10 #include "content/renderer/pepper/pepper_parent_context_provider.h" | 10 #include "content/renderer/pepper/pepper_parent_context_provider.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 } // namespace ppapi | 23 } // namespace ppapi |
24 } // namespace webkit | 24 } // namespace webkit |
25 | 25 |
26 // A RenderWidget that hosts a fullscreen pepper plugin. This provides a | 26 // A RenderWidget that hosts a fullscreen pepper plugin. This provides a |
27 // FullscreenContainer that the plugin instance can callback into to e.g. | 27 // FullscreenContainer that the plugin instance can callback into to e.g. |
28 // invalidate rects. | 28 // invalidate rects. |
29 class RenderWidgetFullscreenPepper : | 29 class RenderWidgetFullscreenPepper : |
30 public RenderWidgetFullscreen, | 30 public RenderWidgetFullscreen, |
31 public webkit::ppapi::FullscreenContainer, | 31 public webkit::ppapi::FullscreenContainer, |
32 public PepperParentContextProvider, | 32 public content::PepperParentContextProvider, |
33 public WebGraphicsContext3DSwapBuffersClient { | 33 public WebGraphicsContext3DSwapBuffersClient { |
34 public: | 34 public: |
35 static RenderWidgetFullscreenPepper* Create( | 35 static RenderWidgetFullscreenPepper* Create( |
36 int32 opener_id, | 36 int32 opener_id, |
37 webkit::ppapi::PluginInstance* plugin, | 37 webkit::ppapi::PluginInstance* plugin, |
38 const GURL& active_url); | 38 const GURL& active_url); |
39 | 39 |
40 // WebGraphicscontext3DSwapBuffersClient implementation | 40 // WebGraphicscontext3DSwapBuffersClient implementation |
41 virtual void OnViewContextSwapBuffersPosted() OVERRIDE; | 41 virtual void OnViewContextSwapBuffersPosted() OVERRIDE; |
42 virtual void OnViewContextSwapBuffersComplete() OVERRIDE; | 42 virtual void OnViewContextSwapBuffersComplete() OVERRIDE; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 WebGraphicsContext3DCommandBufferImpl* context_; | 107 WebGraphicsContext3DCommandBufferImpl* context_; |
108 unsigned int buffer_; | 108 unsigned int buffer_; |
109 unsigned int program_; | 109 unsigned int program_; |
110 | 110 |
111 base::WeakPtrFactory<RenderWidgetFullscreenPepper> weak_ptr_factory_; | 111 base::WeakPtrFactory<RenderWidgetFullscreenPepper> weak_ptr_factory_; |
112 | 112 |
113 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); | 113 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); |
114 }; | 114 }; |
115 | 115 |
116 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ | 116 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ |
OLD | NEW |