| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 // scroll offset. | 263 // scroll offset. |
| 264 virtual gfx::Point GetScrollOffset(); | 264 virtual gfx::Point GetScrollOffset(); |
| 265 | 265 |
| 266 // Sets the "hidden" state of this widget. All accesses to is_hidden_ should | 266 // Sets the "hidden" state of this widget. All accesses to is_hidden_ should |
| 267 // use this method so that we can properly inform the RenderThread of our | 267 // use this method so that we can properly inform the RenderThread of our |
| 268 // state. | 268 // state. |
| 269 void SetHidden(bool hidden); | 269 void SetHidden(bool hidden); |
| 270 | 270 |
| 271 bool is_hidden() const { return is_hidden_; } | 271 bool is_hidden() const { return is_hidden_; } |
| 272 | 272 |
| 273 void WillToggleFullscreen(); |
| 274 void DidToggleFullscreen(); |
| 275 |
| 273 // True if an UpdateRect_ACK message is pending. | 276 // True if an UpdateRect_ACK message is pending. |
| 274 bool update_reply_pending() const { | 277 bool update_reply_pending() const { |
| 275 return update_reply_pending_; | 278 return update_reply_pending_; |
| 276 } | 279 } |
| 277 | 280 |
| 278 bool next_paint_is_resize_ack() const; | 281 bool next_paint_is_resize_ack() const; |
| 279 bool next_paint_is_restore_ack() const; | 282 bool next_paint_is_restore_ack() const; |
| 280 void set_next_paint_is_resize_ack(); | 283 void set_next_paint_is_resize_ack(); |
| 281 void set_next_paint_is_restore_ack(); | 284 void set_next_paint_is_restore_ack(); |
| 282 void set_next_paint_is_repaint_ack(); | 285 void set_next_paint_is_repaint_ack(); |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 bool animation_task_posted_; | 470 bool animation_task_posted_; |
| 468 bool invalidation_task_posted_; | 471 bool invalidation_task_posted_; |
| 469 | 472 |
| 470 bool has_disable_gpu_vsync_switch_; | 473 bool has_disable_gpu_vsync_switch_; |
| 471 base::TimeTicks last_do_deferred_update_time_; | 474 base::TimeTicks last_do_deferred_update_time_; |
| 472 | 475 |
| 473 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 476 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 474 }; | 477 }; |
| 475 | 478 |
| 476 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 479 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |