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" |
11 #include "content/renderer/render_widget_fullscreen.h" | 11 #include "content/renderer/render_widget_fullscreen.h" |
12 #include "third_party/WebKit/public/web/WebWidget.h" | 12 #include "third_party/WebKit/public/web/WebWidget.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 class WebLayer; | 15 class WebLayer; |
16 } | 16 } |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 class PepperPluginInstanceImpl; | 19 class PepperPluginInstanceImpl; |
20 | 20 |
21 // A RenderWidget that hosts a fullscreen pepper plugin. This provides a | 21 // A RenderWidget that hosts a fullscreen pepper plugin. This provides a |
22 // FullscreenContainer that the plugin instance can callback into to e.g. | 22 // FullscreenContainer that the plugin instance can callback into to e.g. |
23 // invalidate rects. | 23 // invalidate rects. |
24 class RenderWidgetFullscreenPepper : public RenderWidgetFullscreen, | 24 class RenderWidgetFullscreenPepper : public RenderWidgetFullscreen, |
25 public FullscreenContainer { | 25 public FullscreenContainer { |
26 public: | 26 public: |
27 static RenderWidgetFullscreenPepper* Create( | 27 static RenderWidgetFullscreenPepper* Create( |
28 int32 opener_id, | 28 int32 opener_id, |
| 29 CompositorDependencies* compositor_deps, |
29 PepperPluginInstanceImpl* plugin, | 30 PepperPluginInstanceImpl* plugin, |
30 const GURL& active_url, | 31 const GURL& active_url, |
31 const blink::WebScreenInfo& screen_info); | 32 const blink::WebScreenInfo& screen_info); |
32 | 33 |
33 // pepper::FullscreenContainer API. | 34 // pepper::FullscreenContainer API. |
34 void Invalidate() override; | 35 void Invalidate() override; |
35 void InvalidateRect(const blink::WebRect& rect) override; | 36 void InvalidateRect(const blink::WebRect& rect) override; |
36 void ScrollRect(int dx, int dy, const blink::WebRect& rect) override; | 37 void ScrollRect(int dx, int dy, const blink::WebRect& rect) override; |
37 void Destroy() override; | 38 void Destroy() override; |
38 void DidChangeCursor(const blink::WebCursorInfo& cursor) override; | 39 void DidChangeCursor(const blink::WebCursorInfo& cursor) override; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 blink::WebLayer* layer_; | 79 blink::WebLayer* layer_; |
79 | 80 |
80 scoped_ptr<MouseLockDispatcher> mouse_lock_dispatcher_; | 81 scoped_ptr<MouseLockDispatcher> mouse_lock_dispatcher_; |
81 | 82 |
82 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); | 83 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); |
83 }; | 84 }; |
84 | 85 |
85 } // namespace content | 86 } // namespace content |
86 | 87 |
87 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ | 88 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ |
OLD | NEW |