OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_LAYOUT_MANAGER_H_ | 5 #ifndef VIEWS_LAYOUT_MANAGER_H_ |
6 #define VIEWS_LAYOUT_MANAGER_H_ | 6 #define VIEWS_LAYOUT_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "views/view.h" | |
10 | |
11 namespace gfx { | 9 namespace gfx { |
12 class Size; | 10 class Size; |
13 } | 11 } |
14 | 12 |
15 namespace views { | 13 namespace views { |
16 | 14 |
| 15 class View; |
| 16 |
17 ///////////////////////////////////////////////////////////////////////////// | 17 ///////////////////////////////////////////////////////////////////////////// |
18 // | 18 // |
19 // LayoutManager interface | 19 // LayoutManager interface |
20 // | 20 // |
21 // The LayoutManager interface provides methods to handle the sizing of | 21 // The LayoutManager interface provides methods to handle the sizing of |
22 // the children of a View according to implementation-specific heuristics. | 22 // the children of a View according to implementation-specific heuristics. |
23 // | 23 // |
24 ///////////////////////////////////////////////////////////////////////////// | 24 ///////////////////////////////////////////////////////////////////////////// |
25 class LayoutManager { | 25 class LayoutManager { |
26 public: | 26 public: |
(...skipping 23 matching lines...) Expand all Loading... |
50 // Notification that a view has been added. | 50 // Notification that a view has been added. |
51 virtual void ViewAdded(View* host, View* view); | 51 virtual void ViewAdded(View* host, View* view); |
52 | 52 |
53 // Notification that a view has been removed. | 53 // Notification that a view has been removed. |
54 virtual void ViewRemoved(View* host, View* view); | 54 virtual void ViewRemoved(View* host, View* view); |
55 }; | 55 }; |
56 | 56 |
57 } // namespace views | 57 } // namespace views |
58 | 58 |
59 #endif // VIEWS_LAYOUT_MANAGER_H_ | 59 #endif // VIEWS_LAYOUT_MANAGER_H_ |
OLD | NEW |