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_SHELL_H_ | 5 #ifndef ASH_SHELL_H_ |
6 #define ASH_SHELL_H_ | 6 #define ASH_SHELL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "ash/ash_export.h" | 12 #include "ash/ash_export.h" |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 | 18 |
19 class CommandLine; | 19 class CommandLine; |
20 | 20 |
21 namespace aura { | 21 namespace aura { |
22 class EventFilter; | 22 class EventFilter; |
23 class RootWindow; | 23 class RootWindow; |
24 class Window; | 24 class Window; |
25 } | 25 } |
26 namespace gfx { | 26 namespace gfx { |
27 class Rect; | 27 class Rect; |
28 class Size; | 28 class Size; |
29 } | 29 } |
| 30 namespace views { |
| 31 class NonClientFrameView; |
| 32 class Widget; |
| 33 } |
30 | 34 |
31 namespace ash { | 35 namespace ash { |
32 | 36 |
33 class AcceleratorController; | 37 class AcceleratorController; |
34 class Launcher; | 38 class Launcher; |
35 class PowerButtonController; | 39 class PowerButtonController; |
36 class ShellDelegate; | 40 class ShellDelegate; |
37 | 41 |
38 namespace internal { | 42 namespace internal { |
39 class ActivationController; | 43 class ActivationController; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 81 |
78 // Toggles app list. | 82 // Toggles app list. |
79 void ToggleAppList(); | 83 void ToggleAppList(); |
80 | 84 |
81 // Returns true if the screen is locked. | 85 // Returns true if the screen is locked. |
82 bool IsScreenLocked() const; | 86 bool IsScreenLocked() const; |
83 | 87 |
84 // See enum WindowMode for details. | 88 // See enum WindowMode for details. |
85 bool IsWindowModeCompact() const { return window_mode_ == COMPACT_MODE; } | 89 bool IsWindowModeCompact() const { return window_mode_ == COMPACT_MODE; } |
86 | 90 |
| 91 // Creates a default views::NonClientFrameView for use by windows in the |
| 92 // Ash environment. |
| 93 views::NonClientFrameView* CreateDefaultNonClientFrameView( |
| 94 views::Widget* widget); |
| 95 |
87 AcceleratorController* accelerator_controller() { | 96 AcceleratorController* accelerator_controller() { |
88 return accelerator_controller_.get(); | 97 return accelerator_controller_.get(); |
89 } | 98 } |
90 internal::TooltipController* tooltip_controller() { | 99 internal::TooltipController* tooltip_controller() { |
91 return tooltip_controller_.get(); | 100 return tooltip_controller_.get(); |
92 } | 101 } |
93 PowerButtonController* power_button_controller() { | 102 PowerButtonController* power_button_controller() { |
94 return power_button_controller_.get(); | 103 return power_button_controller_.get(); |
95 } | 104 } |
96 | 105 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 // The |window_mode_| never changes after the shell is initialized. | 171 // The |window_mode_| never changes after the shell is initialized. |
163 // Switching modes requires a restart. | 172 // Switching modes requires a restart. |
164 WindowMode window_mode_; | 173 WindowMode window_mode_; |
165 | 174 |
166 DISALLOW_COPY_AND_ASSIGN(Shell); | 175 DISALLOW_COPY_AND_ASSIGN(Shell); |
167 }; | 176 }; |
168 | 177 |
169 } // namespace ash | 178 } // namespace ash |
170 | 179 |
171 #endif // ASH_SHELL_H_ | 180 #endif // ASH_SHELL_H_ |
OLD | NEW |