| 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 <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 void ProcessTouchAck(WebKit::WebInputEvent::Type type, bool processed); | 593 void ProcessTouchAck(WebKit::WebInputEvent::Type type, bool processed); |
| 594 | 594 |
| 595 // Called when there is a new auto resize (using a post to avoid a stack | 595 // Called when there is a new auto resize (using a post to avoid a stack |
| 596 // which may get in recursive loops). | 596 // which may get in recursive loops). |
| 597 void DelayedAutoResized(); | 597 void DelayedAutoResized(); |
| 598 | 598 |
| 599 // Called periodically to advance the active scroll gesture after being | 599 // Called periodically to advance the active scroll gesture after being |
| 600 // initiated by OnMsgBeginSmoothScroll. | 600 // initiated by OnMsgBeginSmoothScroll. |
| 601 void TickActiveSmoothScrollGesture(); | 601 void TickActiveSmoothScrollGesture(); |
| 602 | 602 |
| 603 // Returns |true| if the given GestureFlingCancel should be discarded |
| 604 // as unnecessary. |
| 605 bool ShouldDiscardFlingCancelEvent( |
| 606 const WebKit::WebGestureEvent& gesture_event); |
| 607 |
| 603 // Our delegate, which wants to know mainly about keyboard events. | 608 // Our delegate, which wants to know mainly about keyboard events. |
| 604 RenderWidgetHostDelegate* delegate_; | 609 RenderWidgetHostDelegate* delegate_; |
| 605 | 610 |
| 606 // Created during construction but initialized during Init*(). Therefore, it | 611 // Created during construction but initialized during Init*(). Therefore, it |
| 607 // is guaranteed never to be NULL, but its channel may be NULL if the | 612 // is guaranteed never to be NULL, but its channel may be NULL if the |
| 608 // renderer crashed, so you must always check that. | 613 // renderer crashed, so you must always check that. |
| 609 RenderProcessHost* process_; | 614 RenderProcessHost* process_; |
| 610 | 615 |
| 611 // The ID of the corresponding object in the Renderer Instance. | 616 // The ID of the corresponding object in the Renderer Instance. |
| 612 int routing_id_; | 617 int routing_id_; |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 | 775 |
| 771 // Keeps track of whether the webpage has any touch event handler. If it does, | 776 // Keeps track of whether the webpage has any touch event handler. If it does, |
| 772 // then touch events are sent to the renderer. Otherwise, the touch events are | 777 // then touch events are sent to the renderer. Otherwise, the touch events are |
| 773 // not sent to the renderer. | 778 // not sent to the renderer. |
| 774 bool has_touch_handler_; | 779 bool has_touch_handler_; |
| 775 | 780 |
| 776 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 781 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 777 | 782 |
| 778 scoped_ptr<TapSuppressionController> tap_suppression_controller_; | 783 scoped_ptr<TapSuppressionController> tap_suppression_controller_; |
| 779 | 784 |
| 785 bool fling_in_progress_; |
| 786 |
| 780 scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_; | 787 scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_; |
| 781 | 788 |
| 782 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 789 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 783 }; | 790 }; |
| 784 | 791 |
| 785 } // namespace content | 792 } // namespace content |
| 786 | 793 |
| 787 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 794 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |