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

Unified Diff: ash/shelf/shelf_model.h

Issue 71653003: ash: Rename LauncherModel to ShelfModel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chrome changes Created 7 years, 1 month 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/shelf/overflow_button.h ('k') | ash/shelf/shelf_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_model.h
diff --git a/ash/launcher/launcher_model.h b/ash/shelf/shelf_model.h
similarity index 89%
rename from ash/launcher/launcher_model.h
rename to ash/shelf/shelf_model.h
index 2845fb0df877176b82a709190873c6e4a322e895..e6e9002953a9771d876b207f21f252e00467669e 100644
--- a/ash/launcher/launcher_model.h
+++ b/ash/shelf/shelf_model.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ASH_LAUNCHER_LAUNCHER_MODEL_H_
-#define ASH_LAUNCHER_LAUNCHER_MODEL_H_
+#ifndef ASH_SHELF_SHELF_MODEL_H_
+#define ASH_SHELF_SHELF_MODEL_H_
#include "ash/ash_export.h"
#include "ash/launcher/launcher_types.h"
@@ -15,7 +15,7 @@ namespace ash {
class ShelfModelObserver;
// Model used by ShelfView.
-class ASH_EXPORT LauncherModel {
+class ASH_EXPORT ShelfModel {
public:
enum Status {
STATUS_NORMAL,
@@ -23,8 +23,8 @@ class ASH_EXPORT LauncherModel {
STATUS_LOADING,
};
- LauncherModel();
- ~LauncherModel();
+ ShelfModel();
+ ~ShelfModel();
// Adds a new item to the model. Returns the resulting index.
int Add(const LauncherItem& item);
@@ -54,7 +54,7 @@ class ASH_EXPORT LauncherModel {
// Returns the id assigned to the next item added.
LauncherID next_id() const { return next_id_; }
- // Returns a reserved id which will not be used by the |LauncherModel|.
+ // Returns a reserved id which will not be used by the |ShelfModel|.
LauncherID reserve_external_id() { return next_id_++; }
// Returns an iterator into items() for the item with the specified id, or
@@ -83,9 +83,9 @@ class ASH_EXPORT LauncherModel {
Status status_;
ObserverList<ShelfModelObserver> observers_;
- DISALLOW_COPY_AND_ASSIGN(LauncherModel);
+ DISALLOW_COPY_AND_ASSIGN(ShelfModel);
};
} // namespace ash
-#endif // ASH_LAUNCHER_LAUNCHER_MODEL_H_
+#endif // ASH_SHELF_SHELF_MODEL_H_
« no previous file with comments | « ash/shelf/overflow_button.h ('k') | ash/shelf/shelf_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698