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

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

Issue 2487603005: Adjust TriView. (Closed)
Patch Set: merge Created 4 years, 1 month 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 | « no previous file | ash/common/system/tray/tray_popup_utils.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_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/tri_view.h" 9 #include "ash/common/system/tray/tri_view.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // material design system menu row. The caller assumes ownership of the 109 // material design system menu row. The caller assumes ownership of the
110 // returned separator. 110 // returned separator.
111 static views::Separator* CreateVerticalSeparator(); 111 static views::Separator* CreateVerticalSeparator();
112 112
113 // Returns true if it is possible to open WebUI settings in a browser window, 113 // Returns true if it is possible to open WebUI settings in a browser window,
114 // i.e., the user is logged in, not on the lock screen, and not in a secondary 114 // i.e., the user is logged in, not on the lock screen, and not in a secondary
115 // account flow. 115 // account flow.
116 static bool CanOpenWebUISettings(LoginStatus status); 116 static bool CanOpenWebUISettings(LoginStatus status);
117 117
118 private: 118 private:
119 TrayPopupUtils() = delete; 119 DISALLOW_IMPLICIT_CONSTRUCTORS(TrayPopupUtils);
120 ~TrayPopupUtils() = delete;
121
122 // Configures the default size and flex value for the specified |container|
123 // of the given |tri_view|. Used by CreateDefaultRowView().
124 static void ConfigureDefaultSizeAndFlex(TriView* tri_view,
125 TriView::Container container);
126
127 // Returns the default layout manager used by CreateDefaultRowView() and
128 // ConfigureContainer() for the given |container|.
129 static std::unique_ptr<views::LayoutManager> CreateDefaultLayoutManager(
130 TriView::Container container);
131 120
132 // Returns the default border used by CreateDefaultRow() and 121 // Returns the default border used by CreateDefaultRow() and
133 // ConfigureContainer() for the given |container|. 122 // ConfigureContainer() for the given |container|.
134 static std::unique_ptr<views::Border> CreateDefaultBorder( 123 static std::unique_ptr<views::Border> CreateDefaultBorder(
135 TriView::Container container); 124 TriView::Container container);
136 }; 125 };
137 126
138 } // namespace ash 127 } // namespace ash
139 128
140 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_ 129 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_
OLDNEW
« no previous file with comments | « no previous file | ash/common/system/tray/tray_popup_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698