| 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 virtual bool WillHandleMouseEvent(const WebKit::WebMouseEvent& event); | 316 virtual bool WillHandleMouseEvent(const WebKit::WebMouseEvent& event); |
| 317 | 317 |
| 318 // Called by OnHandleInputEvent() to notify subclasses that a mouse event was | 318 // Called by OnHandleInputEvent() to notify subclasses that a mouse event was |
| 319 // just handled. | 319 // just handled. |
| 320 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} | 320 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} |
| 321 | 321 |
| 322 // Called by OnHandleInputEvent() to notify subclasses that a touch event was | 322 // Called by OnHandleInputEvent() to notify subclasses that a touch event was |
| 323 // just handled. | 323 // just handled. |
| 324 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} | 324 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} |
| 325 | 325 |
| 326 // Should return true if the underlying WebWidget is responsible for |
| 327 // the scheduling of compositing requests. |
| 328 virtual bool WebWidgetHandlesCompositorScheduling() const; |
| 329 |
| 326 // Routing ID that allows us to communicate to the parent browser process | 330 // Routing ID that allows us to communicate to the parent browser process |
| 327 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. | 331 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. |
| 328 int32 routing_id_; | 332 int32 routing_id_; |
| 329 | 333 |
| 330 // We are responsible for destroying this object via its Close method. | 334 // We are responsible for destroying this object via its Close method. |
| 331 WebKit::WebWidget* webwidget_; | 335 WebKit::WebWidget* webwidget_; |
| 332 | 336 |
| 333 // Set to the ID of the view that initiated creating this view, if any. When | 337 // Set to the ID of the view that initiated creating this view, if any. When |
| 334 // the view was initiated by the browser (the common case), this will be | 338 // the view was initiated by the browser (the common case), this will be |
| 335 // MSG_ROUTING_NONE. This is used in determining ownership when opening | 339 // MSG_ROUTING_NONE. This is used in determining ownership when opening |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 bool animation_task_posted_; | 461 bool animation_task_posted_; |
| 458 bool invalidation_task_posted_; | 462 bool invalidation_task_posted_; |
| 459 | 463 |
| 460 bool has_disable_gpu_vsync_switch_; | 464 bool has_disable_gpu_vsync_switch_; |
| 461 base::TimeTicks last_do_deferred_update_time_; | 465 base::TimeTicks last_do_deferred_update_time_; |
| 462 | 466 |
| 463 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 467 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 464 }; | 468 }; |
| 465 | 469 |
| 466 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 470 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |