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