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