| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ASH_SHELF_SHELF_MODEL_UTIL_H_ | |
| 6 #define ASH_SHELF_SHELF_MODEL_UTIL_H_ | |
| 7 | |
| 8 #include "ash/ash_export.h" | |
| 9 #include "ash/launcher/launcher_types.h" | |
| 10 | |
| 11 namespace ash { | |
| 12 | |
| 13 class ShelfModel; | |
| 14 | |
| 15 // Return the index of the |type| from a given |shelf_model|. | |
| 16 // Note: | |
| 17 // * If there are many items for |type| in the |shelf_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 GetShelfItemIndexForType(LauncherItemType type, | |
| 21 const ShelfModel& shelf_model); | |
| 22 | |
| 23 } // namespace ash | |
| 24 | |
| 25 #endif // ASH_SHELF_SHELF_MODEL_UTIL_H_ | |
| OLD | NEW |