| 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/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 10 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
| 11 #include "content/renderer/mouse_lock_dispatcher.h" | 11 #include "content/renderer/mouse_lock_dispatcher.h" |
| 12 #include "content/renderer/pepper/pepper_parent_context_provider.h" | 12 #include "content/renderer/pepper/pepper_parent_context_provider.h" |
| 13 #include "content/renderer/render_widget_fullscreen.h" | 13 #include "content/renderer/render_widget_fullscreen.h" |
| 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h" |
| 16 #include "webkit/plugins/ppapi/fullscreen_container.h" | 16 #include "webkit/plugins/ppapi/fullscreen_container.h" |
| 17 | 17 |
| 18 class WebGraphicsContext3DCommandBufferImpl; | |
| 19 | |
| 20 namespace webkit { | 18 namespace webkit { |
| 21 namespace ppapi { | 19 namespace ppapi { |
| 22 | 20 |
| 23 class PluginInstance; | 21 class PluginInstance; |
| 24 | 22 |
| 25 } // namespace ppapi | 23 } // namespace ppapi |
| 26 } // namespace webkit | 24 } // namespace webkit |
| 27 | 25 |
| 28 namespace content { | 26 namespace content { |
| 27 class WebGraphicsContext3DCommandBufferImpl; |
| 29 | 28 |
| 30 // A RenderWidget that hosts a fullscreen pepper plugin. This provides a | 29 // A RenderWidget that hosts a fullscreen pepper plugin. This provides a |
| 31 // FullscreenContainer that the plugin instance can callback into to e.g. | 30 // FullscreenContainer that the plugin instance can callback into to e.g. |
| 32 // invalidate rects. | 31 // invalidate rects. |
| 33 class RenderWidgetFullscreenPepper : | 32 class RenderWidgetFullscreenPepper : |
| 34 public RenderWidgetFullscreen, | 33 public RenderWidgetFullscreen, |
| 35 public webkit::ppapi::FullscreenContainer, | 34 public webkit::ppapi::FullscreenContainer, |
| 36 public PepperParentContextProvider, | 35 public PepperParentContextProvider, |
| 37 public WebGraphicsContext3DSwapBuffersClient { | 36 public WebGraphicsContext3DSwapBuffersClient { |
| 38 public: | 37 public: |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 base::WeakPtrFactory<RenderWidgetFullscreenPepper> weak_ptr_factory_; | 124 base::WeakPtrFactory<RenderWidgetFullscreenPepper> weak_ptr_factory_; |
| 126 | 125 |
| 127 scoped_ptr<MouseLockDispatcher> mouse_lock_dispatcher_; | 126 scoped_ptr<MouseLockDispatcher> mouse_lock_dispatcher_; |
| 128 | 127 |
| 129 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); | 128 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); |
| 130 }; | 129 }; |
| 131 | 130 |
| 132 } // namespace content | 131 } // namespace content |
| 133 | 132 |
| 134 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ | 133 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ |
| OLD | NEW |