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

Unified Diff: ui/events/test/events_test_utils.cc

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, 8 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 | « ui/events/test/events_test_utils.h ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/events_test_utils.cc
diff --git a/ui/events/test/events_test_utils.cc b/ui/events/test/events_test_utils.cc
index 316af7466c6e23b6b4c1e01a9301fc502e6a9427..5b5b1ba5d63e987f65d68b50ea59fc20be719a22 100644
--- a/ui/events/test/events_test_utils.cc
+++ b/ui/events/test/events_test_utils.cc
@@ -4,6 +4,8 @@
#include "ui/events/test/events_test_utils.h"
+#include "ui/events/event_source.h"
+
namespace ui {
EventTestApi::EventTestApi(Event* event) : event_(event) {}
@@ -17,4 +19,13 @@ LocatedEventTestApi::~LocatedEventTestApi() {}
EventTargetTestApi::EventTargetTestApi(EventTarget* target)
: target_(target) {}
+EventSourceTestApi::EventSourceTestApi(EventSource* event_source)
+ : event_source_(event_source) {
+ DCHECK(event_source);
+}
+
+EventDispatchDetails EventSourceTestApi::SendEventToProcessor(Event* event) {
+ return event_source_->SendEventToProcessor(event);
+}
+
} // namespace ui
« no previous file with comments | « ui/events/test/events_test_utils.h ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698