| 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 "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 10 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 // RenderWidget API. | 74 // RenderWidget API. |
| 75 virtual void WillInitiatePaint() OVERRIDE; | 75 virtual void WillInitiatePaint() OVERRIDE; |
| 76 virtual void DidInitiatePaint() OVERRIDE; | 76 virtual void DidInitiatePaint() OVERRIDE; |
| 77 virtual void DidFlushPaint() OVERRIDE; | 77 virtual void DidFlushPaint() OVERRIDE; |
| 78 virtual void Close() OVERRIDE; | 78 virtual void Close() OVERRIDE; |
| 79 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( | 79 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( |
| 80 const gfx::Rect& paint_bounds, | 80 const gfx::Rect& paint_bounds, |
| 81 TransportDIB** dib, | 81 TransportDIB** dib, |
| 82 gfx::Rect* location, | 82 gfx::Rect* location, |
| 83 gfx::Rect* clip) OVERRIDE; | 83 gfx::Rect* clip, |
| 84 float* scale_factor) OVERRIDE; |
| 84 virtual void OnResize(const gfx::Size& new_size, | 85 virtual void OnResize(const gfx::Size& new_size, |
| 85 const gfx::Rect& resizer_rect, | 86 const gfx::Rect& resizer_rect, |
| 86 bool is_fullscreen) OVERRIDE; | 87 bool is_fullscreen) OVERRIDE; |
| 87 | 88 |
| 88 // RenderWidgetFullscreen API. | 89 // RenderWidgetFullscreen API. |
| 89 virtual WebKit::WebWidget* CreateWebWidget() OVERRIDE; | 90 virtual WebKit::WebWidget* CreateWebWidget() OVERRIDE; |
| 90 | 91 |
| 91 // RenderWidget overrides. | 92 // RenderWidget overrides. |
| 92 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE; | 93 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE; |
| 93 | 94 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 118 unsigned int program_; | 119 unsigned int program_; |
| 119 | 120 |
| 120 base::WeakPtrFactory<RenderWidgetFullscreenPepper> weak_ptr_factory_; | 121 base::WeakPtrFactory<RenderWidgetFullscreenPepper> weak_ptr_factory_; |
| 121 | 122 |
| 122 scoped_ptr<MouseLockDispatcher> mouse_lock_dispatcher_; | 123 scoped_ptr<MouseLockDispatcher> mouse_lock_dispatcher_; |
| 123 | 124 |
| 124 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); | 125 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); |
| 125 }; | 126 }; |
| 126 | 127 |
| 127 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ | 128 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ |
| OLD | NEW |