| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 #include "ash/wm/session_state_controller_impl.h" | 53 #include "ash/wm/session_state_controller_impl.h" |
| 54 #include "ash/wm/session_state_controller_impl2.h" | 54 #include "ash/wm/session_state_controller_impl2.h" |
| 55 #include "ash/wm/stacking_controller.h" | 55 #include "ash/wm/stacking_controller.h" |
| 56 #include "ash/wm/system_gesture_event_filter.h" | 56 #include "ash/wm/system_gesture_event_filter.h" |
| 57 #include "ash/wm/system_modal_container_event_filter.h" | 57 #include "ash/wm/system_modal_container_event_filter.h" |
| 58 #include "ash/wm/system_modal_container_layout_manager.h" | 58 #include "ash/wm/system_modal_container_layout_manager.h" |
| 59 #include "ash/wm/user_activity_detector.h" | 59 #include "ash/wm/user_activity_detector.h" |
| 60 #include "ash/wm/video_detector.h" | 60 #include "ash/wm/video_detector.h" |
| 61 #include "ash/wm/window_animations.h" | 61 #include "ash/wm/window_animations.h" |
| 62 #include "ash/wm/window_cycle_controller.h" | 62 #include "ash/wm/window_cycle_controller.h" |
| 63 #include "ash/wm/window_modality_controller.h" | |
| 64 #include "ash/wm/window_properties.h" | 63 #include "ash/wm/window_properties.h" |
| 65 #include "ash/wm/window_util.h" | 64 #include "ash/wm/window_util.h" |
| 66 #include "ash/wm/workspace_controller.h" | 65 #include "ash/wm/workspace_controller.h" |
| 67 #include "base/bind.h" | 66 #include "base/bind.h" |
| 68 #include "base/command_line.h" | 67 #include "base/command_line.h" |
| 69 #include "base/debug/leak_annotations.h" | 68 #include "base/debug/leak_annotations.h" |
| 70 #include "ui/aura/client/aura_constants.h" | 69 #include "ui/aura/client/aura_constants.h" |
| 71 #include "ui/aura/client/stacking_client.h" | 70 #include "ui/aura/client/stacking_client.h" |
| 72 #include "ui/aura/client/user_action_client.h" | 71 #include "ui/aura/client/user_action_client.h" |
| 73 #include "ui/aura/env.h" | 72 #include "ui/aura/env.h" |
| 74 #include "ui/aura/focus_manager.h" | 73 #include "ui/aura/focus_manager.h" |
| 75 #include "ui/aura/layout_manager.h" | 74 #include "ui/aura/layout_manager.h" |
| 76 #include "ui/aura/root_window.h" | 75 #include "ui/aura/root_window.h" |
| 77 #include "ui/aura/ui_controls_aura.h" | 76 #include "ui/aura/ui_controls_aura.h" |
| 78 #include "ui/aura/window.h" | 77 #include "ui/aura/window.h" |
| 79 #include "ui/compositor/layer.h" | 78 #include "ui/compositor/layer.h" |
| 80 #include "ui/compositor/layer_animator.h" | 79 #include "ui/compositor/layer_animator.h" |
| 81 #include "ui/gfx/display.h" | 80 #include "ui/gfx/display.h" |
| 82 #include "ui/gfx/image/image_skia.h" | 81 #include "ui/gfx/image/image_skia.h" |
| 83 #include "ui/gfx/screen.h" | 82 #include "ui/gfx/screen.h" |
| 84 #include "ui/gfx/size.h" | 83 #include "ui/gfx/size.h" |
| 85 #include "ui/ui_controls/ui_controls.h" | 84 #include "ui/ui_controls/ui_controls.h" |
| 86 #include "ui/views/corewm/compound_event_filter.h" | 85 #include "ui/views/corewm/compound_event_filter.h" |
| 87 #include "ui/views/corewm/input_method_event_filter.h" | 86 #include "ui/views/corewm/input_method_event_filter.h" |
| 88 #include "ui/views/corewm/shadow_controller.h" | 87 #include "ui/views/corewm/shadow_controller.h" |
| 89 #include "ui/views/corewm/visibility_controller.h" | 88 #include "ui/views/corewm/visibility_controller.h" |
| 89 #include "ui/views/corewm/window_modality_controller.h" |
| 90 #include "ui/views/focus/focus_manager_factory.h" | 90 #include "ui/views/focus/focus_manager_factory.h" |
| 91 #include "ui/views/widget/native_widget_aura.h" | 91 #include "ui/views/widget/native_widget_aura.h" |
| 92 #include "ui/views/widget/widget.h" | 92 #include "ui/views/widget/widget.h" |
| 93 | 93 |
| 94 #if !defined(OS_MACOSX) | 94 #if !defined(OS_MACOSX) |
| 95 #include "ash/accelerators/accelerator_controller.h" | 95 #include "ash/accelerators/accelerator_controller.h" |
| 96 #include "ash/accelerators/accelerator_filter.h" | 96 #include "ash/accelerators/accelerator_filter.h" |
| 97 #include "ash/accelerators/nested_dispatcher_controller.h" | 97 #include "ash/accelerators/nested_dispatcher_controller.h" |
| 98 #endif | 98 #endif |
| 99 | 99 |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 | 501 |
| 502 // Create Controllers that may need root window. | 502 // Create Controllers that may need root window. |
| 503 // TODO(oshima): Move as many controllers before creating | 503 // TODO(oshima): Move as many controllers before creating |
| 504 // RootWindowController as possible. | 504 // RootWindowController as possible. |
| 505 stacking_client_.reset(delegate_->CreateStackingClient()); | 505 stacking_client_.reset(delegate_->CreateStackingClient()); |
| 506 if (stacking_client_.get()) | 506 if (stacking_client_.get()) |
| 507 aura::client::SetStackingClient(stacking_client_.get()); | 507 aura::client::SetStackingClient(stacking_client_.get()); |
| 508 visibility_controller_.reset(new AshVisibilityController); | 508 visibility_controller_.reset(new AshVisibilityController); |
| 509 drag_drop_controller_.reset(new internal::DragDropController); | 509 drag_drop_controller_.reset(new internal::DragDropController); |
| 510 user_action_client_.reset(delegate_->CreateUserActionClient()); | 510 user_action_client_.reset(delegate_->CreateUserActionClient()); |
| 511 window_modality_controller_.reset(new internal::WindowModalityController); | 511 window_modality_controller_.reset( |
| 512 new views::corewm::WindowModalityController); |
| 512 AddPreTargetHandler(window_modality_controller_.get()); | 513 AddPreTargetHandler(window_modality_controller_.get()); |
| 513 | 514 |
| 514 magnification_controller_.reset( | 515 magnification_controller_.reset( |
| 515 MagnificationController::CreateInstance()); | 516 MagnificationController::CreateInstance()); |
| 516 | 517 |
| 517 partial_magnification_controller_.reset( | 518 partial_magnification_controller_.reset( |
| 518 new PartialMagnificationController()); | 519 new PartialMagnificationController()); |
| 519 | 520 |
| 520 high_contrast_controller_.reset(new HighContrastController); | 521 high_contrast_controller_.reset(new HighContrastController); |
| 521 video_detector_.reset(new VideoDetector); | 522 video_detector_.reset(new VideoDetector); |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 | 883 |
| 883 bool Shell::CanAcceptEvents() { | 884 bool Shell::CanAcceptEvents() { |
| 884 return true; | 885 return true; |
| 885 } | 886 } |
| 886 | 887 |
| 887 ui::EventTarget* Shell::GetParentTarget() { | 888 ui::EventTarget* Shell::GetParentTarget() { |
| 888 return NULL; | 889 return NULL; |
| 889 } | 890 } |
| 890 | 891 |
| 891 } // namespace ash | 892 } // namespace ash |
| OLD | NEW |