Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TEST_SERVER_WINDOW_DELEGATE_H_ | 5 #ifndef SERVICES_UI_WS_TEST_SERVER_WINDOW_DELEGATE_H_ |
| 6 #define SERVICES_UI_WS_TEST_SERVER_WINDOW_DELEGATE_H_ | 6 #define SERVICES_UI_WS_TEST_SERVER_WINDOW_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "services/ui/ws/server_window_delegate.h" | 9 #include "services/ui/ws/server_window_delegate.h" |
| 10 | 10 |
| 11 namespace cc { | 11 namespace cc { |
| 12 namespace mojom { | 12 namespace mojom { |
| 13 class DisplayCompositor; | 13 class FrameSinkManager; |
|
msw
2017/04/03 19:22:13
nit: not needed (should be pulled in via server_wi
kylechar
2017/04/03 19:54:16
Done.
| |
| 14 } | 14 } |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace ui { | 17 namespace ui { |
| 18 namespace ws { | 18 namespace ws { |
| 19 | 19 |
| 20 class TestServerWindowDelegate : public ServerWindowDelegate { | 20 class TestServerWindowDelegate : public ServerWindowDelegate { |
| 21 public: | 21 public: |
| 22 TestServerWindowDelegate(); | 22 TestServerWindowDelegate(); |
| 23 ~TestServerWindowDelegate() override; | 23 ~TestServerWindowDelegate() override; |
| 24 | 24 |
| 25 void set_root_window(ServerWindow* window) { root_window_ = window; } | 25 void set_root_window(ServerWindow* window) { root_window_ = window; } |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 // ServerWindowDelegate: | 28 // ServerWindowDelegate: |
| 29 cc::mojom::DisplayCompositor* GetDisplayCompositor() override; | 29 cc::mojom::FrameSinkManager* GetFrameSinkManager() override; |
| 30 ServerWindow* GetRootWindow(const ServerWindow* window) override; | 30 ServerWindow* GetRootWindow(const ServerWindow* window) override; |
| 31 | 31 |
| 32 ServerWindow* root_window_ = nullptr; | 32 ServerWindow* root_window_ = nullptr; |
| 33 | 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(TestServerWindowDelegate); | 34 DISALLOW_COPY_AND_ASSIGN(TestServerWindowDelegate); |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 } // namespace ws | 37 } // namespace ws |
| 38 } // namespace ui | 38 } // namespace ui |
| 39 | 39 |
| 40 #endif // SERVICES_UI_WS_TEST_SERVER_WINDOW_DELEGATE_H_ | 40 #endif // SERVICES_UI_WS_TEST_SERVER_WINDOW_DELEGATE_H_ |
| OLD | NEW |