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

Side by Side Diff: chrome/browser/chromeos/login/users/user.h

Issue 402133003: [cros, user_manager] Move default user images constants and helper functions out of src/chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-format Created 6 years, 5 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 | Annotate | Revision Log
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_USERS_USER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "components/user_manager/user_image/user_image.h" 13 #include "components/user_manager/user_image/user_image.h"
14 #include "components/user_manager/user_info.h" 14 #include "components/user_manager/user_info.h"
15 #include "components/user_manager/user_type.h" 15 #include "components/user_manager/user_type.h"
16 #include "third_party/skia/include/core/SkBitmap.h" 16 #include "third_party/skia/include/core/SkBitmap.h"
17 #include "ui/gfx/image/image_skia.h" 17 #include "ui/gfx/image/image_skia.h"
18 18
19 namespace chromeos { 19 namespace chromeos {
20 20
21 extern const int kDefaultImagesCount;
22
23 // A class representing information about a previously logged in user. 21 // A class representing information about a previously logged in user.
24 // Each user has a canonical email (username), returned by |email()| and 22 // Each user has a canonical email (username), returned by |email()| and
25 // may have a different displayed email (in the raw form as entered by user), 23 // may have a different displayed email (in the raw form as entered by user),
26 // returned by |displayed_email()|. 24 // returned by |displayed_email()|.
27 // Displayed emails are for use in UI only, anywhere else users must be referred 25 // Displayed emails are for use in UI only, anywhere else users must be referred
28 // to by |email()|. 26 // to by |email()|.
29 class User : public user_manager::UserInfo { 27 class User : public user_manager::UserInfo {
30 public: 28 public:
31 // User OAuth token status according to the last check. 29 // User OAuth token status according to the last check.
32 // Please note that enum values 1 and 2 were used for OAuth1 status and are 30 // Please note that enum values 1 and 2 were used for OAuth1 status and are
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 258
261 DISALLOW_COPY_AND_ASSIGN(User); 259 DISALLOW_COPY_AND_ASSIGN(User);
262 }; 260 };
263 261
264 // List of known users. 262 // List of known users.
265 typedef std::vector<User*> UserList; 263 typedef std::vector<User*> UserList;
266 264
267 } // namespace chromeos 265 } // namespace chromeos
268 266
269 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_H_ 267 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/users/avatar/user_image_sync_observer.cc ('k') | chrome/browser/chromeos/login/users/user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698