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

Unified Diff: ui/aura/test/event_generator.h

Issue 10824200: Handful of tweaks for tab dragging with touch: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/base/in_process_browser_test.h ('k') | ui/aura/test/event_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/event_generator.h
diff --git a/ui/aura/test/event_generator.h b/ui/aura/test/event_generator.h
index 0a4ad7d2e53d50c6731b7060c41e922a85f2c698..201179c5012f3168ebe8798287f6af317775ca01 100644
--- a/ui/aura/test/event_generator.h
+++ b/ui/aura/test/event_generator.h
@@ -36,6 +36,12 @@ class EventGenerator {
virtual ~EventGenerator();
+ // Explicitly sets the location used by mouse/touch events. This is set by the
+ // various methods that take a location but can be manipulated directly,
+ // typically for touch.
+ void set_current_location(const gfx::Point& location) {
+ current_location_ = location;
+ }
const gfx::Point& current_location() const { return current_location_; }
// Resets the event flags bitmask.
@@ -90,6 +96,9 @@ class EventGenerator {
// Generates a touch press event.
void PressTouch();
+ // Generates a ET_TOUCH_MOVED event to |point|.
+ void MoveTouch(const gfx::Point& point);
+
// Generates a touch release event.
void ReleaseTouch();
« no previous file with comments | « chrome/test/base/in_process_browser_test.h ('k') | ui/aura/test/event_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698