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