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