| 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 void TestServerViewDelegate::SubmitCompositorFrame( |
| 17 ServerView* view, |
| 18 mojo::CompositorFramePtr frame, |
| 19 const mojo::Closure& callback) { |
| 20 } |
| 21 |
| 16 void TestServerViewDelegate::PrepareToDestroyView(ServerView* view) { | 22 void TestServerViewDelegate::PrepareToDestroyView(ServerView* view) { |
| 17 } | 23 } |
| 18 | 24 |
| 19 void TestServerViewDelegate::PrepareToChangeViewHierarchy( | 25 void TestServerViewDelegate::PrepareToChangeViewHierarchy( |
| 20 ServerView* view, | 26 ServerView* view, |
| 21 ServerView* new_parent, | 27 ServerView* new_parent, |
| 22 ServerView* old_parent) { | 28 ServerView* old_parent) { |
| 23 } | 29 } |
| 24 | 30 |
| 25 void TestServerViewDelegate::PrepareToChangeViewVisibility(ServerView* view) { | 31 void TestServerViewDelegate::PrepareToChangeViewVisibility(ServerView* view) { |
| 26 } | 32 } |
| 27 | 33 |
| 28 void TestServerViewDelegate::OnScheduleViewPaint(const ServerView* view) { | 34 void TestServerViewDelegate::OnScheduleViewPaint(const ServerView* view) { |
| 29 } | 35 } |
| 30 | 36 |
| 31 const ServerView* TestServerViewDelegate::GetRootView( | 37 const ServerView* TestServerViewDelegate::GetRootView( |
| 32 const ServerView* view) const { | 38 const ServerView* view) const { |
| 33 return root_view_; | 39 return root_view_; |
| 34 } | 40 } |
| 35 | 41 |
| 36 } // namespace view_manager | 42 } // namespace view_manager |
| OLD | NEW |