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> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "base/process_util.h" | 18 #include "base/process_util.h" |
19 #include "base/string16.h" | 19 #include "base/string16.h" |
| 20 #include "base/time.h" |
20 #include "base/timer.h" | 21 #include "base/timer.h" |
21 #include "build/build_config.h" | 22 #include "build/build_config.h" |
22 #include "content/common/view_message_enums.h" | 23 #include "content/common/view_message_enums.h" |
23 #include "content/public/browser/render_widget_host.h" | 24 #include "content/public/browser/render_widget_host.h" |
24 #include "content/public/common/page_zoom.h" | 25 #include "content/public/common/page_zoom.h" |
25 #include "ui/base/ime/text_input_type.h" | 26 #include "ui/base/ime/text_input_type.h" |
26 #include "ui/gfx/native_widget_types.h" | 27 #include "ui/gfx/native_widget_types.h" |
27 | 28 |
28 class MockRenderWidgetHost; | 29 class MockRenderWidgetHost; |
29 class WebCursor; | 30 class WebCursor; |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 // Keeps track of whether the webpage has any touch event handler. If it does, | 819 // Keeps track of whether the webpage has any touch event handler. If it does, |
819 // then touch events are sent to the renderer. Otherwise, the touch events are | 820 // then touch events are sent to the renderer. Otherwise, the touch events are |
820 // not sent to the renderer. | 821 // not sent to the renderer. |
821 bool has_touch_handler_; | 822 bool has_touch_handler_; |
822 | 823 |
823 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 824 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
824 | 825 |
825 typedef std::map<int, scoped_refptr<SmoothScrollGesture> > | 826 typedef std::map<int, scoped_refptr<SmoothScrollGesture> > |
826 SmoothScrollGestureMap; | 827 SmoothScrollGestureMap; |
827 SmoothScrollGestureMap active_smooth_scroll_gestures_; | 828 SmoothScrollGestureMap active_smooth_scroll_gestures_; |
| 829 base::TimeTicks last_smooth_scroll_gestures_tick_time_; |
| 830 bool tick_active_smooth_scroll_gestures_task_posted_; |
828 | 831 |
829 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 832 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
830 | 833 |
831 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 834 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
832 }; | 835 }; |
833 | 836 |
834 } // namespace content | 837 } // namespace content |
835 | 838 |
836 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 839 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |