| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 void SetFlexForContainer(Container container, int flex); | 114 void SetFlexForContainer(Container container, int flex); |
| 115 | 115 |
| 116 // Sets the |layout_manager| used by the given |container|. | 116 // Sets the |layout_manager| used by the given |container|. |
| 117 void SetContainerLayout(Container container, | 117 void SetContainerLayout(Container container, |
| 118 std::unique_ptr<views::LayoutManager> layout_manager); | 118 std::unique_ptr<views::LayoutManager> layout_manager); |
| 119 | 119 |
| 120 protected: | 120 protected: |
| 121 // View: | 121 // View: |
| 122 void ViewHierarchyChanged( | 122 void ViewHierarchyChanged( |
| 123 const views::View::ViewHierarchyChangedDetails& details) override; | 123 const views::View::ViewHierarchyChangedDetails& details) override; |
| 124 const char* GetClassName() const override; |
| 124 | 125 |
| 125 private: | 126 private: |
| 126 friend class TriViewTest; | 127 friend class TriViewTest; |
| 127 | 128 |
| 128 // Returns the View for the given |container|. | 129 // Returns the View for the given |container|. |
| 129 views::View* GetContainer(Container container); | 130 views::View* GetContainer(Container container); |
| 130 | 131 |
| 131 // Returns the layout manager for the given |container|. | 132 // Returns the layout manager for the given |container|. |
| 132 SizeRangeLayout* GetLayoutManager(Container container); | 133 SizeRangeLayout* GetLayoutManager(Container container); |
| 133 | 134 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 144 // to manipulate the child views during construction/destruction so this flag | 145 // to manipulate the child views during construction/destruction so this flag |
| 145 // is used to disable the DCHECK during construction/destruction. | 146 // is used to disable the DCHECK during construction/destruction. |
| 146 bool enable_hierarchy_changed_dcheck_ = false; | 147 bool enable_hierarchy_changed_dcheck_ = false; |
| 147 | 148 |
| 148 DISALLOW_COPY_AND_ASSIGN(TriView); | 149 DISALLOW_COPY_AND_ASSIGN(TriView); |
| 149 }; | 150 }; |
| 150 | 151 |
| 151 } // namespace ash | 152 } // namespace ash |
| 152 | 153 |
| 153 #endif // ASH_COMMON_SYSTEM_TRAY_TRI_VIEW_H_ | 154 #endif // ASH_COMMON_SYSTEM_TRAY_TRI_VIEW_H_ |
| OLD | NEW |