| 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 "services/ui/ws/server_window.h" | |
| 6 #include "services/ui/ws/test_server_window_delegate.h" | 5 #include "services/ui/ws/test_server_window_delegate.h" |
| 7 | 6 |
| 7 #include "services/ui/ws/server_window.h" |
| 8 |
| 8 namespace ui { | 9 namespace ui { |
| 9 | |
| 10 namespace ws { | 10 namespace ws { |
| 11 | 11 |
| 12 TestServerWindowDelegate::TestServerWindowDelegate() | 12 TestServerWindowDelegate::TestServerWindowDelegate() {} |
| 13 : root_window_(nullptr) {} | |
| 14 | 13 |
| 15 TestServerWindowDelegate::~TestServerWindowDelegate() {} | 14 TestServerWindowDelegate::~TestServerWindowDelegate() {} |
| 16 | 15 |
| 17 cc::mojom::DisplayCompositor* TestServerWindowDelegate::GetDisplayCompositor() { | 16 cc::mojom::DisplayCompositor* TestServerWindowDelegate::GetDisplayCompositor() { |
| 18 return nullptr; | 17 return nullptr; |
| 19 } | 18 } |
| 20 | 19 |
| 20 const cc::SurfaceId& TestServerWindowDelegate::GetRootSurfaceId() const { |
| 21 return root_surface_id_; |
| 22 } |
| 23 |
| 21 ServerWindow* TestServerWindowDelegate::GetRootWindow( | 24 ServerWindow* TestServerWindowDelegate::GetRootWindow( |
| 22 const ServerWindow* window) { | 25 const ServerWindow* window) { |
| 23 return root_window_; | 26 return root_window_; |
| 24 } | 27 } |
| 25 | 28 |
| 26 } // namespace ws | 29 } // namespace ws |
| 27 | |
| 28 } // namespace ui | 30 } // namespace ui |
| OLD | NEW |