OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/touch_smooth_scroll_gesture_aura.h" | 5 #include "content/browser/renderer_host/touch_smooth_scroll_gesture_aura.h" |
6 | 6 |
7 #include "content/browser/renderer_host/render_widget_host_impl.h" | 7 #include "content/browser/renderer_host/render_widget_host_impl.h" |
8 #include "ui/aura/root_window.h" | 8 #include "ui/aura/root_window.h" |
9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
10 #include "ui/events/event.h" | 10 #include "ui/events/event.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 pixels_scrolled_ += abs(position_delta); | 66 pixels_scrolled_ += abs(position_delta); |
67 | 67 |
68 if (pixels_scrolled_ >= pixels_to_scroll_) { | 68 if (pixels_scrolled_ >= pixels_to_scroll_) { |
69 InjectTouchEvent(location_, ui::ET_TOUCH_RELEASED, window_); | 69 InjectTouchEvent(location_, ui::ET_TOUCH_RELEASED, window_); |
70 } | 70 } |
71 | 71 |
72 return true; | 72 return true; |
73 } | 73 } |
74 | 74 |
75 } // namespace content | 75 } // namespace content |
OLD | NEW |