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 |
10 namespace ash { | 18 namespace ash { |
11 class LauncherModel; | 19 class LauncherModel; |
12 | 20 |
13 namespace launcher { | 21 namespace launcher { |
14 | 22 |
15 // Return the index of the browser item from a given |launcher_model|. | 23 // Return the index of the browser item from a given |launcher_model|. |
16 ASH_EXPORT int GetBrowserItemIndex(const LauncherModel& launcher_model); | 24 ASH_EXPORT int GetBrowserItemIndex(const LauncherModel& launcher_model); |
17 | 25 |
| 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 |
18 } // namespace launcher | 32 } // namespace launcher |
19 } // namespace ash | 33 } // namespace ash |
20 | 34 |
21 #endif // ASH_LAUNCHER_LAUNCHER_UTIL_H_ | 35 #endif // ASH_LAUNCHER_LAUNCHER_UTIL_H_ |
OLD | NEW |