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

Unified Diff: ui/base/test/ui_controls_win.cc

Issue 2904113002: Replacing WM_TOUCH with WM_POINTER for touch events on Wins 8+ (Closed)
Patch Set: wm touch Created 3 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/test/ui_controls_win.cc
diff --git a/ui/base/test/ui_controls_win.cc b/ui/base/test/ui_controls_win.cc
index f70c4336a4852b6407258a66d611f54b0071a690..278b46558f9c30ac369e0246edc7822e042884da 100644
--- a/ui/base/test/ui_controls_win.cc
+++ b/ui/base/test/ui_controls_win.cc
@@ -66,6 +66,15 @@ bool SendMouseClick(MouseButton type) {
return internal::SendMouseEventsImpl(type, UP | DOWN, base::Closure());
}
+bool SendTouchEventsNotifyWhenDone(int action,
+ int num,
+ int x,
+ int y,
+ const base::Closure& task) {
+ CHECK(g_ui_controls_enabled);
+ return internal::SendTouchEventsImpl(action, num, x, y, task);
+}
+
void RunClosureAfterAllPendingUIEvents(const base::Closure& closure) {
// On windows, posting UI events is synchronous so just post the closure.
base::MessageLoopForUI::current()->PostTask(FROM_HERE, closure);

Powered by Google App Engine
This is Rietveld 408576698