| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ui/views/test/test_layout_manager.h" | |
| 6 | |
| 7 namespace views { | |
| 8 namespace test { | |
| 9 | |
| 10 TestLayoutManager::TestLayoutManager() {} | |
| 11 | |
| 12 TestLayoutManager::~TestLayoutManager() {} | |
| 13 | |
| 14 void TestLayoutManager::Layout(View* host) {} | |
| 15 | |
| 16 gfx::Size TestLayoutManager::GetPreferredSize(const View* host) const { | |
| 17 return preferred_size_; | |
| 18 } | |
| 19 | |
| 20 int TestLayoutManager::GetPreferredHeightForWidth(const View* host, | |
| 21 int width) const { | |
| 22 return preferred_height_for_width_; | |
| 23 } | |
| 24 | |
| 25 } // namespace test | |
| 26 } // namespace views | |
| OLD | NEW |