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

Unified Diff: ui/base/profile_selector/avatar_menu_item_model.h

Issue 22597004: Move AvatarMenuModel::Item into ui/base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@le_refactor_gigante_2
Patch Set: Created 7 years, 4 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
« no previous file with comments | « chrome/browser/ui/views/profile_chooser_view.cc ('k') | ui/base/profile_selector/avatar_menu_item_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/profile_selector/avatar_menu_item_model.h
diff --git a/ui/base/profile_selector/avatar_menu_item_model.h b/ui/base/profile_selector/avatar_menu_item_model.h
new file mode 100644
index 0000000000000000000000000000000000000000..4bffbe51f92577da2d97e544f8d082da7286dd08
--- /dev/null
+++ b/ui/base/profile_selector/avatar_menu_item_model.h
@@ -0,0 +1,49 @@
+// 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_PROFILE_SELECTOR_AVATAR_MENU_ITEM_MODEL_H_
+#define UI_BASE_PROFILE_SELECTOR_AVATAR_MENU_ITEM_MODEL_H_
+
+#include "base/basictypes.h"
+#include "base/files/file_path.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 {
+ AvatarMenuItemModel(size_t model_index, const gfx::Image& icon);
+ ~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.
+ base::string16 name;
+
+ // A string representing the sync state of the profile.
+ base::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;
+
+ // The path to the profile directory that this item represents.
+ base::FilePath profile_path;
+};
+
+} // namespace ui
+
+#endif // UI_BASE_PROFILE_SELECTOR_AVATAR_MENU_ITEM_MODEL_H_
« no previous file with comments | « chrome/browser/ui/views/profile_chooser_view.cc ('k') | ui/base/profile_selector/avatar_menu_item_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698