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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <queue> | 10 #include <queue> |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 // Called by OnMsgInputEventAck() to process a gesture event ack message. | 631 // Called by OnMsgInputEventAck() to process a gesture event ack message. |
632 // This validates the gesture for suppression of touchpad taps and sends one | 632 // This validates the gesture for suppression of touchpad taps and sends one |
633 // previously queued coalesced gesture if it exists. | 633 // previously queued coalesced gesture if it exists. |
634 void ProcessGestureAck(bool processed, int type); | 634 void ProcessGestureAck(bool processed, int type); |
635 | 635 |
636 void SimulateTouchGestureWithMouse(const WebKit::WebMouseEvent& mouse_event); | 636 void SimulateTouchGestureWithMouse(const WebKit::WebMouseEvent& mouse_event); |
637 | 637 |
638 // Called on OnMsgInputEventAck() to process a touch event ack message. | 638 // Called on OnMsgInputEventAck() to process a touch event ack message. |
639 // This can result in a gesture event being generated and sent back to the | 639 // This can result in a gesture event being generated and sent back to the |
640 // renderer. | 640 // renderer. |
641 void ProcessTouchAck(WebKit::WebInputEvent::Type type, bool processed); | 641 void ProcessTouchAck(bool processed); |
642 | 642 |
643 // Called when there is a new auto resize (using a post to avoid a stack | 643 // Called when there is a new auto resize (using a post to avoid a stack |
644 // which may get in recursive loops). | 644 // which may get in recursive loops). |
645 void DelayedAutoResized(); | 645 void DelayedAutoResized(); |
646 | 646 |
647 // Called periodically to advance the active scroll gesture after being | 647 // Called periodically to advance the active scroll gesture after being |
648 // initiated by OnMsgBeginSmoothScroll. | 648 // initiated by OnMsgBeginSmoothScroll. |
649 void TickActiveSmoothScrollGesture(); | 649 void TickActiveSmoothScrollGesture(); |
650 | 650 |
651 // Our delegate, which wants to know mainly about keyboard events. | 651 // Our delegate, which wants to know mainly about keyboard events. |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 bool tick_active_smooth_scroll_gestures_task_posted_; | 830 bool tick_active_smooth_scroll_gestures_task_posted_; |
831 | 831 |
832 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 832 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
833 | 833 |
834 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 834 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
835 }; | 835 }; |
836 | 836 |
837 } // namespace content | 837 } // namespace content |
838 | 838 |
839 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 839 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |