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

Unified Diff: ash/shelf/shelf_navigator.cc

Issue 152223002: Renames LauncherID, LauncherItem and LauncherItems... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: OWNERS Created 6 years, 11 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/shelf/shelf_model_unittest.cc ('k') | ash/shelf/shelf_navigator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_navigator.cc
diff --git a/ash/shelf/shelf_navigator.cc b/ash/shelf/shelf_navigator.cc
index 9530b3149a5e49749a7ee15b0420662ca37d1693..7a9310c5531406e7e28a5d15540f4597d7edbbcb 100644
--- a/ash/shelf/shelf_navigator.cc
+++ b/ash/shelf/shelf_navigator.cc
@@ -23,13 +23,13 @@ bool ShouldSkip(ShelfItemType type) {
int GetNextActivatedItemIndex(const ShelfModel& model,
CycleDirection direction) {
- const LauncherItems& items = model.items();
+ const ShelfItems& items = model.items();
int item_count = model.item_count();
int current_index = -1;
int first_running = -1;
for (int i = 0; i < item_count; ++i) {
- const LauncherItem& item = items[i];
+ const ShelfItem& item = items[i];
if (ShouldSkip(item.type))
continue;
@@ -55,7 +55,7 @@ int GetNextActivatedItemIndex(const ShelfModel& model,
// Find the next item and activate it.
for (int i = (current_index + step + item_count) % item_count;
i != current_index; i = (i + step + item_count) % item_count) {
- const LauncherItem& item = items[i];
+ const ShelfItem& item = items[i];
if (ShouldSkip(item.type))
continue;
« no previous file with comments | « ash/shelf/shelf_model_unittest.cc ('k') | ash/shelf/shelf_navigator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698