OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_MUS_WS_WINDOW_SERVER_TEST_IMPL_H_ | |
6 #define COMPONENTS_MUS_WS_WINDOW_SERVER_TEST_IMPL_H_ | |
7 | |
8 #include "components/mus/public/interfaces/window_server_test.mojom.h" | |
9 #include "mojo/public/cpp/bindings/strong_binding.h" | |
10 | |
11 namespace mus { | |
12 namespace ws { | |
13 | |
14 class ServerWindow; | |
15 class WindowServer; | |
16 class WindowTree; | |
17 struct WindowId; | |
18 | |
19 class WindowServerTestImpl : public mojom::WindowServerTest { | |
20 public: | |
21 WindowServerTestImpl(WindowServer* server, | |
22 mojo::InterfaceRequest<WindowServerTest> request); | |
23 | |
24 private: | |
25 ~WindowServerTestImpl() override; | |
26 | |
27 void OnWindowPaint(const std::string& name, | |
28 const EnsureClientHasDrawnWindowCallback& cb, | |
29 ServerWindow* window); | |
30 | |
31 // mojom::WindowServerTest: | |
32 void EnsureClientHasDrawnWindow( | |
33 const mojo::String& client_name, | |
34 const EnsureClientHasDrawnWindowCallback& callback) override; | |
35 | |
36 WindowServer* window_server_; | |
37 mojo::StrongBinding<WindowServerTest> binding_; | |
38 | |
39 DISALLOW_COPY_AND_ASSIGN(WindowServerTestImpl); | |
40 }; | |
41 | |
42 } // namespace ws | |
43 } // namespace mus | |
44 | |
45 #endif // COMPONENTS_MUS_WS_WINDOW_SERVER_TEST_IMPL_H_ | |
OLD | NEW |