OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SERVICES_UI_WS_WINDOW_SERVER_TEST_IMPL_H_ | 5 #ifndef SERVICES_UI_WS_WINDOW_SERVER_TEST_IMPL_H_ |
6 #define SERVICES_UI_WS_WINDOW_SERVER_TEST_IMPL_H_ | 6 #define SERVICES_UI_WS_WINDOW_SERVER_TEST_IMPL_H_ |
7 | 7 |
8 #include "services/ui/public/interfaces/window_server_test.mojom.h" | 8 #include "services/ui/public/interfaces/window_server_test.mojom.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
11 namespace ws { | 11 namespace ws { |
12 | 12 |
13 class ServerWindow; | 13 class ServerWindow; |
14 class WindowServer; | 14 class WindowServer; |
15 | 15 |
16 class WindowServerTestImpl : public mojom::WindowServerTest { | 16 class WindowServerTestImpl : public mojom::WindowServerTest { |
17 public: | 17 public: |
18 explicit WindowServerTestImpl(WindowServer* server); | 18 explicit WindowServerTestImpl(WindowServer* server); |
19 ~WindowServerTestImpl() override; | 19 ~WindowServerTestImpl() override; |
20 | 20 |
21 private: | 21 private: |
22 void OnWindowPaint(const std::string& name, | 22 void OnWindowPaint(const std::string& name, |
23 const EnsureClientHasDrawnWindowCallback& cb, | 23 const EnsureClientHasDrawnWindowCallback& cb, |
24 ServerWindow* window); | 24 ServerWindow* window); |
25 | 25 |
26 // mojom::WindowServerTest: | 26 // mojom::WindowServerTest: |
27 void EnsureClientHasDrawnWindow( | 27 void EnsureClientHasDrawnWindow( |
28 const std::string& client_name, | 28 const std::string& client_name, |
29 const EnsureClientHasDrawnWindowCallback& callback) override; | 29 const EnsureClientHasDrawnWindowCallback& callback) override; |
| 30 void DispatchEvent(int64_t display_id, |
| 31 std::unique_ptr<ui::Event> event, |
| 32 const DispatchEventCallback& cb) override; |
30 | 33 |
31 WindowServer* window_server_; | 34 WindowServer* window_server_; |
32 | 35 |
33 DISALLOW_COPY_AND_ASSIGN(WindowServerTestImpl); | 36 DISALLOW_COPY_AND_ASSIGN(WindowServerTestImpl); |
34 }; | 37 }; |
35 | 38 |
36 } // namespace ws | 39 } // namespace ws |
37 } // namespace ui | 40 } // namespace ui |
38 | 41 |
39 #endif // SERVICES_UI_WS_WINDOW_SERVER_TEST_IMPL_H_ | 42 #endif // SERVICES_UI_WS_WINDOW_SERVER_TEST_IMPL_H_ |
OLD | NEW |