| 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 26 matching lines...) Expand all Loading... |
| 37 #include "ash/touch/touch_observer_hud.h" | 37 #include "ash/touch/touch_observer_hud.h" |
| 38 #include "ash/wm/activation_controller.h" | 38 #include "ash/wm/activation_controller.h" |
| 39 #include "ash/wm/always_on_top_controller.h" | 39 #include "ash/wm/always_on_top_controller.h" |
| 40 #include "ash/wm/app_list_controller.h" | 40 #include "ash/wm/app_list_controller.h" |
| 41 #include "ash/wm/ash_activation_controller.h" | 41 #include "ash/wm/ash_activation_controller.h" |
| 42 #include "ash/wm/ash_focus_rules.h" | 42 #include "ash/wm/ash_focus_rules.h" |
| 43 #include "ash/wm/base_layout_manager.h" | 43 #include "ash/wm/base_layout_manager.h" |
| 44 #include "ash/wm/capture_controller.h" | 44 #include "ash/wm/capture_controller.h" |
| 45 #include "ash/wm/coordinate_conversion.h" | 45 #include "ash/wm/coordinate_conversion.h" |
| 46 #include "ash/wm/custom_frame_view_ash.h" | 46 #include "ash/wm/custom_frame_view_ash.h" |
| 47 #include "ash/wm/dialog_frame_view.h" | |
| 48 #include "ash/wm/event_client_impl.h" | 47 #include "ash/wm/event_client_impl.h" |
| 49 #include "ash/wm/event_rewriter_event_filter.h" | 48 #include "ash/wm/event_rewriter_event_filter.h" |
| 50 #include "ash/wm/overlay_event_filter.h" | 49 #include "ash/wm/overlay_event_filter.h" |
| 51 #include "ash/wm/power_button_controller.h" | 50 #include "ash/wm/power_button_controller.h" |
| 52 #include "ash/wm/property_util.h" | 51 #include "ash/wm/property_util.h" |
| 53 #include "ash/wm/resize_shadow_controller.h" | 52 #include "ash/wm/resize_shadow_controller.h" |
| 54 #include "ash/wm/root_window_layout_manager.h" | 53 #include "ash/wm/root_window_layout_manager.h" |
| 55 #include "ash/wm/screen_dimmer.h" | 54 #include "ash/wm/screen_dimmer.h" |
| 56 #include "ash/wm/session_state_controller.h" | 55 #include "ash/wm/session_state_controller.h" |
| 57 #include "ash/wm/session_state_controller_impl.h" | 56 #include "ash/wm/session_state_controller_impl.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 #include "ui/views/corewm/compound_event_filter.h" | 89 #include "ui/views/corewm/compound_event_filter.h" |
| 91 #include "ui/views/corewm/corewm_switches.h" | 90 #include "ui/views/corewm/corewm_switches.h" |
| 92 #include "ui/views/corewm/focus_controller.h" | 91 #include "ui/views/corewm/focus_controller.h" |
| 93 #include "ui/views/corewm/input_method_event_filter.h" | 92 #include "ui/views/corewm/input_method_event_filter.h" |
| 94 #include "ui/views/corewm/shadow_controller.h" | 93 #include "ui/views/corewm/shadow_controller.h" |
| 95 #include "ui/views/corewm/visibility_controller.h" | 94 #include "ui/views/corewm/visibility_controller.h" |
| 96 #include "ui/views/corewm/window_modality_controller.h" | 95 #include "ui/views/corewm/window_modality_controller.h" |
| 97 #include "ui/views/focus/focus_manager_factory.h" | 96 #include "ui/views/focus/focus_manager_factory.h" |
| 98 #include "ui/views/widget/native_widget_aura.h" | 97 #include "ui/views/widget/native_widget_aura.h" |
| 99 #include "ui/views/widget/widget.h" | 98 #include "ui/views/widget/widget.h" |
| 99 #include "ui/views/window/dialog_frame_view.h" |
| 100 | 100 |
| 101 #if !defined(OS_MACOSX) | 101 #if !defined(OS_MACOSX) |
| 102 #include "ash/accelerators/accelerator_controller.h" | 102 #include "ash/accelerators/accelerator_controller.h" |
| 103 #include "ash/accelerators/accelerator_filter.h" | 103 #include "ash/accelerators/accelerator_filter.h" |
| 104 #include "ash/accelerators/nested_dispatcher_controller.h" | 104 #include "ash/accelerators/nested_dispatcher_controller.h" |
| 105 #endif | 105 #endif |
| 106 | 106 |
| 107 #if defined(OS_CHROMEOS) | 107 #if defined(OS_CHROMEOS) |
| 108 #include "ash/display/display_change_observer_x11.h" | 108 #include "ash/display/display_change_observer_x11.h" |
| 109 #include "ash/display/output_configurator_animation.h" | 109 #include "ash/display/output_configurator_animation.h" |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 } | 634 } |
| 635 } | 635 } |
| 636 } | 636 } |
| 637 return false; | 637 return false; |
| 638 } | 638 } |
| 639 | 639 |
| 640 views::NonClientFrameView* Shell::CreateDefaultNonClientFrameView( | 640 views::NonClientFrameView* Shell::CreateDefaultNonClientFrameView( |
| 641 views::Widget* widget) { | 641 views::Widget* widget) { |
| 642 if (CommandLine::ForCurrentProcess()->HasSwitch( | 642 if (CommandLine::ForCurrentProcess()->HasSwitch( |
| 643 ::switches::kEnableNewDialogStyle)) { | 643 ::switches::kEnableNewDialogStyle)) { |
| 644 return new internal::DialogFrameView; | 644 return new views::DialogFrameView; |
| 645 } | 645 } |
| 646 // Use translucent-style window frames for dialogs. | 646 // Use translucent-style window frames for dialogs. |
| 647 CustomFrameViewAsh* frame_view = new CustomFrameViewAsh; | 647 CustomFrameViewAsh* frame_view = new CustomFrameViewAsh; |
| 648 frame_view->Init(widget); | 648 frame_view->Init(widget); |
| 649 return frame_view; | 649 return frame_view; |
| 650 } | 650 } |
| 651 | 651 |
| 652 void Shell::RotateFocus(Direction direction) { | 652 void Shell::RotateFocus(Direction direction) { |
| 653 focus_cycler_->RotateFocus( | 653 focus_cycler_->RotateFocus( |
| 654 direction == FORWARD ? internal::FocusCycler::FORWARD : | 654 direction == FORWARD ? internal::FocusCycler::FORWARD : |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 916 //////////////////////////////////////////////////////////////////////////////// | 916 //////////////////////////////////////////////////////////////////////////////// |
| 917 // Shell, aura::client::ActivationChangeObserver implementation: | 917 // Shell, aura::client::ActivationChangeObserver implementation: |
| 918 | 918 |
| 919 void Shell::OnWindowActivated(aura::Window* gained_active, | 919 void Shell::OnWindowActivated(aura::Window* gained_active, |
| 920 aura::Window* lost_active) { | 920 aura::Window* lost_active) { |
| 921 if (gained_active) | 921 if (gained_active) |
| 922 active_root_window_ = gained_active->GetRootWindow(); | 922 active_root_window_ = gained_active->GetRootWindow(); |
| 923 } | 923 } |
| 924 | 924 |
| 925 } // namespace ash | 925 } // namespace ash |
| OLD | NEW |