| 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_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} | 439 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} |
| 440 | 440 |
| 441 // Called by OnHandleInputEvent() to notify subclasses that a touch event was | 441 // Called by OnHandleInputEvent() to notify subclasses that a touch event was |
| 442 // just handled. | 442 // just handled. |
| 443 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} | 443 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} |
| 444 | 444 |
| 445 // Check whether the WebWidget has any touch event handlers registered | 445 // Check whether the WebWidget has any touch event handlers registered |
| 446 // at the given point. | 446 // at the given point. |
| 447 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const; | 447 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const; |
| 448 | 448 |
| 449 // Should return true if the underlying WebWidget is responsible for |
| 450 // the scheduling of compositing requests. |
| 451 virtual bool WebWidgetHandlesCompositorScheduling() const; |
| 452 |
| 449 // Routing ID that allows us to communicate to the parent browser process | 453 // Routing ID that allows us to communicate to the parent browser process |
| 450 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. | 454 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. |
| 451 int32 routing_id_; | 455 int32 routing_id_; |
| 452 | 456 |
| 453 int32 surface_id_; | 457 int32 surface_id_; |
| 454 | 458 |
| 455 // We are responsible for destroying this object via its Close method. | 459 // We are responsible for destroying this object via its Close method. |
| 456 WebKit::WebWidget* webwidget_; | 460 WebKit::WebWidget* webwidget_; |
| 457 | 461 |
| 458 // This is lazily constructed and must not outlive webwidget_. | 462 // This is lazily constructed and must not outlive webwidget_. |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 | 640 |
| 637 // Specified whether the compositor will run in its own thread. | 641 // Specified whether the compositor will run in its own thread. |
| 638 bool is_threaded_compositing_enabled_; | 642 bool is_threaded_compositing_enabled_; |
| 639 | 643 |
| 640 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 644 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 641 }; | 645 }; |
| 642 | 646 |
| 643 } // namespace content | 647 } // namespace content |
| 644 | 648 |
| 645 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 649 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |