Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LAUNCHER_LAUNCHER_UTIL_H_ | 5 #ifndef ASH_LAUNCHER_LAUNCHER_UTIL_H_ |
| 6 #define ASH_LAUNCHER_LAUNCHER_UTIL_H_ | 6 #define ASH_LAUNCHER_LAUNCHER_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 class LauncherModel; | 12 class LauncherModel; |
| 12 | 13 |
| 13 namespace launcher { | 14 namespace launcher { |
| 14 | 15 |
| 15 // Return the index of the browser item from a given |launcher_model|. | 16 // Return the index of the browser item from a given |launcher_model|. |
| 16 ASH_EXPORT int GetBrowserItemIndex(const LauncherModel& launcher_model); | 17 ASH_EXPORT int GetBrowserItemIndex(const LauncherModel& launcher_model); |
| 17 | 18 |
| 19 // Return the id of the browser item from a given |launcher_model|. | |
| 20 ASH_EXPORT ash::LauncherID GetBrowserItemID( | |
|
sky
2013/09/11 01:42:57
How about a single method that takes the type?
simonhong_
2013/09/11 09:05:26
Done.
| |
| 21 const LauncherModel& launcher_model); | |
| 22 | |
| 23 // Return the id of the app list item from a given |launcher_model|. | |
| 24 ASH_EXPORT ash::LauncherID GetAppListItemID( | |
| 25 const LauncherModel& launcher_model); | |
| 26 | |
| 18 } // namespace launcher | 27 } // namespace launcher |
| 19 } // namespace ash | 28 } // namespace ash |
| 20 | 29 |
| 21 #endif // ASH_LAUNCHER_LAUNCHER_UTIL_H_ | 30 #endif // ASH_LAUNCHER_LAUNCHER_UTIL_H_ |
| OLD | NEW |