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/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "content/common/gpu/client/content_gl_context.h" | 9 #include "content/common/gpu/client/content_gl_context.h" |
10 #include "content/renderer/pepper_parent_context_provider.h" | 10 #include "content/renderer/pepper_parent_context_provider.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // Could be NULL when this widget is closing. | 47 // Could be NULL when this widget is closing. |
48 webkit::ppapi::PluginInstance* plugin() const { return plugin_; } | 48 webkit::ppapi::PluginInstance* plugin() const { return plugin_; } |
49 | 49 |
50 protected: | 50 protected: |
51 RenderWidgetFullscreenPepper(webkit::ppapi::PluginInstance* plugin, | 51 RenderWidgetFullscreenPepper(webkit::ppapi::PluginInstance* plugin, |
52 const GURL& active_url); | 52 const GURL& active_url); |
53 virtual ~RenderWidgetFullscreenPepper(); | 53 virtual ~RenderWidgetFullscreenPepper(); |
54 | 54 |
55 // RenderWidget API. | 55 // RenderWidget API. |
56 virtual void WillInitiatePaint() OVERRIDE; | 56 virtual void WillInitiatePaint() OVERRIDE; |
| 57 virtual void DidInitiatePaint() OVERRIDE; |
57 virtual void DidFlushPaint() OVERRIDE; | 58 virtual void DidFlushPaint() OVERRIDE; |
58 virtual void Close() OVERRIDE; | 59 virtual void Close() OVERRIDE; |
59 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( | 60 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( |
60 const gfx::Rect& paint_bounds, | 61 const gfx::Rect& paint_bounds, |
61 TransportDIB** dib, | 62 TransportDIB** dib, |
62 gfx::Rect* location, | 63 gfx::Rect* location, |
63 gfx::Rect* clip) OVERRIDE; | 64 gfx::Rect* clip) OVERRIDE; |
64 virtual void OnResize(const gfx::Size& new_size, | 65 virtual void OnResize(const gfx::Size& new_size, |
65 const gfx::Rect& resizer_rect, | 66 const gfx::Rect& resizer_rect, |
66 bool is_fullscreen) OVERRIDE; | 67 bool is_fullscreen) OVERRIDE; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 ContentGLContext* context_; | 103 ContentGLContext* context_; |
103 unsigned int buffer_; | 104 unsigned int buffer_; |
104 unsigned int program_; | 105 unsigned int program_; |
105 | 106 |
106 base::WeakPtrFactory<RenderWidgetFullscreenPepper> weak_ptr_factory_; | 107 base::WeakPtrFactory<RenderWidgetFullscreenPepper> weak_ptr_factory_; |
107 | 108 |
108 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); | 109 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); |
109 }; | 110 }; |
110 | 111 |
111 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ | 112 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ |
OLD | NEW |