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