| 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/renderer/input/input_handler_proxy.h" | 5 #include "content/renderer/input/input_handler_proxy.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/logging.h" | 9 #include "base/logging.h" | 
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" | 
| 11 #include "base/trace_event/trace_event.h" | 11 #include "base/trace_event/trace_event.h" | 
| 12 #include "content/common/input/did_overscroll_params.h" | 12 #include "content/common/input/did_overscroll_params.h" | 
| 13 #include "content/common/input/web_input_event_traits.h" | 13 #include "content/common/input/web_input_event_traits.h" | 
| 14 #include "content/public/common/content_switches.h" | 14 #include "content/public/common/content_switches.h" | 
| 15 #include "content/renderer/input/input_handler_proxy_client.h" | 15 #include "content/renderer/input/input_handler_proxy_client.h" | 
| 16 #include "content/renderer/input/input_scroll_elasticity_controller.h" | 16 #include "content/renderer/input/input_scroll_elasticity_controller.h" | 
| 17 #include "third_party/WebKit/public/platform/Platform.h" | 17 #include "third_party/WebKit/public/platform/Platform.h" | 
| 18 #include "third_party/WebKit/public/web/WebInputEvent.h" | 18 #include "third_party/WebKit/public/web/WebInputEvent.h" | 
| 19 #include "ui/events/latency_info.h" | 19 #include "ui/events/latency_info.h" | 
| 20 #include "ui/gfx/frame_time.h" |  | 
| 21 #include "ui/gfx/geometry/point_conversions.h" | 20 #include "ui/gfx/geometry/point_conversions.h" | 
| 22 | 21 | 
| 23 using blink::WebFloatPoint; | 22 using blink::WebFloatPoint; | 
| 24 using blink::WebFloatSize; | 23 using blink::WebFloatSize; | 
| 25 using blink::WebGestureEvent; | 24 using blink::WebGestureEvent; | 
| 26 using blink::WebInputEvent; | 25 using blink::WebInputEvent; | 
| 27 using blink::WebMouseEvent; | 26 using blink::WebMouseEvent; | 
| 28 using blink::WebMouseWheelEvent; | 27 using blink::WebMouseWheelEvent; | 
| 29 using blink::WebPoint; | 28 using blink::WebPoint; | 
| 30 using blink::WebTouchEvent; | 29 using blink::WebTouchEvent; | 
| (...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 953   // trigger a scroll, e.g., with a trivial time delta between fling updates. | 952   // trigger a scroll, e.g., with a trivial time delta between fling updates. | 
| 954   // Return true in this case to prevent early fling termination. | 953   // Return true in this case to prevent early fling termination. | 
| 955   if (std::abs(clipped_increment.width) < kScrollEpsilon && | 954   if (std::abs(clipped_increment.width) < kScrollEpsilon && | 
| 956       std::abs(clipped_increment.height) < kScrollEpsilon) | 955       std::abs(clipped_increment.height) < kScrollEpsilon) | 
| 957     return true; | 956     return true; | 
| 958 | 957 | 
| 959   return did_scroll; | 958   return did_scroll; | 
| 960 } | 959 } | 
| 961 | 960 | 
| 962 }  // namespace content | 961 }  // namespace content | 
| OLD | NEW | 
|---|