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_SYSTEM_TRAY_TRI_VIEW_H_ | 5 #ifndef ASH_SYSTEM_TRAY_TRI_VIEW_H_ |
6 #define ASH_SYSTEM_TRAY_TRI_VIEW_H_ | 6 #define ASH_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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 // Get the minimum size for the given |container|. | 79 // Get the minimum size for the given |container|. |
80 gfx::Size GetMinSize(Container container); | 80 gfx::Size GetMinSize(Container container); |
81 | 81 |
82 // Set the maximum size for the given |container|. | 82 // Set the maximum size for the given |container|. |
83 void SetMaxSize(Container container, const gfx::Size& size); | 83 void SetMaxSize(Container container, const gfx::Size& size); |
84 | 84 |
85 // Adds the child |view| to the specified |container|. | 85 // Adds the child |view| to the specified |container|. |
86 void AddView(Container container, views::View* view); | 86 void AddView(Container container, views::View* view); |
87 | 87 |
| 88 // Remove the child |view| from the specified |container|. |
| 89 void RemoveView(Container container, views::View* view); |
| 90 |
88 // Removes all the children from the specified |container|. If | 91 // Removes all the children from the specified |container|. If |
89 // |delete_children| is true, the views are deleted, unless marked as not | 92 // |delete_children| is true, the views are deleted, unless marked as not |
90 // parent owned. | 93 // parent owned. |
91 void RemoveAllChildren(Container container, bool delete_children); | 94 void RemoveAllChildren(Container container, bool delete_children); |
92 | 95 |
93 // During layout the |insets| are applied to the host views entire space | 96 // During layout the |insets| are applied to the host views entire space |
94 // before allocating the remaining space to the container views. | 97 // before allocating the remaining space to the container views. |
95 void SetInsets(const gfx::Insets& insets); | 98 void SetInsets(const gfx::Insets& insets); |
96 | 99 |
97 // Sets the border for the given |container|. | 100 // Sets the border for the given |container|. |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 // to manipulate the child views during construction/destruction so this flag | 151 // to manipulate the child views during construction/destruction so this flag |
149 // is used to disable the DCHECK during construction/destruction. | 152 // is used to disable the DCHECK during construction/destruction. |
150 bool enable_hierarchy_changed_dcheck_ = false; | 153 bool enable_hierarchy_changed_dcheck_ = false; |
151 | 154 |
152 DISALLOW_COPY_AND_ASSIGN(TriView); | 155 DISALLOW_COPY_AND_ASSIGN(TriView); |
153 }; | 156 }; |
154 | 157 |
155 } // namespace ash | 158 } // namespace ash |
156 | 159 |
157 #endif // ASH_SYSTEM_TRAY_TRI_VIEW_H_ | 160 #endif // ASH_SYSTEM_TRAY_TRI_VIEW_H_ |
OLD | NEW |