| 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_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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // material design system menu row. The caller assumes ownership of the | 83 // material design system menu row. The caller assumes ownership of the |
| 84 // returned separator. | 84 // returned separator. |
| 85 static views::Separator* CreateVerticalSeparator(); | 85 static views::Separator* CreateVerticalSeparator(); |
| 86 | 86 |
| 87 // Returns true if it is possible to open WebUI settings in a browser window, | 87 // Returns true if it is possible to open WebUI settings in a browser window, |
| 88 // i.e., the user is logged in, not on the lock screen, and not in a secondary | 88 // i.e., the user is logged in, not on the lock screen, and not in a secondary |
| 89 // account flow. | 89 // account flow. |
| 90 static bool CanOpenWebUISettings(LoginStatus status); | 90 static bool CanOpenWebUISettings(LoginStatus status); |
| 91 | 91 |
| 92 private: | 92 private: |
| 93 TrayPopupUtils() = delete; | 93 DISALLOW_IMPLICIT_CONSTRUCTORS(TrayPopupUtils); |
| 94 ~TrayPopupUtils() = delete; | |
| 95 | |
| 96 // Configures the specified |container| view with the default layout. Used by | |
| 97 // CreateDefaultRowView(). | |
| 98 static void ConfigureDefaultLayout(TriView* tri_view, | |
| 99 TriView::Container container); | |
| 100 }; | 94 }; |
| 101 | 95 |
| 102 } // namespace ash | 96 } // namespace ash |
| 103 | 97 |
| 104 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_ | 98 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_ |
| OLD | NEW |