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

Unified Diff: ui/aura/test/aura_test_utils.cc

Issue 503883004: Don't pass touches to gesture recognizer for async acks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove code churn. Created 5 years, 10 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/aura/test/aura_test_utils.h ('k') | ui/aura/window_event_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/aura_test_utils.cc
diff --git a/ui/aura/test/aura_test_utils.cc b/ui/aura/test/aura_test_utils.cc
index fe4120b4dcddc9a8f25e9d37b54f7dea32bc694f..ce40df855e89e107da40a3272a38db78094fb16c 100644
--- a/ui/aura/test/aura_test_utils.cc
+++ b/ui/aura/test/aura_test_utils.cc
@@ -4,6 +4,7 @@
#include "ui/aura/test/aura_test_utils.h"
+#include "ui/aura/window_event_dispatcher.h"
#include "ui/aura/window_tree_host.h"
namespace aura {
@@ -17,6 +18,10 @@ class WindowTreeHostTestApi {
return host_->last_cursor_request_position_in_host_;
}
+ void set_dispatcher(scoped_ptr<WindowEventDispatcher> dispatcher) {
+ host_->dispatcher_ = dispatcher.Pass();
+ }
+
private:
WindowTreeHost* host_;
@@ -28,5 +33,11 @@ const gfx::Point& QueryLatestMousePositionRequestInHost(WindowTreeHost* host) {
return host_test_api.last_cursor_request_position_in_host();
}
+void SetHostDispatcher(WindowTreeHost* host,
+ scoped_ptr<WindowEventDispatcher> dispatcher) {
+ WindowTreeHostTestApi host_test_api(host);
+ host_test_api.set_dispatcher(dispatcher.Pass());
+}
+
} // namespace test
} // namespace aura
« no previous file with comments | « ui/aura/test/aura_test_utils.h ('k') | ui/aura/window_event_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698