| 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 #include "ash/shell.h" | 5 #include "ash/shell.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/accelerators/focus_manager_factory.h" | 10 #include "ash/accelerators/focus_manager_factory.h" |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 165 |
| 166 internal::SystemGestureEventFilter* | 166 internal::SystemGestureEventFilter* |
| 167 Shell::TestApi::system_gesture_event_filter() { | 167 Shell::TestApi::system_gesture_event_filter() { |
| 168 return shell_->system_gesture_filter_.get(); | 168 return shell_->system_gesture_filter_.get(); |
| 169 } | 169 } |
| 170 | 170 |
| 171 internal::WorkspaceController* Shell::TestApi::workspace_controller() { | 171 internal::WorkspaceController* Shell::TestApi::workspace_controller() { |
| 172 return shell_->GetPrimaryRootWindowController()->workspace_controller(); | 172 return shell_->GetPrimaryRootWindowController()->workspace_controller(); |
| 173 } | 173 } |
| 174 | 174 |
| 175 internal::ScreenPositionController* |
| 176 Shell::TestApi::screen_position_controller() { |
| 177 return shell_->screen_position_controller_.get(); |
| 178 } |
| 179 |
| 175 //////////////////////////////////////////////////////////////////////////////// | 180 //////////////////////////////////////////////////////////////////////////////// |
| 176 // Shell, public: | 181 // Shell, public: |
| 177 | 182 |
| 178 Shell::Shell(ShellDelegate* delegate) | 183 Shell::Shell(ShellDelegate* delegate) |
| 179 : screen_(new ScreenAsh), | 184 : screen_(new ScreenAsh), |
| 180 active_root_window_(NULL), | 185 active_root_window_(NULL), |
| 181 env_filter_(NULL), | 186 env_filter_(NULL), |
| 182 delegate_(delegate), | 187 delegate_(delegate), |
| 183 #if defined(OS_CHROMEOS) | 188 #if defined(OS_CHROMEOS) |
| 184 output_configurator_(new chromeos::OutputConfigurator()), | 189 output_configurator_(new chromeos::OutputConfigurator()), |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 } | 769 } |
| 765 | 770 |
| 766 void Shell::ShowCursor(bool visible) { | 771 void Shell::ShowCursor(bool visible) { |
| 767 RootWindowList root_windows = GetAllRootWindows(); | 772 RootWindowList root_windows = GetAllRootWindows(); |
| 768 for (RootWindowList::iterator iter = root_windows.begin(); | 773 for (RootWindowList::iterator iter = root_windows.begin(); |
| 769 iter != root_windows.end(); ++iter) | 774 iter != root_windows.end(); ++iter) |
| 770 (*iter)->ShowCursor(visible); | 775 (*iter)->ShowCursor(visible); |
| 771 } | 776 } |
| 772 | 777 |
| 773 } // namespace ash | 778 } // namespace ash |
| OLD | NEW |