Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Side by Side Diff: ui/views/test/test_layout_manager.h

Issue 2523663002: Remove remaining base dependencies from base/numerics (Closed)
Patch Set: fix gcc compile Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/gfx/geometry/rect.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/gfx/geometry/rect.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698