OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_SHELF_SHELF_UTIL_H_ | 5 #ifndef ASH_SHELF_SHELF_UTIL_H_ |
6 #define ASH_SHELF_SHELF_UTIL_H_ | 6 #define ASH_SHELF_SHELF_UTIL_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #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
| |
9 | 10 |
10 namespace ash { | 11 namespace ash { |
11 | 12 |
12 class LauncherModel; | 13 class LauncherModel; |
13 | 14 |
14 // Return the index of the browser item from a given |launcher_model|. | 15 // Return the index of the |type| from a given |launcher_model|. |
15 ASH_EXPORT int GetBrowserItemIndex(const LauncherModel& launcher_model); | 16 // Note: |
17 // * If there are many items for |type| in the |launcher_model|, an index of | |
18 // first item will be returned. | |
19 // * If there is no item for |type|, -1 will be returned. | |
20 ASH_EXPORT int GetLauncherItemIndexForType(LauncherItemType type, | |
21 const LauncherModel& launcher_model); | |
16 | 22 |
17 } // namespace ash | 23 } // namespace ash |
18 | 24 |
19 #endif // ASH_SHELF_SHELF_UTIL_H_ | 25 #endif // ASH_SHELF_SHELF_UTIL_H_ |
OLD | NEW |