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

Side by Side Diff: ash/common/system/tray/tray_popup_utils.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 (rebased) 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
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_TRAY_POPUP_UTILS_H_ 5 #ifndef ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_
6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_ 6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_
7 7
8 #include "ash/common/login_status.h" 8 #include "ash/common/login_status.h"
9 #include "ash/common/system/tray/tray_popup_ink_drop_style.h" 9 #include "ash/common/system/tray/tray_popup_ink_drop_style.h"
10 #include "ash/common/system/tray/tri_view.h" 10 #include "ash/common/system/tray/tri_view.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 static std::unique_ptr<views::InkDropMask> CreateInkDropMask( 161 static std::unique_ptr<views::InkDropMask> CreateInkDropMask(
162 TrayPopupInkDropStyle ink_drop_style, 162 TrayPopupInkDropStyle ink_drop_style,
163 const views::View* host); 163 const views::View* host);
164 164
165 // Creates and returns a horizontal separator line to be drawn between rows 165 // Creates and returns a horizontal separator line to be drawn between rows
166 // in a detailed view. If |left_inset| is true, then the separator is inset on 166 // in a detailed view. If |left_inset| is true, then the separator is inset on
167 // the left by the width normally occupied by an icon. Caller assumes 167 // the left by the width normally occupied by an icon. Caller assumes
168 // ownership of the returned separator. 168 // ownership of the returned separator.
169 static views::Separator* CreateListItemSeparator(bool left_inset); 169 static views::Separator* CreateListItemSeparator(bool left_inset);
170 170
171 // Creates and returns a horizontal separator line to be drawn between rows
172 // in a detailed view above the header rows. Caller assumes ownership of the
tdanderson 2016/11/24 23:37:54 nit: "above the sub-header rows". I would also pre
varkha 2016/11/28 17:14:39 Done.
173 // returned separator.
174 static views::Separator* CreateListHeaderSeparator();
175
171 // Returns true if it is possible to open WebUI settings in a browser window, 176 // Returns true if it is possible to open WebUI settings in a browser window,
172 // i.e., the user is logged in, not on the lock screen, and not in a secondary 177 // i.e., the user is logged in, not on the lock screen, and not in a secondary
173 // account flow. 178 // account flow.
174 static bool CanOpenWebUISettings(LoginStatus status); 179 static bool CanOpenWebUISettings(LoginStatus status);
175 180
176 private: 181 private:
177 // Returns the effective ink drop insets for |host| according to the 182 // Returns the effective ink drop insets for |host| according to the
178 // |ink_drop_style|. 183 // |ink_drop_style|.
179 static gfx::Insets GetInkDropInsets(TrayPopupInkDropStyle ink_drop_style); 184 static gfx::Insets GetInkDropInsets(TrayPopupInkDropStyle ink_drop_style);
180 185
181 // Returns the effective ink drop bounds for |host| according to the 186 // Returns the effective ink drop bounds for |host| according to the
182 // |ink_drop_style|. 187 // |ink_drop_style|.
183 static gfx::Rect GetInkDropBounds(TrayPopupInkDropStyle ink_drop_style, 188 static gfx::Rect GetInkDropBounds(TrayPopupInkDropStyle ink_drop_style,
184 const views::View* host); 189 const views::View* host);
185 190
186 DISALLOW_IMPLICIT_CONSTRUCTORS(TrayPopupUtils); 191 DISALLOW_IMPLICIT_CONSTRUCTORS(TrayPopupUtils);
187 }; 192 };
188 193
189 } // namespace ash 194 } // namespace ash
190 195
191 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_ 196 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698