| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <string> | 5 #include <string> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "content/browser/renderer_host/input/gesture_text_selector.h" | 10 #include "content/browser/renderer_host/input/gesture_text_selector.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 // 7. ET_GESTURE_SCROLL_END | 156 // 7. ET_GESTURE_SCROLL_END |
| 157 event_time += base::TimeDelta::FromMilliseconds(10); | 157 event_time += base::TimeDelta::FromMilliseconds(10); |
| 158 const GestureEventData scroll_end( | 158 const GestureEventData scroll_end( |
| 159 GestureEventDetails(ui::ET_GESTURE_SCROLL_END, 0, 0), 0, event_time, | 159 GestureEventDetails(ui::ET_GESTURE_SCROLL_END, 0, 0), 0, event_time, |
| 160 x2, y2, x2, y2, 1, gfx::RectF(0, 0, 0, 0)); | 160 x2, y2, x2, y2, 1, gfx::RectF(0, 0, 0, 0)); |
| 161 EXPECT_TRUE(selector_->OnGestureEvent(scroll_end)); | 161 EXPECT_TRUE(selector_->OnGestureEvent(scroll_end)); |
| 162 EXPECT_EQ(3u, event_log_.size()); // NO CHANGE | 162 EXPECT_EQ(3u, event_log_.size()); // NO CHANGE |
| 163 } | 163 } |
| 164 | 164 |
| 165 } // namespace content | 165 } // namespace content |
| OLD | NEW |