| 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 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 // Keeps track of whether the webpage has any touch event handler. If it does, | 817 // Keeps track of whether the webpage has any touch event handler. If it does, |
| 817 // then touch events are sent to the renderer. Otherwise, the touch events are | 818 // then touch events are sent to the renderer. Otherwise, the touch events are |
| 818 // not sent to the renderer. | 819 // not sent to the renderer. |
| 819 bool has_touch_handler_; | 820 bool has_touch_handler_; |
| 820 | 821 |
| 821 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 822 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 822 | 823 |
| 823 typedef std::map<int, scoped_refptr<SmoothScrollGesture> > | 824 typedef std::map<int, scoped_refptr<SmoothScrollGesture> > |
| 824 SmoothScrollGestureMap; | 825 SmoothScrollGestureMap; |
| 825 SmoothScrollGestureMap active_smooth_scroll_gestures_; | 826 SmoothScrollGestureMap active_smooth_scroll_gestures_; |
| 827 base::TimeTicks last_smooth_scroll_gestures_tick_time_; |
| 828 bool tick_active_smooth_scroll_gestures_task_posted_; |
| 826 | 829 |
| 827 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 830 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
| 828 | 831 |
| 829 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 832 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 830 }; | 833 }; |
| 831 | 834 |
| 832 } // namespace content | 835 } // namespace content |
| 833 | 836 |
| 834 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 837 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |