| 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 class WindowTree; | 15 class WindowTree; |
| 16 struct WindowId; | 16 struct WindowId; |
| 17 | 17 |
| 18 class WindowServerTestImpl : public mojom::WindowServerTest { | 18 class WindowServerTestImpl : public mojom::WindowServerTest { |
| 19 public: | 19 public: |
| 20 explicit WindowServerTestImpl(WindowServer* server); | 20 explicit WindowServerTestImpl(WindowServer* server); |
| 21 ~WindowServerTestImpl() override; | 21 ~WindowServerTestImpl() override; |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 void OnWindowPaint(const std::string& name, | 24 void OnWindowPaint(const std::string& name, |
| 25 const EnsureClientHasDrawnWindowCallback& cb, | 25 const EnsureClientHasDrawnWindowCallback& cb, |
| 26 ServerWindow* window); | 26 ServerWindow* window); |
| 27 | 27 |
| 28 // mojom::WindowServerTest: | 28 // mojom::WindowServerTest: |
| 29 void EnsureClientHasDrawnWindow( | 29 void EnsureClientHasDrawnWindow( |
| 30 const mojo::String& client_name, | 30 const std::string& client_name, |
| 31 const EnsureClientHasDrawnWindowCallback& callback) override; | 31 const EnsureClientHasDrawnWindowCallback& callback) override; |
| 32 | 32 |
| 33 WindowServer* window_server_; | 33 WindowServer* window_server_; |
| 34 | 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(WindowServerTestImpl); | 35 DISALLOW_COPY_AND_ASSIGN(WindowServerTestImpl); |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 } // namespace ws | 38 } // namespace ws |
| 39 } // namespace ui | 39 } // namespace ui |
| 40 | 40 |
| 41 #endif // SERVICES_UI_WS_WINDOW_SERVER_TEST_IMPL_H_ | 41 #endif // SERVICES_UI_WS_WINDOW_SERVER_TEST_IMPL_H_ |
| OLD | NEW |