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

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

Issue 5828003: Move the Pepper implementation from webkit/glue/plugins/pepper_* to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | chrome/renderer/render_widget_fullscreen_pepper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ 5 #ifndef CHROME_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_
6 #define CHROME_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ 6 #define CHROME_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_
7 7
8 #include "chrome/renderer/render_widget_fullscreen.h" 8 #include "chrome/renderer/render_widget_fullscreen.h"
9 #include "third_party/WebKit/WebKit/chromium/public/WebWidget.h" 9 #include "third_party/WebKit/WebKit/chromium/public/WebWidget.h"
10 10
11 namespace pepper { 11 namespace webkit {
12 namespace ppapi {
13
12 class PluginInstance; 14 class PluginInstance;
13 class FullscreenContainer; 15 class FullscreenContainer;
14 } 16
17 } // namespace ppapi
18 } // namespace webkit
15 19
16 // A RenderWidget that hosts a fullscreen pepper plugin. This provides a 20 // A RenderWidget that hosts a fullscreen pepper plugin. This provides a
17 // FullscreenContainer that the plugin instance can callback into to e.g. 21 // FullscreenContainer that the plugin instance can callback into to e.g.
18 // invalidate rects. 22 // invalidate rects.
19 class RenderWidgetFullscreenPepper : public RenderWidgetFullscreen { 23 class RenderWidgetFullscreenPepper : public RenderWidgetFullscreen {
20 public: 24 public:
21 static RenderWidgetFullscreenPepper* Create( 25 static RenderWidgetFullscreenPepper* Create(
22 int32 opener_id, 26 int32 opener_id,
23 RenderThreadBase* render_thread, 27 RenderThreadBase* render_thread,
24 pepper::PluginInstance* plugin); 28 webkit::ppapi::PluginInstance* plugin);
25 29
26 // Asks the browser to close this view, which will tear off the window and 30 // Asks the browser to close this view, which will tear off the window and
27 // close this widget. 31 // close this widget.
28 void SendClose(); 32 void SendClose();
29 33
30 // Invalidate the whole widget to force a redraw. 34 // Invalidate the whole widget to force a redraw.
31 void GenerateFullRepaint(); 35 void GenerateFullRepaint();
32 36
33 pepper::FullscreenContainer* container() const { return container_.get(); } 37 webkit::ppapi::FullscreenContainer* container() const {
38 return container_.get();
39 }
34 40
35 protected: 41 protected:
36 RenderWidgetFullscreenPepper(RenderThreadBase* render_thread, 42 RenderWidgetFullscreenPepper(RenderThreadBase* render_thread,
37 pepper::PluginInstance* plugin); 43 webkit::ppapi::PluginInstance* plugin);
38 virtual ~RenderWidgetFullscreenPepper(); 44 virtual ~RenderWidgetFullscreenPepper();
39 45
40 // RenderWidget API. 46 // RenderWidget API.
41 virtual void DidInitiatePaint(); 47 virtual void DidInitiatePaint();
42 virtual void DidFlushPaint(); 48 virtual void DidFlushPaint();
43 virtual void Close(); 49 virtual void Close();
44 virtual bool GetBitmapForOptimizedPluginPaint( 50 virtual bool GetBitmapForOptimizedPluginPaint(
45 const gfx::Rect& paint_bounds, 51 const gfx::Rect& paint_bounds,
46 TransportDIB** dib, 52 TransportDIB** dib,
47 gfx::Rect* location, 53 gfx::Rect* location,
48 gfx::Rect* clip); 54 gfx::Rect* clip);
49 55
50 // RenderWidgetFullscreen API. 56 // RenderWidgetFullscreen API.
51 virtual WebKit::WebWidget* CreateWebWidget(); 57 virtual WebKit::WebWidget* CreateWebWidget();
52 58
53 private: 59 private:
54 // The plugin instance this widget wraps. 60 // The plugin instance this widget wraps.
55 pepper::PluginInstance* plugin_; 61 webkit::ppapi::PluginInstance* plugin_;
56 62
57 // The FullscreenContainer that the plugin instance can callback into. 63 // The FullscreenContainer that the plugin instance can callback into.
58 scoped_ptr<pepper::FullscreenContainer> container_; 64 scoped_ptr<webkit::ppapi::FullscreenContainer> container_;
59 65
60 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); 66 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper);
61 }; 67 };
62 68
63 #endif // CHROME_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ 69 #endif // CHROME_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | chrome/renderer/render_widget_fullscreen_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698