Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: content/renderer/render_widget_fullscreen_pepper.h

Issue 9959037: Put the Pepper stuff in the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/render_widget_fullscreen_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698