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

Side by Side Diff: ash/shell.cc

Issue 727583002: Regression: Search+Key pops up app launcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 #include "ash/wm/window_properties.h" 79 #include "ash/wm/window_properties.h"
80 #include "ash/wm/window_util.h" 80 #include "ash/wm/window_util.h"
81 #include "ash/wm/workspace_controller.h" 81 #include "ash/wm/workspace_controller.h"
82 #include "base/bind.h" 82 #include "base/bind.h"
83 #include "base/debug/trace_event.h" 83 #include "base/debug/trace_event.h"
84 #include "ui/aura/client/aura_constants.h" 84 #include "ui/aura/client/aura_constants.h"
85 #include "ui/aura/env.h" 85 #include "ui/aura/env.h"
86 #include "ui/aura/layout_manager.h" 86 #include "ui/aura/layout_manager.h"
87 #include "ui/aura/window.h" 87 #include "ui/aura/window.h"
88 #include "ui/aura/window_event_dispatcher.h" 88 #include "ui/aura/window_event_dispatcher.h"
89 #include "ui/base/accelerators/accelerator_history.h"
89 #include "ui/base/ui_base_switches.h" 90 #include "ui/base/ui_base_switches.h"
90 #include "ui/compositor/layer.h" 91 #include "ui/compositor/layer.h"
91 #include "ui/compositor/layer_animator.h" 92 #include "ui/compositor/layer_animator.h"
92 #include "ui/events/event_target_iterator.h" 93 #include "ui/events/event_target_iterator.h"
93 #include "ui/gfx/display.h" 94 #include "ui/gfx/display.h"
94 #include "ui/gfx/image/image_skia.h" 95 #include "ui/gfx/image/image_skia.h"
95 #include "ui/gfx/screen.h" 96 #include "ui/gfx/screen.h"
96 #include "ui/gfx/size.h" 97 #include "ui/gfx/size.h"
97 #include "ui/keyboard/keyboard.h" 98 #include "ui/keyboard/keyboard.h"
98 #include "ui/keyboard/keyboard_controller.h" 99 #include "ui/keyboard/keyboard_controller.h"
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 AddPreTargetHandler(user_activity_detector_.get()); 920 AddPreTargetHandler(user_activity_detector_.get());
920 921
921 overlay_filter_.reset(new OverlayEventFilter); 922 overlay_filter_.reset(new OverlayEventFilter);
922 AddPreTargetHandler(overlay_filter_.get()); 923 AddPreTargetHandler(overlay_filter_.get());
923 AddShellObserver(overlay_filter_.get()); 924 AddShellObserver(overlay_filter_.get());
924 925
925 input_method_filter_.reset(new ::wm::InputMethodEventFilter( 926 input_method_filter_.reset(new ::wm::InputMethodEventFilter(
926 root_window->GetHost()->GetAcceleratedWidget())); 927 root_window->GetHost()->GetAcceleratedWidget()));
927 AddPreTargetHandler(input_method_filter_.get()); 928 AddPreTargetHandler(input_method_filter_.get());
928 929
930 // Keep track of the current and previous accelerators for the
931 // AcceleratorController and the FocusManager
932 AddPreTargetHandler(ui::AcceleratorHistory::GetInstance());
Jun Mukai 2014/11/15 01:56:33 Can we move it into accelerator_filter_ instead of
afakhry 2014/11/15 02:40:31 I already tried that, but it didn't work. It was c
Jun Mukai 2014/11/17 17:39:20 Which test fails for why? It does not make much s
afakhry 2014/11/17 23:10:18 Done.
933
929 accelerator_filter_.reset(new ::wm::AcceleratorFilter( 934 accelerator_filter_.reset(new ::wm::AcceleratorFilter(
930 scoped_ptr< ::wm::AcceleratorDelegate>(new AcceleratorDelegate).Pass())); 935 scoped_ptr< ::wm::AcceleratorDelegate>(new AcceleratorDelegate).Pass()));
931 AddPreTargetHandler(accelerator_filter_.get()); 936 AddPreTargetHandler(accelerator_filter_.get());
932 937
933 event_transformation_handler_.reset(new EventTransformationHandler); 938 event_transformation_handler_.reset(new EventTransformationHandler);
934 AddPreTargetHandler(event_transformation_handler_.get()); 939 AddPreTargetHandler(event_transformation_handler_.get());
935 940
936 toplevel_window_event_handler_.reset(new ToplevelWindowEventHandler); 941 toplevel_window_event_handler_.reset(new ToplevelWindowEventHandler);
937 942
938 system_gesture_filter_.reset(new SystemGestureEventFilter); 943 system_gesture_filter_.reset(new SystemGestureEventFilter);
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1159 //////////////////////////////////////////////////////////////////////////////// 1164 ////////////////////////////////////////////////////////////////////////////////
1160 // Shell, aura::client::ActivationChangeObserver implementation: 1165 // Shell, aura::client::ActivationChangeObserver implementation:
1161 1166
1162 void Shell::OnWindowActivated(aura::Window* gained_active, 1167 void Shell::OnWindowActivated(aura::Window* gained_active,
1163 aura::Window* lost_active) { 1168 aura::Window* lost_active) {
1164 if (gained_active) 1169 if (gained_active)
1165 target_root_window_ = gained_active->GetRootWindow(); 1170 target_root_window_ = gained_active->GetRootWindow();
1166 } 1171 }
1167 1172
1168 } // namespace ash 1173 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698