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

Side by Side Diff: ash/common/system/tray/tri_view.h

Issue 2530763002: [ash-md] Adjusts layout of lists with sticky header rows to match specs (Closed)
Patch Set: [ash-md] Adjusts layout of lists with sticky header rows to match specs (cleanup of shill) 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 | « ash/common/system/tray/tray_popup_utils.cc ('k') | ash/common/system/tray/tri_view.cc » ('j') | 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 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
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
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_
OLDNEW
« no previous file with comments | « ash/common/system/tray/tray_popup_utils.cc ('k') | ash/common/system/tray/tri_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698