12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- // Copyright 2019 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- #ifndef ASH_SYSTEM_UNIFIED_USER_CHOOSER_DETAILED_VIEW_CONTROLLER_H_
- #define ASH_SYSTEM_UNIFIED_USER_CHOOSER_DETAILED_VIEW_CONTROLLER_H_
- #include "ash/ash_export.h"
- #include "ash/system/unified/detailed_view_controller.h"
- namespace ash {
- class UnifiedSystemTrayController;
- // Controller of the user chooser detailed view (used for multi-user sign-in) in
- // UnifiedSystemTray.
- class ASH_EXPORT UserChooserDetailedViewController
- : public DetailedViewController {
- public:
- explicit UserChooserDetailedViewController(
- UnifiedSystemTrayController* tray_controller);
- UserChooserDetailedViewController(const UserChooserDetailedViewController&) =
- delete;
- UserChooserDetailedViewController& operator=(
- const UserChooserDetailedViewController&) = delete;
- ~UserChooserDetailedViewController() override;
- // Return true if user chooser is enabled. Called from the view.
- static bool IsUserChooserEnabled();
- // Transitions back from the detailed view to the main view.
- void TransitionToMainView();
- // Switch the active user to |user_index|. Called from the view.
- void HandleUserSwitch(int user_index);
- // Show multi profile login UI. Called from the view.
- void HandleAddUserAction();
- // DetailedViewController:
- views::View* CreateView() override;
- std::u16string GetAccessibleName() const override;
- private:
- UnifiedSystemTrayController* tray_controller_;
- };
- } // namespace ash
- #endif // ASH_SYSTEM_UNIFIED_USER_CHOOSER_DETAILED_VIEW_CONTROLLER_H_
|