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_H_ | 5 #ifndef ASH_LAUNCHER_LAUNCHER_H_ |
6 #define ASH_LAUNCHER_LAUNCHER_H_ | 6 #define ASH_LAUNCHER_LAUNCHER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
12 | 12 |
13 namespace aura { | 13 namespace aura { |
14 class Window; | 14 class Window; |
15 } | 15 } |
16 | 16 |
17 namespace views { | 17 namespace views { |
18 class Widget; | 18 class Widget; |
19 } | 19 } |
20 | 20 |
21 namespace ash { | 21 namespace ash { |
22 | 22 |
| 23 namespace internal { |
| 24 class FocusCycler; |
| 25 } |
| 26 |
23 class LauncherDelegate; | 27 class LauncherDelegate; |
24 class LauncherModel; | 28 class LauncherModel; |
25 | 29 |
26 class ASH_EXPORT Launcher { | 30 class ASH_EXPORT Launcher { |
27 public: | 31 public: |
28 explicit Launcher(aura::Window* window_container); | 32 explicit Launcher(aura::Window* window_container); |
29 ~Launcher(); | 33 ~Launcher(); |
30 | 34 |
| 35 // Sets the focus cycler. |
| 36 void SetFocusCycler(const internal::FocusCycler* focus_cycler); |
| 37 |
31 // Sets the width of the status area. | 38 // Sets the width of the status area. |
32 void SetStatusWidth(int width); | 39 void SetStatusWidth(int width); |
33 int GetStatusWidth(); | 40 int GetStatusWidth(); |
34 | 41 |
35 LauncherDelegate* delegate() { return delegate_.get(); } | 42 LauncherDelegate* delegate() { return delegate_.get(); } |
36 | 43 |
37 LauncherModel* model() { return model_.get(); } | 44 LauncherModel* model() { return model_.get(); } |
38 views::Widget* widget() { return widget_.get(); } | 45 views::Widget* widget() { return widget_.get(); } |
39 | 46 |
40 aura::Window* window_container() { return window_container_; } | 47 aura::Window* window_container() { return window_container_; } |
(...skipping 17 matching lines...) Expand all Loading... |
58 DelegateView* delegate_view_; | 65 DelegateView* delegate_view_; |
59 | 66 |
60 scoped_ptr<LauncherDelegate> delegate_; | 67 scoped_ptr<LauncherDelegate> delegate_; |
61 | 68 |
62 DISALLOW_COPY_AND_ASSIGN(Launcher); | 69 DISALLOW_COPY_AND_ASSIGN(Launcher); |
63 }; | 70 }; |
64 | 71 |
65 } // namespace ash | 72 } // namespace ash |
66 | 73 |
67 #endif // ASH_LAUNCHER_LAUNCHER_H_ | 74 #endif // ASH_LAUNCHER_LAUNCHER_H_ |
OLD | NEW |