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

Unified Diff: ash/launcher/launcher_model.h

Issue 10829268: chromeos: Sync animation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit_tests crash + rebase Created 8 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 | « ash/launcher/launcher_button.cc ('k') | ash/launcher/launcher_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_model.h
diff --git a/ash/launcher/launcher_model.h b/ash/launcher/launcher_model.h
index d4cd05eb367b522fb15c1bca1c0a95e3b2a65f36..a733a1b6ba4e1f380e416a8f074ebc91056ead6f 100644
--- a/ash/launcher/launcher_model.h
+++ b/ash/launcher/launcher_model.h
@@ -22,6 +22,12 @@ class LauncherModelObserver;
// Model used by LauncherView.
class ASH_EXPORT LauncherModel {
public:
+ enum Status {
+ STATUS_NORMAL,
+ // A status that indicates apps are syncing/loading.
+ STATUS_LOADING,
+ };
+
LauncherModel();
~LauncherModel();
@@ -56,6 +62,9 @@ class ASH_EXPORT LauncherModel {
const LauncherItems& items() const { return items_; }
int item_count() const { return static_cast<int>(items_.size()); }
+ void SetStatus(Status status);
+ Status status() const { return status_; }
+
void AddObserver(LauncherModelObserver* observer);
void RemoveObserver(LauncherModelObserver* observer);
@@ -68,6 +77,7 @@ class ASH_EXPORT LauncherModel {
// ID assigned to the next item.
LauncherID next_id_;
LauncherItems items_;
+ Status status_;
ObserverList<LauncherModelObserver> observers_;
DISALLOW_COPY_AND_ASSIGN(LauncherModel);
« no previous file with comments | « ash/launcher/launcher_button.cc ('k') | ash/launcher/launcher_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698