summaryrefslogtreecommitdiff
path: root/chromium/ash/launcher/launcher_navigator.h
blob: f3b338f20ed15a19387596bf080d3f4f3ab3daa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2012 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_LAUNCHER_LAUNCHER_NAVIGATOR_H_
#define ASH_LAUNCHER_LAUNCHER_NAVIGATOR_H_

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

namespace ash {

class LauncherModel;

// Scans the current launcher item and returns the index of the launcher 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_LAUNCHER_LAUNCHER_NAVIGATOR_H_