summaryrefslogtreecommitdiffstats
path: root/ash/shelf/shelf_navigator.h
blob: 03bc155f7472778f9d369e5d09abd4294e44bbeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_SHELF_SHELF_NAVIGATOR_H_
#define ASH_SHELF_SHELF_NAVIGATOR_H_

#include "ash/ash_export.h"
#include "ash/launcher/launcher_types.h"

namespace ash {

class LauncherModel;

// Scans the current shelf item and returns the index of the shelf item which
// should be activated next for the specified |direction|. Returns -1 if fails
// to find such item.
ASH_EXPORT int GetNextActivatedItemIndex(const LauncherModel& model,
                                         CycleDirection direction);

}  // namespace ash

#endif  // ASH_SHELF_SHELF_NAVIGATOR_H_