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 #include "components/mus/surfaces/surfaces_state.h" | 5 #include "services/ui/surfaces/surfaces_state.h" |
6 #include "components/mus/ws/test_server_window_delegate.h" | 6 #include "services/ui/ws/server_window.h" |
7 #include "components/mus/ws/server_window.h" | 7 #include "services/ui/ws/test_server_window_delegate.h" |
8 | 8 |
9 namespace mus { | 9 namespace mus { |
10 | 10 |
11 namespace ws { | 11 namespace ws { |
12 | 12 |
13 TestServerWindowDelegate::TestServerWindowDelegate() | 13 TestServerWindowDelegate::TestServerWindowDelegate() |
14 : root_window_(nullptr), surfaces_state_(new SurfacesState()) {} | 14 : root_window_(nullptr), surfaces_state_(new SurfacesState()) {} |
15 | 15 |
16 TestServerWindowDelegate::~TestServerWindowDelegate() {} | 16 TestServerWindowDelegate::~TestServerWindowDelegate() {} |
17 | 17 |
18 mus::SurfacesState* TestServerWindowDelegate::GetSurfacesState() { | 18 mus::SurfacesState* TestServerWindowDelegate::GetSurfacesState() { |
19 return surfaces_state_.get(); | 19 return surfaces_state_.get(); |
20 } | 20 } |
21 | 21 |
22 void TestServerWindowDelegate::OnScheduleWindowPaint(ServerWindow* window) {} | 22 void TestServerWindowDelegate::OnScheduleWindowPaint(ServerWindow* window) {} |
23 | 23 |
24 const ServerWindow* TestServerWindowDelegate::GetRootWindow( | 24 const ServerWindow* TestServerWindowDelegate::GetRootWindow( |
25 const ServerWindow* window) const { | 25 const ServerWindow* window) const { |
26 return root_window_; | 26 return root_window_; |
27 } | 27 } |
28 | 28 |
29 void TestServerWindowDelegate::ScheduleSurfaceDestruction( | 29 void TestServerWindowDelegate::ScheduleSurfaceDestruction( |
30 ServerWindow* window) {} | 30 ServerWindow* window) {} |
31 | 31 |
32 } // namespace ws | 32 } // namespace ws |
33 | 33 |
34 } // namespace mus | 34 } // namespace mus |
OLD | NEW |