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 | 9 |
10 namespace aura { | |
11 class Window; | |
12 } | |
13 | |
14 namespace ui { | |
15 class Event; | |
16 } | |
17 | |
18 namespace ash { | 10 namespace ash { |
19 class LauncherModel; | 11 class LauncherModel; |
20 | 12 |
21 namespace launcher { | 13 namespace launcher { |
22 | 14 |
23 // Return the index of the browser item from a given |launcher_model|. | 15 // Return the index of the browser item from a given |launcher_model|. |
24 ASH_EXPORT int GetBrowserItemIndex(const LauncherModel& launcher_model); | 16 ASH_EXPORT int GetBrowserItemIndex(const LauncherModel& launcher_model); |
25 | 17 |
26 // Move the |maybe_panel| to the root window where the |event| occured if | |
27 // |maybe_panel| is of aura::client::WINDOW_TYPE_PANEL and it's not | |
28 // in the same root window. | |
29 ASH_EXPORT void MoveToEventRootIfPanel(aura::Window* maybe_panel, | |
30 const ui::Event& event); | |
31 | |
32 } // namespace launcher | 18 } // namespace launcher |
33 } // namespace ash | 19 } // namespace ash |
34 | 20 |
35 #endif // ASH_LAUNCHER_LAUNCHER_UTIL_H_ | 21 #endif // ASH_LAUNCHER_LAUNCHER_UTIL_H_ |
OLD | NEW |