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

Unified Diff: chrome/browser/chromeos/login/screens/user_selection_screen.h

Issue 293613003: ChromeOS login webui refactoring: split user selection/gaia login screens. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/screens/user_selection_screen.h
diff --git a/chrome/browser/chromeos/login/screens/user_selection_screen.h b/chrome/browser/chromeos/login/screens/user_selection_screen.h
new file mode 100644
index 0000000000000000000000000000000000000000..d806b57dc551c5fe97869dce5b1bba5df8a78a36
--- /dev/null
+++ b/chrome/browser/chromeos/login/screens/user_selection_screen.h
@@ -0,0 +1,46 @@
+// Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_
+
+#include <string>
+
+#include "base/bind.h"
+#include "base/compiler_specific.h"
+#include "chrome/browser/chromeos/login/users/user.h"
+
+namespace chromeos {
+
+class LoginDisplayWebUIHandler;
+
+class UserSelectionScreen {
Nikita (slow) 2014/05/20 12:14:29 nit: Comment
Nikita (slow) 2014/05/20 12:14:29 Are you planning to define something like UserSele
Denis Kuznetsov (DE-MUC) 2014/05/20 13:19:00 Done.
Denis Kuznetsov (DE-MUC) 2014/05/20 13:19:00 Done.
+ public:
+ UserSelectionScreen();
+ virtual ~UserSelectionScreen();
+
+ virtual void SetHandler(LoginDisplayWebUIHandler* handler);
+
+ virtual void Init(const UserList& users);
Nikita (slow) 2014/05/20 12:14:29 Please remove virtual for now since there's no int
Denis Kuznetsov (DE-MUC) 2014/05/20 13:19:00 Done.
+ virtual const UserList& GetUsers() const;
+ virtual void OnUserImageChanged(const User& user);
+ virtual void OnBeforeUserRemoved(const std::string& username);
+ virtual void OnUserRemoved(const std::string& username);
+ virtual void ShowUserPodButton(const std::string& username,
+ const std::string& iconURL,
+ const base::Closure& click_callback);
+ virtual void HideUserPodButton(const std::string& username);
+
+ private:
+ LoginDisplayWebUIHandler* handler_;
+
+ // Set of Users that are visible.
+ UserList users_;
+
+ DISALLOW_COPY_AND_ASSIGN(UserSelectionScreen);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_

Powered by Google App Engine
This is Rietveld 408576698