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 ASH_COMMON_SYSTEM_TRAY_TRI_VIEW_H_ | 5 #ifndef ASH_COMMON_SYSTEM_TRAY_TRI_VIEW_H_ |
6 #define ASH_COMMON_SYSTEM_TRAY_TRI_VIEW_H_ | 6 #define ASH_COMMON_SYSTEM_TRAY_TRI_VIEW_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // Creates |this| with the specified orientation and 0 padding between | 63 // Creates |this| with the specified orientation and 0 padding between |
64 // containers. | 64 // containers. |
65 explicit TriView(Orientation orientation); | 65 explicit TriView(Orientation orientation); |
66 | 66 |
67 // Creates this with the specified |orientation| and | 67 // Creates this with the specified |orientation| and |
68 // |padding_between_containers|. | 68 // |padding_between_containers|. |
69 TriView(Orientation orientation, int padding_between_containers); | 69 TriView(Orientation orientation, int padding_between_containers); |
70 | 70 |
71 ~TriView() override; | 71 ~TriView() override; |
72 | 72 |
| 73 // Set the minimum height for all containers to |height|. |
| 74 void SetMinHeight(int height); |
| 75 |
73 // Set the minimum size for the given |container|. | 76 // Set the minimum size for the given |container|. |
74 void SetMinSize(Container container, const gfx::Size& size); | 77 void SetMinSize(Container container, const gfx::Size& size); |
75 | 78 |
76 // Get the minimum size for the given |container|. | 79 // Get the minimum size for the given |container|. |
77 gfx::Size GetMinSize(Container container); | 80 gfx::Size GetMinSize(Container container); |
78 | 81 |
79 // Set the maximum size for the given |container|. | 82 // Set the maximum size for the given |container|. |
80 void SetMaxSize(Container container, const gfx::Size& size); | 83 void SetMaxSize(Container container, const gfx::Size& size); |
81 | 84 |
82 // Adds the child |view| to the specified |container|. | 85 // Adds the child |view| to the specified |container|. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // to manipulate the child views during construction/destruction so this flag | 148 // to manipulate the child views during construction/destruction so this flag |
146 // is used to disable the DCHECK during construction/destruction. | 149 // is used to disable the DCHECK during construction/destruction. |
147 bool enable_hierarchy_changed_dcheck_ = false; | 150 bool enable_hierarchy_changed_dcheck_ = false; |
148 | 151 |
149 DISALLOW_COPY_AND_ASSIGN(TriView); | 152 DISALLOW_COPY_AND_ASSIGN(TriView); |
150 }; | 153 }; |
151 | 154 |
152 } // namespace ash | 155 } // namespace ash |
153 | 156 |
154 #endif // ASH_COMMON_SYSTEM_TRAY_TRI_VIEW_H_ | 157 #endif // ASH_COMMON_SYSTEM_TRAY_TRI_VIEW_H_ |
OLD | NEW |