Chromium Code Reviews| 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_ |