| 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/view_manager/test_server_view_delegate.h" | 5 #include "components/view_manager/test_server_view_delegate.h" |
| 6 #include "components/view_manager/server_view.h" | 6 #include "components/view_manager/server_view.h" |
| 7 | 7 |
| 8 namespace view_manager { | 8 namespace view_manager { |
| 9 | 9 |
| 10 TestServerViewDelegate::TestServerViewDelegate() : root_view_(nullptr) { | 10 TestServerViewDelegate::TestServerViewDelegate() : root_view_(nullptr) { |
| 11 } | 11 } |
| 12 | 12 |
| 13 TestServerViewDelegate::~TestServerViewDelegate() { | 13 TestServerViewDelegate::~TestServerViewDelegate() { |
| 14 } | 14 } |
| 15 | 15 |
| 16 surfaces::SurfacesState* TestServerViewDelegate::GetSurfacesState() { |
| 17 return nullptr; |
| 18 } |
| 19 |
| 16 void TestServerViewDelegate::PrepareToDestroyView(ServerView* view) { | 20 void TestServerViewDelegate::PrepareToDestroyView(ServerView* view) { |
| 17 } | 21 } |
| 18 | 22 |
| 19 void TestServerViewDelegate::PrepareToChangeViewHierarchy( | 23 void TestServerViewDelegate::PrepareToChangeViewHierarchy( |
| 20 ServerView* view, | 24 ServerView* view, |
| 21 ServerView* new_parent, | 25 ServerView* new_parent, |
| 22 ServerView* old_parent) { | 26 ServerView* old_parent) { |
| 23 } | 27 } |
| 24 | 28 |
| 25 void TestServerViewDelegate::PrepareToChangeViewVisibility(ServerView* view) { | 29 void TestServerViewDelegate::PrepareToChangeViewVisibility(ServerView* view) { |
| 26 } | 30 } |
| 27 | 31 |
| 28 void TestServerViewDelegate::OnScheduleViewPaint(const ServerView* view) { | 32 void TestServerViewDelegate::OnScheduleViewPaint(const ServerView* view) { |
| 29 } | 33 } |
| 30 | 34 |
| 31 const ServerView* TestServerViewDelegate::GetRootView( | 35 const ServerView* TestServerViewDelegate::GetRootView( |
| 32 const ServerView* view) const { | 36 const ServerView* view) const { |
| 33 return root_view_; | 37 return root_view_; |
| 34 } | 38 } |
| 35 | 39 |
| 36 } // namespace view_manager | 40 } // namespace view_manager |
| OLD | NEW |