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

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

Issue 1454153002: Revert of This CL replaces e-mail with AccountId on user selection screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "components/proximity_auth/screenlock_bridge.h" 13 #include "components/proximity_auth/screenlock_bridge.h"
14 14
15 class AccountId;
16
17 namespace chromeos { 15 namespace chromeos {
18 16
19 class UserBoardModel; 17 class UserBoardModel;
20 18
21 // Interface between user board screen and its representation, either WebUI 19 // Interface between user board screen and its representation, either WebUI
22 // or Views one. 20 // or Views one.
23 class UserBoardView { 21 class UserBoardView {
24 public: 22 public:
25 virtual ~UserBoardView() {} 23 virtual ~UserBoardView() {}
26 24
27 virtual void Bind(UserBoardModel& model) = 0; 25 virtual void Bind(UserBoardModel& model) = 0;
28 virtual void Unbind() = 0; 26 virtual void Unbind() = 0;
29 27
30 virtual void SetPublicSessionDisplayName(const AccountId& account_id, 28 virtual void SetPublicSessionDisplayName(const std::string& user_id,
31 const std::string& display_name) = 0; 29 const std::string& display_name) = 0;
32 virtual void SetPublicSessionLocales(const AccountId& account_id, 30 virtual void SetPublicSessionLocales(const std::string& user_id,
33 scoped_ptr<base::ListValue> locales, 31 scoped_ptr<base::ListValue> locales,
34 const std::string& default_locale, 32 const std::string& default_locale,
35 bool multiple_recommended_locales) = 0; 33 bool multiple_recommended_locales) = 0;
36 virtual void ShowBannerMessage(const base::string16& message) = 0; 34 virtual void ShowBannerMessage(const base::string16& message) = 0;
37 virtual void ShowUserPodCustomIcon(const AccountId& account_id, 35 virtual void ShowUserPodCustomIcon(const std::string& user_id,
38 const base::DictionaryValue& icon) = 0; 36 const base::DictionaryValue& icon) = 0;
39 virtual void HideUserPodCustomIcon(const AccountId& account_id) = 0; 37 virtual void HideUserPodCustomIcon(const std::string& user_id) = 0;
40 virtual void SetAuthType( 38 virtual void SetAuthType(
41 const AccountId& account_id, 39 const std::string& user_id,
42 proximity_auth::ScreenlockBridge::LockHandler::AuthType auth_type, 40 proximity_auth::ScreenlockBridge::LockHandler::AuthType auth_type,
43 const base::string16& initial_value) = 0; 41 const base::string16& initial_value) = 0;
44 }; 42 };
45 43
46 } // namespace chromeos 44 } // namespace chromeos
47 45
48 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_VIEWS_USER_BOARD_VIEW_H_ 46 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_VIEWS_USER_BOARD_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/models/user_board_model.h ('k') | chrome/browser/chromeos/login/ui/webui_login_display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698