Chromium Code Reviews| Index: ui/base/models/avatar_menu_item_model.h |
| diff --git a/ui/base/models/avatar_menu_item_model.h b/ui/base/models/avatar_menu_item_model.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..14760d92dcdfe5b2fbcaac67a4690b1e3956ab22 |
| --- /dev/null |
| +++ b/ui/base/models/avatar_menu_item_model.h |
| @@ -0,0 +1,45 @@ |
| +// Copyright 2013 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 UI_BASE_MODELS_AVATAR_MENU_ITEM_MODEL_H_ |
| +#define UI_BASE_MODELS_AVATAR_MENU_ITEM_MODEL_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/strings/string16.h" |
| +#include "ui/base/ui_export.h" |
| +#include "ui/gfx/image/image.h" |
| + |
| +namespace ui { |
| + |
| +// Represents an item in the AvatarMenuModel. |
| +struct UI_EXPORT AvatarMenuItemModel { |
|
tapted
2013/07/31 05:43:53
Feeling around a bit more..... there's not really
calamity
2013/08/01 08:35:45
Hmm. I don't think this even belongs in this folde
|
| + AvatarMenuItemModel(size_t model_index, const gfx::Image& icon); |
|
tapted
2013/07/31 05:43:53
Looks like you got carried away with the indent he
calamity
2013/08/01 08:35:45
Done.
|
| + ~AvatarMenuItemModel(); |
| + |
| + // The icon to be displayed next to the item. |
| + gfx::Image icon; |
| + |
| + // Whether or not the current browser is using this profile. |
| + bool active; |
| + |
| + // The name of this profile. |
| + string16 name; |
|
tapted
2013/07/31 05:43:53
base::string16 for these I think
calamity
2013/08/01 08:35:45
Done.
|
| + |
| + // A string representing the sync state of the profile. |
| + string16 sync_state; |
| + |
| + // Whether or not the current profile is signed in. If true, |sync_state| is |
| + // expected to be the email of the signed in user. |
| + bool signed_in; |
| + |
| + // Whether or not the current profile requires sign-in before use. |
| + bool signin_required; |
| + |
| + // The index in the |profile_cache| that this Item represents. |
| + size_t model_index; |
| +}; |
| + |
| +} // namespace ui |
| + |
| +#endif // UI_BASE_MODELS_AVATAR_MENU_ITEM_MODEL_H_ |