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_NAVIGATOR_H_ | 5 #ifndef ASH_LAUNCHER_LAUNCHER_NAVIGATOR_H_ |
6 #define ASH_LAUNCHER_LAUNCHER_NAVIGATOR_H_ | 6 #define ASH_LAUNCHER_LAUNCHER_NAVIGATOR_H_ |
7 #pragma once | |
8 | 7 |
9 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
10 #include "ash/launcher/launcher_types.h" | 9 #include "ash/launcher/launcher_types.h" |
11 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
12 | 11 |
13 namespace ash { | 12 namespace ash { |
14 | 13 |
15 class LauncherModel; | 14 class LauncherModel; |
16 | 15 |
17 // Scans the current launcher item and returns the index of the launcher item | 16 // Scans the current launcher item and returns the index of the launcher item |
18 // which should be activated next for the specified |direction|. Returns -1 | 17 // which should be activated next for the specified |direction|. Returns -1 |
19 // if fails to find such item. | 18 // if fails to find such item. |
20 ASH_EXPORT int GetNextActivatedItemIndex(const LauncherModel& model, | 19 ASH_EXPORT int GetNextActivatedItemIndex(const LauncherModel& model, |
21 CycleDirection direction); | 20 CycleDirection direction); |
22 | 21 |
23 } // namespace ash | 22 } // namespace ash |
24 | 23 |
25 #endif // ASH_LAUNCHER_LAUNCHER_NAVIGATOR_H_ | 24 #endif // ASH_LAUNCHER_LAUNCHER_NAVIGATOR_H_ |
OLD | NEW |