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

Side by Side Diff: chrome/browser/chromeos/login/ui/views/user_board_view.h

Issue 2713513009: cros: Break BaseScreenHandler into two classes. (Closed)
Patch Set: Add comments, fix compile Created 3 years, 9 months 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_CHROMEOS_LOGIN_UI_VIEWS_USER_BOARD_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_VIEWS_USER_BOARD_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_VIEWS_USER_BOARD_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_VIEWS_USER_BOARD_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/chromeos/login/oobe_screen.h"
14 #include "components/proximity_auth/screenlock_bridge.h" 15 #include "components/proximity_auth/screenlock_bridge.h"
15 16
16 class AccountId; 17 class AccountId;
17 18
18 namespace chromeos { 19 namespace chromeos {
19 20
20 class UserSelectionScreen; 21 class UserSelectionScreen;
21 22
22 // TODO(jdufault): Rename UserBoardView to UserSelectionView. See 23 // TODO(jdufault): Rename UserBoardView to UserSelectionView. See
23 // crbug.com/672142. 24 // crbug.com/672142.
24 25
25 // Interface between user board screen and its representation, either WebUI 26 // Interface between user board screen and its representation, either WebUI
26 // or Views one. 27 // or Views one.
27 class UserBoardView { 28 class UserBoardView {
28 public: 29 public:
30 constexpr static OobeScreen kScreenId = OobeScreen::SCREEN_USER_SELECTION;
31
29 virtual ~UserBoardView() {} 32 virtual ~UserBoardView() {}
30 33
31 virtual void Bind(UserSelectionScreen* screen) = 0; 34 virtual void Bind(UserSelectionScreen* screen) = 0;
32 virtual void Unbind() = 0; 35 virtual void Unbind() = 0;
33 36
34 virtual base::WeakPtr<UserBoardView> GetWeakPtr() = 0; 37 virtual base::WeakPtr<UserBoardView> GetWeakPtr() = 0;
35 38
36 virtual void SetPublicSessionDisplayName(const AccountId& account_id, 39 virtual void SetPublicSessionDisplayName(const AccountId& account_id,
37 const std::string& display_name) = 0; 40 const std::string& display_name) = 0;
38 virtual void SetPublicSessionLocales(const AccountId& account_id, 41 virtual void SetPublicSessionLocales(const AccountId& account_id,
39 std::unique_ptr<base::ListValue> locales, 42 std::unique_ptr<base::ListValue> locales,
40 const std::string& default_locale, 43 const std::string& default_locale,
41 bool multiple_recommended_locales) = 0; 44 bool multiple_recommended_locales) = 0;
42 virtual void ShowBannerMessage(const base::string16& message) = 0; 45 virtual void ShowBannerMessage(const base::string16& message) = 0;
43 virtual void ShowUserPodCustomIcon(const AccountId& account_id, 46 virtual void ShowUserPodCustomIcon(const AccountId& account_id,
44 const base::DictionaryValue& icon) = 0; 47 const base::DictionaryValue& icon) = 0;
45 virtual void HideUserPodCustomIcon(const AccountId& account_id) = 0; 48 virtual void HideUserPodCustomIcon(const AccountId& account_id) = 0;
46 virtual void SetAuthType( 49 virtual void SetAuthType(
47 const AccountId& account_id, 50 const AccountId& account_id,
48 proximity_auth::ScreenlockBridge::LockHandler::AuthType auth_type, 51 proximity_auth::ScreenlockBridge::LockHandler::AuthType auth_type,
49 const base::string16& initial_value) = 0; 52 const base::string16& initial_value) = 0;
50 }; 53 };
51 54
52 } // namespace chromeos 55 } // namespace chromeos
53 56
54 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_VIEWS_USER_BOARD_VIEW_H_ 57 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_VIEWS_USER_BOARD_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/wrong_hwid_screen_view.h ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698