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

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

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: Fix bug, add test. Created 6 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
Index: ui/aura/test/aura_test_utils.h
diff --git a/ui/aura/test/aura_test_utils.h b/ui/aura/test/aura_test_utils.h
index ec94b3c3dbc6ca6931085eb4e249da1cdcd1327b..33d43099b59c086e6add40ee0dbf3aa3240f00c3 100644
--- a/ui/aura/test/aura_test_utils.h
+++ b/ui/aura/test/aura_test_utils.h
@@ -7,6 +7,8 @@
#include "base/macros.h"
+#include "ui/aura/window_event_dispatcher.h"
+
namespace gfx {
class Point;
}
@@ -16,6 +18,18 @@ class WindowTreeHost;
namespace test {
+class WindowTreeHostTestApi {
+ public:
+ explicit WindowTreeHostTestApi(WindowTreeHost* host);
+ const gfx::Point& last_cursor_request_position_in_host();
+ void set_dispatcher(WindowEventDispatcher* dispatcher);
+
+ private:
+ WindowTreeHost* host_;
+
+ DISALLOW_COPY_AND_ASSIGN(WindowTreeHostTestApi);
+};
+
const gfx::Point& QueryLatestMousePositionRequestInHost(WindowTreeHost* host);
} // namespace test

Powered by Google App Engine
This is Rietveld 408576698