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

Unified Diff: ash/shelf/shelf_util.h

Issue 27369004: Change GetBrowserItemIndex() to GetLauncherItemIndexForType() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 2 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 | « no previous file | ash/shelf/shelf_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_util.h
diff --git a/ash/shelf/shelf_util.h b/ash/shelf/shelf_util.h
index daf6c0f0e78eb209306f844b49464c892706e36d..7eef1abf826e746c14e3eb21bb00bb37efcfaad1 100644
--- a/ash/shelf/shelf_util.h
+++ b/ash/shelf/shelf_util.h
@@ -6,13 +6,19 @@
#define ASH_SHELF_SHELF_UTIL_H_
#include "ash/ash_export.h"
+#include "ash/launcher/launcher_types.h"
sky 2013/10/22 23:33:52 Sorry, one more. I think this should be in ash/lau
simonhong_ 2013/10/23 00:13:06 Moved from shelf/shelf_util to launcher/launcher_m
namespace ash {
class LauncherModel;
-// Return the index of the browser item from a given |launcher_model|.
-ASH_EXPORT int GetBrowserItemIndex(const LauncherModel& launcher_model);
+// Return the index of the |type| from a given |launcher_model|.
+// Note:
+// * If there are many items for |type| in the |launcher_model|, an index of
+// first item will be returned.
+// * If there is no item for |type|, -1 will be returned.
+ASH_EXPORT int GetLauncherItemIndexForType(LauncherItemType type,
+ const LauncherModel& launcher_model);
} // namespace ash
« no previous file with comments | « no previous file | ash/shelf/shelf_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698