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

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: Yet another merge 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..cd9d1c9dfe5fd350b73918729ec98053fe011477
--- /dev/null
+++ b/chrome/browser/chromeos/login/screens/user_selection_screen.h
@@ -0,0 +1,43 @@
+// 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;
+
+// This class represents User Selection screen: user pod-based login screen.
+class UserSelectionScreen {
+ public:
+ UserSelectionScreen();
+ virtual ~UserSelectionScreen();
+
+ void SetHandler(LoginDisplayWebUIHandler* handler);
+
+ void Init(const UserList& users);
+ const UserList& GetUsers() const;
+ void OnUserImageChanged(const User& user);
+ void OnBeforeUserRemoved(const std::string& username);
+ void OnUserRemoved(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_
« no previous file with comments | « chrome/browser/chromeos/login/screens/gaia_screen.cc ('k') | chrome/browser/chromeos/login/screens/user_selection_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698