Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: ui/aura/gestures/gesture_recognizer_unittest.cc

Issue 302463004: Implementing the dispatch of the swipe gesture for one-finger touch swipes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implementing review feedback. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | ui/events/event.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | ui/events/event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698