| 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" |
| 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 // |type| should be either TYPE_BROWSER_SHORTCUT or TYPE_APP_LIST. |
| 17 ASH_EXPORT int GetLauncherItemIndexForType(LauncherItemType type, |
| 18 const LauncherModel& launcher_model); |
| 16 | 19 |
| 17 } // namespace ash | 20 } // namespace ash |
| 18 | 21 |
| 19 #endif // ASH_SHELF_SHELF_UTIL_H_ | 22 #endif // ASH_SHELF_SHELF_UTIL_H_ |
| OLD | NEW |