| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "content/browser/renderer_host/input/input_router_impl.h" | 5 #include "content/browser/renderer_host/input/input_router_impl.h" |
| 6 | 6 |
| 7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 11 #include "content/browser/renderer_host/input/gesture_event_queue.h" | 11 #include "content/browser/renderer_host/input/gesture_event_queue.h" |
| 12 #include "content/browser/renderer_host/input/input_ack_handler.h" | 12 #include "content/browser/renderer_host/input/input_ack_handler.h" |
| 13 #include "content/browser/renderer_host/input/input_router_client.h" | 13 #include "content/browser/renderer_host/input/input_router_client.h" |
| 14 #include "content/browser/renderer_host/input/touch_event_queue.h" | 14 #include "content/browser/renderer_host/input/touch_event_queue.h" |
| 15 #include "content/browser/renderer_host/input/touchpad_tap_suppression_controlle
r.h" | 15 #include "content/browser/renderer_host/input/touchpad_tap_suppression_controlle
r.h" |
| 16 #include "content/browser/renderer_host/input/web_touch_event_traits.h" | 16 #include "content/browser/renderer_host/input/web_touch_event_traits.h" |
| 17 #include "content/browser/renderer_host/overscroll_controller.h" | 17 #include "content/browser/renderer_host/overscroll_controller.h" |
| 18 #include "content/common/content_constants_internal.h" | 18 #include "content/common/content_constants_internal.h" |
| 19 #include "content/common/edit_command.h" | |
| 20 #include "content/common/input/touch_action.h" | 19 #include "content/common/input/touch_action.h" |
| 21 #include "content/common/input_messages.h" | 20 #include "content/common/input_messages.h" |
| 22 #include "content/common/view_messages.h" | 21 #include "content/common/view_messages.h" |
| 23 #include "content/port/common/input_event_ack_state.h" | 22 #include "content/port/common/input_event_ack_state.h" |
| 24 #include "content/public/browser/notification_service.h" | 23 #include "content/public/browser/notification_service.h" |
| 25 #include "content/public/browser/notification_types.h" | 24 #include "content/public/browser/notification_types.h" |
| 26 #include "content/public/browser/user_metrics.h" | 25 #include "content/public/browser/user_metrics.h" |
| 27 #include "content/public/common/content_switches.h" | 26 #include "content/public/common/content_switches.h" |
| 27 #include "content/public/common/edit_command.h" |
| 28 #include "ipc/ipc_sender.h" | 28 #include "ipc/ipc_sender.h" |
| 29 #include "ui/events/event.h" | 29 #include "ui/events/event.h" |
| 30 #include "ui/events/keycodes/keyboard_codes.h" | 30 #include "ui/events/keycodes/keyboard_codes.h" |
| 31 | 31 |
| 32 #if defined(OS_ANDROID) | 32 #if defined(OS_ANDROID) |
| 33 #include "ui/gfx/android/view_configuration.h" | 33 #include "ui/gfx/android/view_configuration.h" |
| 34 #include "ui/gfx/screen.h" | 34 #include "ui/gfx/screen.h" |
| 35 #else | 35 #else |
| 36 #include "ui/events/gestures/gesture_configuration.h" | 36 #include "ui/events/gestures/gesture_configuration.h" |
| 37 #endif | 37 #endif |
| (...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 touch_event_queue_->SetAckTimeoutEnabled(touch_ack_timeout_enabled, | 807 touch_event_queue_->SetAckTimeoutEnabled(touch_ack_timeout_enabled, |
| 808 touch_ack_timeout_delay_); | 808 touch_ack_timeout_delay_); |
| 809 } | 809 } |
| 810 | 810 |
| 811 bool InputRouterImpl::IsInOverscrollGesture() const { | 811 bool InputRouterImpl::IsInOverscrollGesture() const { |
| 812 OverscrollController* controller = client_->GetOverscrollController(); | 812 OverscrollController* controller = client_->GetOverscrollController(); |
| 813 return controller && controller->overscroll_mode() != OVERSCROLL_NONE; | 813 return controller && controller->overscroll_mode() != OVERSCROLL_NONE; |
| 814 } | 814 } |
| 815 | 815 |
| 816 } // namespace content | 816 } // namespace content |
| OLD | NEW |