| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef UI_VIEWS_TEST_TEST_LAYOUT_MANAGER_H_ | 5 #ifndef UI_VIEWS_TEST_TEST_LAYOUT_MANAGER_H_ |
| 6 #define UI_VIEWS_TEST_TEST_LAYOUT_MANAGER_H_ | 6 #define UI_VIEWS_TEST_TEST_LAYOUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "ui/gfx/geometry/size.h" | 9 #include "ui/gfx/geometry/size.h" |
| 9 #include "ui/views/layout/layout_manager.h" | 10 #include "ui/views/layout/layout_manager.h" |
| 10 | 11 |
| 11 namespace views { | 12 namespace views { |
| 12 namespace test { | 13 namespace test { |
| 13 | 14 |
| 14 // A stub layout manager that returns a specific preferred size and height for | 15 // A stub layout manager that returns a specific preferred size and height for |
| 15 // width. | 16 // width. |
| 16 class TestLayoutManager : public LayoutManager { | 17 class TestLayoutManager : public LayoutManager { |
| 17 public: | 18 public: |
| (...skipping 18 matching lines...) Expand all Loading... |
| 36 // The return value for GetPreferredHeightForWidth(). | 37 // The return value for GetPreferredHeightForWidth(). |
| 37 int preferred_height_for_width_ = 0; | 38 int preferred_height_for_width_ = 0; |
| 38 | 39 |
| 39 DISALLOW_COPY_AND_ASSIGN(TestLayoutManager); | 40 DISALLOW_COPY_AND_ASSIGN(TestLayoutManager); |
| 40 }; | 41 }; |
| 41 | 42 |
| 42 } // namespace test | 43 } // namespace test |
| 43 } // namespace views | 44 } // namespace views |
| 44 | 45 |
| 45 #endif // UI_VIEWS_TEST_TEST_LAYOUT_MANAGER_H_ | 46 #endif // UI_VIEWS_TEST_TEST_LAYOUT_MANAGER_H_ |
| OLD | NEW |