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

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

Issue 2447143003: Use kRenderClientId command line flag when starting a render process (Closed)
Patch Set: Removed unnecessary additions Created 4 years, 1 month 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 16 matching lines...) Expand all
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 : public RenderWidgetFullscreen, 29 class RenderWidgetFullscreenPepper : public RenderWidgetFullscreen,
30 public FullscreenContainer { 30 public FullscreenContainer {
31 public: 31 public:
32 static RenderWidgetFullscreenPepper* Create( 32 static RenderWidgetFullscreenPepper* Create(
33 int32_t opener_id, 33 int32_t opener_id,
34 CompositorDependencies* compositor_deps, 34 CompositorDependencies* compositor_deps,
35 PepperPluginInstanceImpl* plugin, 35 PepperPluginInstanceImpl* plugin,
36 const GURL& active_url, 36 const GURL& active_url,
37 const ScreenInfo& screen_info); 37 const ScreenInfo& screen_info,
38 const cc::FrameSinkId& frame_sink_id_);
38 39
39 // pepper::FullscreenContainer API. 40 // pepper::FullscreenContainer API.
40 void Invalidate() override; 41 void Invalidate() override;
41 void InvalidateRect(const blink::WebRect& rect) override; 42 void InvalidateRect(const blink::WebRect& rect) override;
42 void ScrollRect(int dx, int dy, const blink::WebRect& rect) override; 43 void ScrollRect(int dx, int dy, const blink::WebRect& rect) override;
43 void Destroy() override; 44 void Destroy() override;
44 void PepperDidChangeCursor(const blink::WebCursorInfo& cursor) override; 45 void PepperDidChangeCursor(const blink::WebCursorInfo& cursor) override;
45 void SetLayer(blink::WebLayer* layer) override; 46 void SetLayer(blink::WebLayer* layer) override;
46 47
47 // IPC::Listener implementation. This overrides the implementation 48 // IPC::Listener implementation. This overrides the implementation
48 // in RenderWidgetFullscreen. 49 // in RenderWidgetFullscreen.
49 bool OnMessageReceived(const IPC::Message& msg) override; 50 bool OnMessageReceived(const IPC::Message& msg) override;
50 51
51 // Could be NULL when this widget is closing. 52 // Could be NULL when this widget is closing.
52 PepperPluginInstanceImpl* plugin() const { return plugin_; } 53 PepperPluginInstanceImpl* plugin() const { return plugin_; }
53 54
54 MouseLockDispatcher* mouse_lock_dispatcher() const { 55 MouseLockDispatcher* mouse_lock_dispatcher() const {
55 return mouse_lock_dispatcher_.get(); 56 return mouse_lock_dispatcher_.get();
56 } 57 }
57 58
58 protected: 59 protected:
59 RenderWidgetFullscreenPepper(CompositorDependencies* compositor_deps, 60 RenderWidgetFullscreenPepper(CompositorDependencies* compositor_deps,
60 PepperPluginInstanceImpl* plugin, 61 PepperPluginInstanceImpl* plugin,
61 const GURL& active_url, 62 const GURL& active_url,
62 const ScreenInfo& screen_info); 63 const ScreenInfo& screen_info,
64 const cc::FrameSinkId& frame_sink_id_);
63 ~RenderWidgetFullscreenPepper() override; 65 ~RenderWidgetFullscreenPepper() override;
64 66
65 // RenderWidget API. 67 // RenderWidget API.
66 void DidInitiatePaint() override; 68 void DidInitiatePaint() override;
67 void DidFlushPaint() override; 69 void DidFlushPaint() override;
68 void Close() override; 70 void Close() override;
69 void OnResize(const ResizeParams& params) override; 71 void OnResize(const ResizeParams& params) override;
70 72
71 // RenderWidgetFullscreen API. 73 // RenderWidgetFullscreen API.
72 blink::WebWidget* CreateWebWidget() override; 74 blink::WebWidget* CreateWebWidget() override;
(...skipping 12 matching lines...) Expand all
85 blink::WebLayer* layer_; 87 blink::WebLayer* layer_;
86 88
87 std::unique_ptr<MouseLockDispatcher> mouse_lock_dispatcher_; 89 std::unique_ptr<MouseLockDispatcher> mouse_lock_dispatcher_;
88 90
89 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); 91 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper);
90 }; 92 };
91 93
92 } // namespace content 94 } // namespace content
93 95
94 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ 96 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698