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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 // Called by OnHandleInputEvent() to notify subclasses that a gesture event is | 554 // Called by OnHandleInputEvent() to notify subclasses that a gesture event is |
555 // about to be handled. | 555 // about to be handled. |
556 // Returns true if no further handling is needed. In that case, the event | 556 // Returns true if no further handling is needed. In that case, the event |
557 // won't be sent to WebKit. | 557 // won't be sent to WebKit. |
558 virtual bool WillHandleGestureEvent(const blink::WebGestureEvent& event); | 558 virtual bool WillHandleGestureEvent(const blink::WebGestureEvent& event); |
559 | 559 |
560 // Called by OnHandleInputEvent() to notify subclasses that a mouse event was | 560 // Called by OnHandleInputEvent() to notify subclasses that a mouse event was |
561 // just handled. | 561 // just handled. |
562 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} | 562 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} |
563 | 563 |
564 // Called by OnHandleInputEvent() to notify subclasses that a touch event was | |
565 // just handled. | |
566 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {} | |
567 | |
568 // Called by OnHandleInputEvent() to forward a mouse wheel event to the | 564 // Called by OnHandleInputEvent() to forward a mouse wheel event to the |
569 // compositor thread, to effect the elastic overscroll effect. | 565 // compositor thread, to effect the elastic overscroll effect. |
570 void ObserveWheelEventAndResult(const blink::WebMouseWheelEvent& wheel_event, | 566 void ObserveWheelEventAndResult(const blink::WebMouseWheelEvent& wheel_event, |
571 bool event_processed); | 567 bool event_processed); |
572 | 568 |
573 // Check whether the WebWidget has any touch event handlers registered | 569 // Check whether the WebWidget has any touch event handlers registered |
574 // at the given point. | 570 // at the given point. |
575 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const; | 571 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const; |
576 | 572 |
577 // Check whether the WebWidget has any touch event handlers registered. | 573 // Check whether the WebWidget has any touch event handlers registered. |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
809 ui::MenuSourceType context_menu_source_type_; | 805 ui::MenuSourceType context_menu_source_type_; |
810 bool has_host_context_menu_location_; | 806 bool has_host_context_menu_location_; |
811 gfx::Point host_context_menu_location_; | 807 gfx::Point host_context_menu_location_; |
812 | 808 |
813 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 809 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
814 }; | 810 }; |
815 | 811 |
816 } // namespace content | 812 } // namespace content |
817 | 813 |
818 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 814 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |