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/render_widget_fullscreen.h" | 10 #include "content/renderer/render_widget_fullscreen.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 virtual void WillInitiatePaint() OVERRIDE; | 73 virtual void WillInitiatePaint() OVERRIDE; |
74 virtual void DidInitiatePaint() OVERRIDE; | 74 virtual void DidInitiatePaint() OVERRIDE; |
75 virtual void DidFlushPaint() OVERRIDE; | 75 virtual void DidFlushPaint() OVERRIDE; |
76 virtual void Close() OVERRIDE; | 76 virtual void Close() OVERRIDE; |
77 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( | 77 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( |
78 const gfx::Rect& paint_bounds, | 78 const gfx::Rect& paint_bounds, |
79 TransportDIB** dib, | 79 TransportDIB** dib, |
80 gfx::Rect* location, | 80 gfx::Rect* location, |
81 gfx::Rect* clip, | 81 gfx::Rect* clip, |
82 float* scale_factor) OVERRIDE; | 82 float* scale_factor) OVERRIDE; |
83 virtual void OnResize(const gfx::Size& new_size, | 83 virtual void OnResize(const ViewMsg_Resize_Params& params) OVERRIDE; |
84 const gfx::Size& physical_backing_size, | |
85 float overdraw_bottom_height, | |
86 const gfx::Rect& resizer_rect, | |
87 bool is_fullscreen) OVERRIDE; | |
88 | 84 |
89 // RenderWidgetFullscreen API. | 85 // RenderWidgetFullscreen API. |
90 virtual WebKit::WebWidget* CreateWebWidget() OVERRIDE; | 86 virtual WebKit::WebWidget* CreateWebWidget() OVERRIDE; |
91 | 87 |
92 // RenderWidget overrides. | 88 // RenderWidget overrides. |
93 virtual GURL GetURLForGraphicsContext3D() OVERRIDE; | 89 virtual GURL GetURLForGraphicsContext3D() OVERRIDE; |
94 virtual void SetDeviceScaleFactor(float device_scale_factor) OVERRIDE; | 90 virtual void SetDeviceScaleFactor(float device_scale_factor) OVERRIDE; |
95 | 91 |
96 private: | 92 private: |
97 // URL that is responsible for this widget, passed to ggl::CreateViewContext. | 93 // URL that is responsible for this widget, passed to ggl::CreateViewContext. |
98 GURL active_url_; | 94 GURL active_url_; |
99 | 95 |
100 // The plugin instance this widget wraps. | 96 // The plugin instance this widget wraps. |
101 webkit::ppapi::PluginInstance* plugin_; | 97 webkit::ppapi::PluginInstance* plugin_; |
102 | 98 |
103 WebKit::WebLayer* layer_; | 99 WebKit::WebLayer* layer_; |
104 | 100 |
105 scoped_ptr<MouseLockDispatcher> mouse_lock_dispatcher_; | 101 scoped_ptr<MouseLockDispatcher> mouse_lock_dispatcher_; |
106 | 102 |
107 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); | 103 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); |
108 }; | 104 }; |
109 | 105 |
110 } // namespace content | 106 } // namespace content |
111 | 107 |
112 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ | 108 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ |
OLD | NEW |