| OLD | NEW |
| 1 // Copyright (c) 2011 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 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 26 } | 26 } |
| 27 namespace gfx { | 27 namespace gfx { |
| 28 class Rect; | 28 class Rect; |
| 29 class Size; | 29 class Size; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace ash { | 32 namespace ash { |
| 33 | 33 |
| 34 class AcceleratorController; | 34 class AcceleratorController; |
| 35 class Launcher; | 35 class Launcher; |
| 36 class PowerButtonController; |
| 36 class ShellDelegate; | 37 class ShellDelegate; |
| 37 | 38 |
| 38 namespace internal { | 39 namespace internal { |
| 39 class ActivationController; | 40 class ActivationController; |
| 40 class AcceleratorFilter; | 41 class AcceleratorFilter; |
| 41 class AppList; | 42 class AppList; |
| 42 class DragDropController; | 43 class DragDropController; |
| 43 class InputMethodEventFilter; | 44 class InputMethodEventFilter; |
| 44 class ShadowController; | 45 class ShadowController; |
| 45 class StackingController; | 46 class StackingController; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 76 | 77 |
| 77 // Toggles app list. | 78 // Toggles app list. |
| 78 void ToggleAppList(); | 79 void ToggleAppList(); |
| 79 | 80 |
| 80 // Returns true if the screen is locked. | 81 // Returns true if the screen is locked. |
| 81 bool IsScreenLocked() const; | 82 bool IsScreenLocked() const; |
| 82 | 83 |
| 83 AcceleratorController* accelerator_controller() { | 84 AcceleratorController* accelerator_controller() { |
| 84 return accelerator_controller_.get(); | 85 return accelerator_controller_.get(); |
| 85 } | 86 } |
| 86 | |
| 87 internal::TooltipController* tooltip_controller() { | 87 internal::TooltipController* tooltip_controller() { |
| 88 return tooltip_controller_.get(); | 88 return tooltip_controller_.get(); |
| 89 } | 89 } |
| 90 PowerButtonController* power_button_controller() { |
| 91 return power_button_controller_.get(); |
| 92 } |
| 90 | 93 |
| 91 ShellDelegate* delegate() { return delegate_.get(); } | 94 ShellDelegate* delegate() { return delegate_.get(); } |
| 92 | 95 |
| 93 // May return NULL if we're not using a launcher (e.g. laptop-mode). | 96 // May return NULL if we're not using a launcher (e.g. laptop-mode). |
| 94 Launcher* launcher() { return launcher_.get(); } | 97 Launcher* launcher() { return launcher_.get(); } |
| 95 | 98 |
| 96 // Made available for tests. | 99 // Made available for tests. |
| 97 internal::ShadowController* shadow_controller() { | 100 internal::ShadowController* shadow_controller() { |
| 98 return shadow_controller_.get(); | 101 return shadow_controller_.get(); |
| 99 } | 102 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 scoped_ptr<Launcher> launcher_; | 134 scoped_ptr<Launcher> launcher_; |
| 132 | 135 |
| 133 scoped_ptr<internal::AppList> app_list_; | 136 scoped_ptr<internal::AppList> app_list_; |
| 134 | 137 |
| 135 scoped_ptr<internal::StackingController> stacking_controller_; | 138 scoped_ptr<internal::StackingController> stacking_controller_; |
| 136 scoped_ptr<internal::ActivationController> activation_controller_; | 139 scoped_ptr<internal::ActivationController> activation_controller_; |
| 137 scoped_ptr<internal::DragDropController> drag_drop_controller_; | 140 scoped_ptr<internal::DragDropController> drag_drop_controller_; |
| 138 scoped_ptr<internal::WorkspaceController> workspace_controller_; | 141 scoped_ptr<internal::WorkspaceController> workspace_controller_; |
| 139 scoped_ptr<internal::ShadowController> shadow_controller_; | 142 scoped_ptr<internal::ShadowController> shadow_controller_; |
| 140 scoped_ptr<internal::TooltipController> tooltip_controller_; | 143 scoped_ptr<internal::TooltipController> tooltip_controller_; |
| 144 scoped_ptr<PowerButtonController> power_button_controller_; |
| 141 | 145 |
| 142 // An event filter that pre-handles all key events to send them to an IME. | 146 // An event filter that pre-handles all key events to send them to an IME. |
| 143 scoped_ptr<internal::InputMethodEventFilter> input_method_filter_; | 147 scoped_ptr<internal::InputMethodEventFilter> input_method_filter_; |
| 144 // An event filter that pre-handles global accelerators. | 148 // An event filter that pre-handles global accelerators. |
| 145 scoped_ptr<internal::AcceleratorFilter> accelerator_filter_; | 149 scoped_ptr<internal::AcceleratorFilter> accelerator_filter_; |
| 146 | 150 |
| 147 | 151 |
| 148 DISALLOW_COPY_AND_ASSIGN(Shell); | 152 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 149 }; | 153 }; |
| 150 | 154 |
| 151 } // namespace ash | 155 } // namespace ash |
| 152 | 156 |
| 153 #endif // ASH_SHELL_H_ | 157 #endif // ASH_SHELL_H_ |
| OLD | NEW |