| 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/ws/test_server_window_delegate.h" | 5 #include "components/mus/ws/test_server_window_delegate.h" |
| 6 #include "components/mus/ws/server_window.h" | 6 #include "components/mus/ws/server_window.h" |
| 7 | 7 |
| 8 namespace mus { | 8 namespace mus { |
| 9 | 9 |
| 10 namespace ws { | 10 namespace ws { |
| 11 | 11 |
| 12 TestServerWindowDelegate::TestServerWindowDelegate() : root_window_(nullptr) {} | 12 TestServerWindowDelegate::TestServerWindowDelegate() : root_window_(nullptr) {} |
| 13 | 13 |
| 14 TestServerWindowDelegate::~TestServerWindowDelegate() {} | 14 TestServerWindowDelegate::~TestServerWindowDelegate() {} |
| 15 | 15 |
| 16 mus::SurfacesState* TestServerWindowDelegate::GetSurfacesState() { | 16 mus::SurfacesState* TestServerWindowDelegate::GetSurfacesState() { |
| 17 return nullptr; | 17 return nullptr; |
| 18 } | 18 } |
| 19 | 19 |
| 20 void TestServerWindowDelegate::OnScheduleWindowPaint( | 20 void TestServerWindowDelegate::OnScheduleWindowPaint(ServerWindow* window) {} |
| 21 const ServerWindow* window) {} | |
| 22 | 21 |
| 23 const ServerWindow* TestServerWindowDelegate::GetRootWindow( | 22 const ServerWindow* TestServerWindowDelegate::GetRootWindow( |
| 24 const ServerWindow* window) const { | 23 const ServerWindow* window) const { |
| 25 return root_window_; | 24 return root_window_; |
| 26 } | 25 } |
| 27 | 26 |
| 28 void TestServerWindowDelegate::ScheduleSurfaceDestruction( | 27 void TestServerWindowDelegate::ScheduleSurfaceDestruction( |
| 29 ServerWindow* window) {} | 28 ServerWindow* window) {} |
| 30 | 29 |
| 31 ServerWindow* TestServerWindowDelegate::FindWindowForSurface( | 30 ServerWindow* TestServerWindowDelegate::FindWindowForSurface( |
| 32 const ServerWindow* ancestor, | 31 const ServerWindow* ancestor, |
| 33 mojom::SurfaceType surface_type, | 32 mojom::SurfaceType surface_type, |
| 34 const ClientWindowId& client_window_id) { | 33 const ClientWindowId& client_window_id) { |
| 35 return nullptr; | 34 return nullptr; |
| 36 } | 35 } |
| 37 | 36 |
| 38 } // namespace ws | 37 } // namespace ws |
| 39 | 38 |
| 40 } // namespace mus | 39 } // namespace mus |
| OLD | NEW |