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

Side by Side Diff: ui/events/test/event_generator.h

Issue 2224653002: mash: Remove ash::ShelfGestureHandler and ui::ET_GESTURE_WIN8_EDGE_SWIPE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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
OLDNEW
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 #ifndef UI_EVENTS_TEST_EVENT_GENERATOR_H_ 5 #ifndef UI_EVENTS_TEST_EVENT_GENERATOR_H_
6 #define UI_EVENTS_TEST_EVENT_GENERATOR_H_ 6 #define UI_EVENTS_TEST_EVENT_GENERATOR_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 } 247 }
248 248
249 void PressMoveAndReleaseTouchBy(int x, int y) { 249 void PressMoveAndReleaseTouchBy(int x, int y) {
250 PressMoveAndReleaseTouchTo(current_location_ + gfx::Vector2d(x, y)); 250 PressMoveAndReleaseTouchTo(current_location_ + gfx::Vector2d(x, y));
251 } 251 }
252 252
253 // Generates press, move and release events to move touch 253 // Generates press, move and release events to move touch
254 // to the center of the window. 254 // to the center of the window.
255 void PressMoveAndReleaseTouchToCenterOf(EventTarget* window); 255 void PressMoveAndReleaseTouchToCenterOf(EventTarget* window);
256 256
257 // Generates and dispatches a Win8 edge-swipe event (swipe up from bottom or
258 // swipe down from top). Note that it is not possible to distinguish between
259 // the two edges with this event.
260 void GestureEdgeSwipe();
261
262 // Generates and dispatches touch-events required to generate a TAP gesture. 257 // Generates and dispatches touch-events required to generate a TAP gesture.
263 // Note that this can generate a number of other gesture events at the same 258 // Note that this can generate a number of other gesture events at the same
264 // time (e.g. GESTURE_BEGIN, TAP_DOWN, END). 259 // time (e.g. GESTURE_BEGIN, TAP_DOWN, END).
265 void GestureTapAt(const gfx::Point& point); 260 void GestureTapAt(const gfx::Point& point);
266 261
267 // Generates press and release touch-events to generate a TAP_DOWN event, but 262 // Generates press and release touch-events to generate a TAP_DOWN event, but
268 // without generating any scroll or tap events. This can also generate a few 263 // without generating any scroll or tap events. This can also generate a few
269 // other gesture events (e.g. GESTURE_BEGIN, END). 264 // other gesture events (e.g. GESTURE_BEGIN, END).
270 void GestureTapDownAndUp(const gfx::Point& point); 265 void GestureTapDownAndUp(const gfx::Point& point);
271 266
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 bool targeting_application_; 396 bool targeting_application_;
402 std::unique_ptr<base::TickClock> tick_clock_; 397 std::unique_ptr<base::TickClock> tick_clock_;
403 398
404 DISALLOW_COPY_AND_ASSIGN(EventGenerator); 399 DISALLOW_COPY_AND_ASSIGN(EventGenerator);
405 }; 400 };
406 401
407 } // namespace test 402 } // namespace test
408 } // namespace ui 403 } // namespace ui
409 404
410 #endif // UI_EVENTS_TEST_EVENT_GENERATOR_H_ 405 #endif // UI_EVENTS_TEST_EVENT_GENERATOR_H_
OLDNEW
« no previous file with comments | « ui/events/gesture_detection/gesture_touch_uma_histogram.cc ('k') | ui/events/test/event_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698