| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/renderer/render_widget_fullscreen.h" | 8 #include "content/renderer/render_widget_fullscreen.h" |
| 9 #include "content/renderer/gpu/renderer_gl_context.h" | 9 #include "content/renderer/gpu/renderer_gl_context.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 int32 opener_id, | 28 int32 opener_id, |
| 29 RenderThreadBase* render_thread, | 29 RenderThreadBase* render_thread, |
| 30 webkit::ppapi::PluginInstance* plugin, | 30 webkit::ppapi::PluginInstance* plugin, |
| 31 const GURL& active_url); | 31 const GURL& active_url); |
| 32 | 32 |
| 33 // pepper::FullscreenContainer API. | 33 // pepper::FullscreenContainer API. |
| 34 virtual void Invalidate(); | 34 virtual void Invalidate(); |
| 35 virtual void InvalidateRect(const WebKit::WebRect& rect); | 35 virtual void InvalidateRect(const WebKit::WebRect& rect); |
| 36 virtual void ScrollRect(int dx, int dy, const WebKit::WebRect& rect); | 36 virtual void ScrollRect(int dx, int dy, const WebKit::WebRect& rect); |
| 37 virtual void Destroy(); | 37 virtual void Destroy(); |
| 38 virtual void DidChangeCursor(const WebKit::WebCursorInfo& cursor); |
| 38 virtual webkit::ppapi::PluginDelegate::PlatformContext3D* CreateContext3D(); | 39 virtual webkit::ppapi::PluginDelegate::PlatformContext3D* CreateContext3D(); |
| 39 | 40 |
| 40 RendererGLContext* context() const { return context_; } | 41 RendererGLContext* context() const { return context_; } |
| 41 void SwapBuffers(); | 42 void SwapBuffers(); |
| 42 | 43 |
| 43 protected: | 44 protected: |
| 44 RenderWidgetFullscreenPepper(RenderThreadBase* render_thread, | 45 RenderWidgetFullscreenPepper(RenderThreadBase* render_thread, |
| 45 webkit::ppapi::PluginInstance* plugin, | 46 webkit::ppapi::PluginInstance* plugin, |
| 46 const GURL& active_url); | 47 const GURL& active_url); |
| 47 virtual ~RenderWidgetFullscreenPepper(); | 48 virtual ~RenderWidgetFullscreenPepper(); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 91 |
| 91 // GL context for compositing. | 92 // GL context for compositing. |
| 92 RendererGLContext* context_; | 93 RendererGLContext* context_; |
| 93 unsigned int buffer_; | 94 unsigned int buffer_; |
| 94 unsigned int program_; | 95 unsigned int program_; |
| 95 | 96 |
| 96 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); | 97 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); |
| 97 }; | 98 }; |
| 98 | 99 |
| 99 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ | 100 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ |
| OLD | NEW |