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

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

Issue 1245863003: Initialize CompositorDependencies in RenderWidget's constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
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/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/renderer/mouse_lock_dispatcher.h" 9 #include "content/renderer/mouse_lock_dispatcher.h"
10 #include "content/renderer/pepper/fullscreen_container.h" 10 #include "content/renderer/pepper/fullscreen_container.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 bool OnMessageReceived(const IPC::Message& msg) override; 44 bool OnMessageReceived(const IPC::Message& msg) override;
45 45
46 // Could be NULL when this widget is closing. 46 // Could be NULL when this widget is closing.
47 PepperPluginInstanceImpl* plugin() const { return plugin_; } 47 PepperPluginInstanceImpl* plugin() const { return plugin_; }
48 48
49 MouseLockDispatcher* mouse_lock_dispatcher() const { 49 MouseLockDispatcher* mouse_lock_dispatcher() const {
50 return mouse_lock_dispatcher_.get(); 50 return mouse_lock_dispatcher_.get();
51 } 51 }
52 52
53 protected: 53 protected:
54 RenderWidgetFullscreenPepper(PepperPluginInstanceImpl* plugin, 54 RenderWidgetFullscreenPepper(CompositorDependencies* compositor_deps,
55 PepperPluginInstanceImpl* plugin,
55 const GURL& active_url, 56 const GURL& active_url,
56 const blink::WebScreenInfo& screen_info); 57 const blink::WebScreenInfo& screen_info);
57 ~RenderWidgetFullscreenPepper() override; 58 ~RenderWidgetFullscreenPepper() override;
58 59
59 // RenderWidget API. 60 // RenderWidget API.
60 void DidInitiatePaint() override; 61 void DidInitiatePaint() override;
61 void DidFlushPaint() override; 62 void DidFlushPaint() override;
62 void Close() override; 63 void Close() override;
63 void OnResize(const ViewMsg_Resize_Params& params) override; 64 void OnResize(const ViewMsg_Resize_Params& params) override;
64 65
(...skipping 14 matching lines...) Expand all
79 blink::WebLayer* layer_; 80 blink::WebLayer* layer_;
80 81
81 scoped_ptr<MouseLockDispatcher> mouse_lock_dispatcher_; 82 scoped_ptr<MouseLockDispatcher> mouse_lock_dispatcher_;
82 83
83 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); 84 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper);
84 }; 85 };
85 86
86 } // namespace content 87 } // namespace content
87 88
88 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ 89 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698