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 #include "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/memory/scoped_vector.h" | 6 #include "base/memory/scoped_vector.h" |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 fling_ = true; | 255 fling_ = true; |
256 velocity_x_ = gesture->details().velocity_x(); | 256 velocity_x_ = gesture->details().velocity_x(); |
257 velocity_y_ = gesture->details().velocity_y(); | 257 velocity_y_ = gesture->details().velocity_y(); |
258 break; | 258 break; |
259 case ui::ET_GESTURE_TWO_FINGER_TAP: | 259 case ui::ET_GESTURE_TWO_FINGER_TAP: |
260 two_finger_tap_ = true; | 260 two_finger_tap_ = true; |
261 break; | 261 break; |
262 case ui::ET_GESTURE_SHOW_PRESS: | 262 case ui::ET_GESTURE_SHOW_PRESS: |
263 show_press_ = true; | 263 show_press_ = true; |
264 break; | 264 break; |
265 case ui::ET_GESTURE_MULTIFINGER_SWIPE: | 265 case ui::ET_GESTURE_SWIPE: |
266 swipe_left_ = gesture->details().swipe_left(); | 266 swipe_left_ = gesture->details().swipe_left(); |
267 swipe_right_ = gesture->details().swipe_right(); | 267 swipe_right_ = gesture->details().swipe_right(); |
268 swipe_up_ = gesture->details().swipe_up(); | 268 swipe_up_ = gesture->details().swipe_up(); |
269 swipe_down_ = gesture->details().swipe_down(); | 269 swipe_down_ = gesture->details().swipe_down(); |
270 break; | 270 break; |
271 case ui::ET_SCROLL_FLING_CANCEL: | 271 case ui::ET_SCROLL_FLING_CANCEL: |
272 // Only used in unified gesture detection. | 272 // Only used in unified gesture detection. |
273 break; | 273 break; |
274 default: | 274 default: |
275 NOTREACHED(); | 275 NOTREACHED(); |
(...skipping 3998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4274 DispatchEventUsingWindowDispatcher(&move1); | 4274 DispatchEventUsingWindowDispatcher(&move1); |
4275 EXPECT_NE(default_flags, delegate->flags()); | 4275 EXPECT_NE(default_flags, delegate->flags()); |
4276 } | 4276 } |
4277 | 4277 |
4278 INSTANTIATE_TEST_CASE_P(GestureRecognizer, | 4278 INSTANTIATE_TEST_CASE_P(GestureRecognizer, |
4279 GestureRecognizerTest, | 4279 GestureRecognizerTest, |
4280 ::testing::Bool()); | 4280 ::testing::Bool()); |
4281 | 4281 |
4282 } // namespace test | 4282 } // namespace test |
4283 } // namespace aura | 4283 } // namespace aura |
OLD | NEW |