| 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_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( | 243 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( |
| 244 const gfx::Rect& paint_bounds, | 244 const gfx::Rect& paint_bounds, |
| 245 TransportDIB** dib, | 245 TransportDIB** dib, |
| 246 gfx::Rect* location, | 246 gfx::Rect* location, |
| 247 gfx::Rect* clip); | 247 gfx::Rect* clip); |
| 248 | 248 |
| 249 // Gets the scroll offset of this widget, if this widget has a notion of | 249 // Gets the scroll offset of this widget, if this widget has a notion of |
| 250 // scroll offset. | 250 // scroll offset. |
| 251 virtual gfx::Point GetScrollOffset(); | 251 virtual gfx::Point GetScrollOffset(); |
| 252 | 252 |
| 253 // Gets the dimensions of the content area. |
| 254 virtual gfx::Size GetContentsSize(); |
| 255 |
| 253 // Sets the "hidden" state of this widget. All accesses to is_hidden_ should | 256 // Sets the "hidden" state of this widget. All accesses to is_hidden_ should |
| 254 // use this method so that we can properly inform the RenderThread of our | 257 // use this method so that we can properly inform the RenderThread of our |
| 255 // state. | 258 // state. |
| 256 void SetHidden(bool hidden); | 259 void SetHidden(bool hidden); |
| 257 | 260 |
| 258 bool is_hidden() const { return is_hidden_; } | 261 bool is_hidden() const { return is_hidden_; } |
| 259 | 262 |
| 260 // True if an UpdateRect_ACK message is pending. | 263 // True if an UpdateRect_ACK message is pending. |
| 261 bool update_reply_pending() const { | 264 bool update_reply_pending() const { |
| 262 return update_reply_pending_; | 265 return update_reply_pending_; |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 bool animation_task_posted_; | 437 bool animation_task_posted_; |
| 435 bool invalidation_task_posted_; | 438 bool invalidation_task_posted_; |
| 436 | 439 |
| 437 bool has_disable_gpu_vsync_switch_; | 440 bool has_disable_gpu_vsync_switch_; |
| 438 base::TimeTicks last_do_deferred_update_time_; | 441 base::TimeTicks last_do_deferred_update_time_; |
| 439 | 442 |
| 440 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 443 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 441 }; | 444 }; |
| 442 | 445 |
| 443 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 446 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |