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 | |
sky
2013/01/31 22:31:45
|maybe_panel|
oshima
2013/01/31 23:16:54
Done.
| |
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); | |
stevenjb
2013/01/31 20:23:40
nit: I would consider either:
a) require maybe_pan
oshima
2013/01/31 20:37:41
I intentionally included if/panel logic so that as
| |
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 |