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

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

Issue 240333007: wip: Second crack at implementing the touch exploration mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding a flag to disable the touch exploration mode. Created 6 years, 7 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 | « ui/aura/remote_window_tree_host_win.cc ('k') | ui/aura/test/event_generator.cc » ('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 #ifndef UI_AURA_TEST_EVENT_GENERATOR_H_ 5 #ifndef UI_AURA_TEST_EVENT_GENERATOR_H_
6 #define UI_AURA_TEST_EVENT_GENERATOR_H_ 6 #define UI_AURA_TEST_EVENT_GENERATOR_H_
7 7
8 #include <list> 8 #include <list>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 181
182 // Generates a touch press event with |touch_id|. 182 // Generates a touch press event with |touch_id|.
183 void PressTouchId(int touch_id); 183 void PressTouchId(int touch_id);
184 184
185 // Generates a ET_TOUCH_MOVED event to |point|. 185 // Generates a ET_TOUCH_MOVED event to |point|.
186 void MoveTouch(const gfx::Point& point); 186 void MoveTouch(const gfx::Point& point);
187 187
188 // Generates a ET_TOUCH_MOVED event to |point| with |touch_id|. 188 // Generates a ET_TOUCH_MOVED event to |point| with |touch_id|.
189 void MoveTouchId(const gfx::Point& point, int touch_id); 189 void MoveTouchId(const gfx::Point& point, int touch_id);
190 190
191 // Generates ET_TOUCH_STATIONARY event.
192 void StationaryTouch();
193
194 // Generates ET_TOUCH_STATIONARY event with |touch_id|.
195 void StationaryTouchId(int touch_id);
196
191 // Generates a touch release event. 197 // Generates a touch release event.
192 void ReleaseTouch(); 198 void ReleaseTouch();
193 199
194 // Generates a touch release event with |touch_id|. 200 // Generates a touch release event with |touch_id|.
195 void ReleaseTouchId(int touch_id); 201 void ReleaseTouchId(int touch_id);
196 202
197 // Generates press, move and release event to move touch 203 // Generates press, move and release event to move touch
198 // to be the given |point|. 204 // to be the given |point|.
199 void PressMoveAndReleaseTouchTo(const gfx::Point& point); 205 void PressMoveAndReleaseTouchTo(const gfx::Point& point);
200 206
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 // Set to true to cause events to be posted asynchronously. 350 // Set to true to cause events to be posted asynchronously.
345 bool async_; 351 bool async_;
346 352
347 DISALLOW_COPY_AND_ASSIGN(EventGenerator); 353 DISALLOW_COPY_AND_ASSIGN(EventGenerator);
348 }; 354 };
349 355
350 } // namespace test 356 } // namespace test
351 } // namespace aura 357 } // namespace aura
352 358
353 #endif // UI_AURA_TEST_EVENT_GENERATOR_H_ 359 #endif // UI_AURA_TEST_EVENT_GENERATOR_H_
OLDNEW
« no previous file with comments | « ui/aura/remote_window_tree_host_win.cc ('k') | ui/aura/test/event_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698