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

Unified Diff: ui/aura/event_injector.h

Issue 2869273010: aura: Introduce EventInjector. (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: ui/aura/event_injector.h
diff --git a/ui/aura/event_injector.h b/ui/aura/event_injector.h
new file mode 100644
index 0000000000000000000000000000000000000000..82d8a4008a0a76de196d95a8422b1afd36eb3837
--- /dev/null
+++ b/ui/aura/event_injector.h
@@ -0,0 +1,35 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_AURA_EVENT_INJECTOR_H_
+#define UI_AURA_EVENT_INJECTOR_H_
+
+#include "services/ui/public/interfaces/window_server_test.mojom.h"
+#include "ui/aura/aura_export.h"
+
+namespace ui {
+class Event;
+struct EventDispatchDetails;
+}
+
+namespace aura {
+
+class WindowTreeHost;
+
+class AURA_EXPORT EventInjector {
sky 2017/05/12 12:11:51 Add description
+ public:
+ EventInjector();
+ ~EventInjector();
+
+ ui::EventDispatchDetails Inject(WindowTreeHost* host, ui::Event* event);
+
+ private:
+ ui::mojom::WindowServerTestPtr window_server_ptr_;
+
+ DISALLOW_COPY_AND_ASSIGN(EventInjector);
+};
+
+} // namespace aura
+
+#endif // UI_AURA_EVENT_INJECTOR_H_

Powered by Google App Engine
This is Rietveld 408576698