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 "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 Loading... |
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 Loading... |
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_ |
OLD | NEW |