OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_BASE_MODELS_AVATAR_MENU_ITEM_MODEL_H_ |
| 6 #define UI_BASE_MODELS_AVATAR_MENU_ITEM_MODEL_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/files/file_path.h" |
| 10 #include "base/strings/string16.h" |
| 11 #include "ui/base/ui_export.h" |
| 12 #include "ui/gfx/image/image.h" |
| 13 |
| 14 namespace ui { |
| 15 |
| 16 // Represents an item in the AvatarMenuModel. |
| 17 struct UI_EXPORT AvatarMenuItemModel { |
| 18 AvatarMenuItemModel(size_t model_index, const gfx::Image& icon); |
| 19 ~AvatarMenuItemModel(); |
| 20 |
| 21 // The icon to be displayed next to the item. |
| 22 gfx::Image icon; |
| 23 |
| 24 // Whether or not the current browser is using this profile. |
| 25 bool active; |
| 26 |
| 27 // The name of this profile. |
| 28 base::string16 name; |
| 29 |
| 30 // A string representing the sync state of the profile. |
| 31 base::string16 sync_state; |
| 32 |
| 33 // Whether or not the current profile is signed in. If true, |sync_state| is |
| 34 // expected to be the email of the signed in user. |
| 35 bool signed_in; |
| 36 |
| 37 // Whether or not the current profile requires sign-in before use. |
| 38 bool signin_required; |
| 39 |
| 40 // The index in the |profile_cache| that this Item represents. |
| 41 size_t model_index; |
| 42 |
| 43 // The path to the profile directory that this item represents. |
| 44 base::FilePath profile_path; |
| 45 }; |
| 46 |
| 47 } // namespace ui |
| 48 |
| 49 #endif // UI_BASE_MODELS_AVATAR_MENU_ITEM_MODEL_H_ |
OLD | NEW |