Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: ash/shell.cc

Issue 222383002: Move UserActivityDetector from ash/wm/ to ui/wm/core/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove an unneeded include Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/accelerator_controller.h" 10 #include "ash/accelerators/accelerator_controller.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 #include "ash/wm/overlay_event_filter.h" 63 #include "ash/wm/overlay_event_filter.h"
64 #include "ash/wm/overview/window_selector_controller.h" 64 #include "ash/wm/overview/window_selector_controller.h"
65 #include "ash/wm/power_button_controller.h" 65 #include "ash/wm/power_button_controller.h"
66 #include "ash/wm/resize_shadow_controller.h" 66 #include "ash/wm/resize_shadow_controller.h"
67 #include "ash/wm/root_window_layout_manager.h" 67 #include "ash/wm/root_window_layout_manager.h"
68 #include "ash/wm/screen_dimmer.h" 68 #include "ash/wm/screen_dimmer.h"
69 #include "ash/wm/system_gesture_event_filter.h" 69 #include "ash/wm/system_gesture_event_filter.h"
70 #include "ash/wm/system_modal_container_event_filter.h" 70 #include "ash/wm/system_modal_container_event_filter.h"
71 #include "ash/wm/system_modal_container_layout_manager.h" 71 #include "ash/wm/system_modal_container_layout_manager.h"
72 #include "ash/wm/toplevel_window_event_handler.h" 72 #include "ash/wm/toplevel_window_event_handler.h"
73 #include "ash/wm/user_activity_detector.h"
74 #include "ash/wm/video_detector.h" 73 #include "ash/wm/video_detector.h"
75 #include "ash/wm/window_animations.h" 74 #include "ash/wm/window_animations.h"
76 #include "ash/wm/window_positioner.h" 75 #include "ash/wm/window_positioner.h"
77 #include "ash/wm/window_properties.h" 76 #include "ash/wm/window_properties.h"
78 #include "ash/wm/window_util.h" 77 #include "ash/wm/window_util.h"
79 #include "ash/wm/workspace_controller.h" 78 #include "ash/wm/workspace_controller.h"
80 #include "base/bind.h" 79 #include "base/bind.h"
81 #include "base/debug/trace_event.h" 80 #include "base/debug/trace_event.h"
82 #include "ui/aura/client/aura_constants.h" 81 #include "ui/aura/client/aura_constants.h"
83 #include "ui/aura/env.h" 82 #include "ui/aura/env.h"
(...skipping 15 matching lines...) Expand all
99 #include "ui/message_center/message_center.h" 98 #include "ui/message_center/message_center.h"
100 #include "ui/views/corewm/tooltip_aura.h" 99 #include "ui/views/corewm/tooltip_aura.h"
101 #include "ui/views/corewm/tooltip_controller.h" 100 #include "ui/views/corewm/tooltip_controller.h"
102 #include "ui/views/focus/focus_manager_factory.h" 101 #include "ui/views/focus/focus_manager_factory.h"
103 #include "ui/views/widget/native_widget_aura.h" 102 #include "ui/views/widget/native_widget_aura.h"
104 #include "ui/views/widget/widget.h" 103 #include "ui/views/widget/widget.h"
105 #include "ui/wm/core/compound_event_filter.h" 104 #include "ui/wm/core/compound_event_filter.h"
106 #include "ui/wm/core/focus_controller.h" 105 #include "ui/wm/core/focus_controller.h"
107 #include "ui/wm/core/input_method_event_filter.h" 106 #include "ui/wm/core/input_method_event_filter.h"
108 #include "ui/wm/core/shadow_controller.h" 107 #include "ui/wm/core/shadow_controller.h"
108 #include "ui/wm/core/user_activity_detector.h"
109 #include "ui/wm/core/visibility_controller.h" 109 #include "ui/wm/core/visibility_controller.h"
110 #include "ui/wm/core/window_modality_controller.h" 110 #include "ui/wm/core/window_modality_controller.h"
111 111
112 #if defined(OS_CHROMEOS) 112 #if defined(OS_CHROMEOS)
113 #if defined(USE_X11) 113 #if defined(USE_X11)
114 #include "ash/accelerators/magnifier_key_scroller.h" 114 #include "ash/accelerators/magnifier_key_scroller.h"
115 #include "ash/accelerators/spoken_feedback_toggler.h" 115 #include "ash/accelerators/spoken_feedback_toggler.h"
116 #include "base/message_loop/message_pump_x11.h" 116 #include "base/message_loop/message_pump_x11.h"
117 #endif // defined(USE_X11) 117 #endif // defined(USE_X11)
118 #include "ash/ash_constants.h" 118 #include "ash/ash_constants.h"
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 869
870 // The order in which event filters are added is significant. 870 // The order in which event filters are added is significant.
871 871
872 #if defined(OS_CHROMEOS) 872 #if defined(OS_CHROMEOS)
873 // The StickyKeysController also rewrites events and must be added 873 // The StickyKeysController also rewrites events and must be added
874 // before observers, but after the EventRewriterEventFilter. 874 // before observers, but after the EventRewriterEventFilter.
875 sticky_keys_controller_.reset(new StickyKeysController); 875 sticky_keys_controller_.reset(new StickyKeysController);
876 AddPreTargetHandler(sticky_keys_controller_.get()); 876 AddPreTargetHandler(sticky_keys_controller_.get());
877 #endif 877 #endif
878 878
879 // UserActivityDetector passes events to observers, so let them get 879 // wm::UserActivityDetector passes events to observers, so let them get
880 // rewritten first. 880 // rewritten first.
881 user_activity_detector_.reset(new UserActivityDetector); 881 user_activity_detector_.reset(new ::wm::UserActivityDetector);
882 AddPreTargetHandler(user_activity_detector_.get()); 882 AddPreTargetHandler(user_activity_detector_.get());
883 883
884 overlay_filter_.reset(new internal::OverlayEventFilter); 884 overlay_filter_.reset(new internal::OverlayEventFilter);
885 AddPreTargetHandler(overlay_filter_.get()); 885 AddPreTargetHandler(overlay_filter_.get());
886 AddShellObserver(overlay_filter_.get()); 886 AddShellObserver(overlay_filter_.get());
887 887
888 input_method_filter_.reset(new ::wm::InputMethodEventFilter( 888 input_method_filter_.reset(new ::wm::InputMethodEventFilter(
889 root_window->GetHost()->GetAcceleratedWidget())); 889 root_window->GetHost()->GetAcceleratedWidget()));
890 AddPreTargetHandler(input_method_filter_.get()); 890 AddPreTargetHandler(input_method_filter_.get());
891 891
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 //////////////////////////////////////////////////////////////////////////////// 1120 ////////////////////////////////////////////////////////////////////////////////
1121 // Shell, aura::client::ActivationChangeObserver implementation: 1121 // Shell, aura::client::ActivationChangeObserver implementation:
1122 1122
1123 void Shell::OnWindowActivated(aura::Window* gained_active, 1123 void Shell::OnWindowActivated(aura::Window* gained_active,
1124 aura::Window* lost_active) { 1124 aura::Window* lost_active) {
1125 if (gained_active) 1125 if (gained_active)
1126 target_root_window_ = gained_active->GetRootWindow(); 1126 target_root_window_ = gained_active->GetRootWindow();
1127 } 1127 }
1128 1128
1129 } // namespace ash 1129 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698