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 27 matching lines...) Expand all Loading... |
38 #include "ash/wm/base_layout_manager.h" | 38 #include "ash/wm/base_layout_manager.h" |
39 #include "ash/wm/capture_controller.h" | 39 #include "ash/wm/capture_controller.h" |
40 #include "ash/wm/custom_frame_view_ash.h" | 40 #include "ash/wm/custom_frame_view_ash.h" |
41 #include "ash/wm/dialog_frame_view.h" | 41 #include "ash/wm/dialog_frame_view.h" |
42 #include "ash/wm/event_client_impl.h" | 42 #include "ash/wm/event_client_impl.h" |
43 #include "ash/wm/event_rewriter_event_filter.h" | 43 #include "ash/wm/event_rewriter_event_filter.h" |
44 #include "ash/wm/overlay_event_filter.h" | 44 #include "ash/wm/overlay_event_filter.h" |
45 #include "ash/wm/panel_layout_manager.h" | 45 #include "ash/wm/panel_layout_manager.h" |
46 #include "ash/wm/panel_window_event_filter.h" | 46 #include "ash/wm/panel_window_event_filter.h" |
47 #include "ash/wm/power_button_controller.h" | 47 #include "ash/wm/power_button_controller.h" |
| 48 #include "ash/wm/property_util.h" |
48 #include "ash/wm/resize_shadow_controller.h" | 49 #include "ash/wm/resize_shadow_controller.h" |
49 #include "ash/wm/root_window_layout_manager.h" | 50 #include "ash/wm/root_window_layout_manager.h" |
50 #include "ash/wm/screen_dimmer.h" | 51 #include "ash/wm/screen_dimmer.h" |
51 #include "ash/wm/shadow_controller.h" | 52 #include "ash/wm/shadow_controller.h" |
52 #include "ash/wm/shelf_layout_manager.h" | 53 #include "ash/wm/shelf_layout_manager.h" |
53 #include "ash/wm/stacking_controller.h" | 54 #include "ash/wm/stacking_controller.h" |
54 #include "ash/wm/status_area_layout_manager.h" | 55 #include "ash/wm/status_area_layout_manager.h" |
55 #include "ash/wm/system_gesture_event_filter.h" | 56 #include "ash/wm/system_gesture_event_filter.h" |
56 #include "ash/wm/system_modal_container_layout_manager.h" | 57 #include "ash/wm/system_modal_container_layout_manager.h" |
57 #include "ash/wm/toplevel_window_event_filter.h" | 58 #include "ash/wm/toplevel_window_event_filter.h" |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 } | 300 } |
300 | 301 |
301 // static | 302 // static |
302 void Shell::DeleteInstance() { | 303 void Shell::DeleteInstance() { |
303 delete instance_; | 304 delete instance_; |
304 instance_ = NULL; | 305 instance_ = NULL; |
305 } | 306 } |
306 | 307 |
307 // static | 308 // static |
308 internal::RootWindowController* Shell::GetPrimaryRootWindowController() { | 309 internal::RootWindowController* Shell::GetPrimaryRootWindowController() { |
309 return wm::GetRootWindowController(GetPrimaryRootWindow()); | 310 return GetRootWindowController(GetPrimaryRootWindow()); |
310 } | 311 } |
311 | 312 |
312 // static | 313 // static |
313 Shell::RootWindowControllerList Shell::GetAllRootWindowControllers() { | 314 Shell::RootWindowControllerList Shell::GetAllRootWindowControllers() { |
314 return Shell::GetInstance()->display_controller()-> | 315 return Shell::GetInstance()->display_controller()-> |
315 GetAllRootWindowControllers(); | 316 GetAllRootWindowControllers(); |
316 } | 317 } |
317 | 318 |
318 // static | 319 // static |
319 aura::RootWindow* Shell::GetPrimaryRootWindow() { | 320 aura::RootWindow* Shell::GetPrimaryRootWindow() { |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 } | 782 } |
782 | 783 |
783 void Shell::ShowCursor(bool visible) { | 784 void Shell::ShowCursor(bool visible) { |
784 RootWindowList root_windows = GetAllRootWindows(); | 785 RootWindowList root_windows = GetAllRootWindows(); |
785 for (RootWindowList::iterator iter = root_windows.begin(); | 786 for (RootWindowList::iterator iter = root_windows.begin(); |
786 iter != root_windows.end(); ++iter) | 787 iter != root_windows.end(); ++iter) |
787 (*iter)->ShowCursor(visible); | 788 (*iter)->ShowCursor(visible); |
788 } | 789 } |
789 | 790 |
790 } // namespace ash | 791 } // namespace ash |
OLD | NEW |