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 |