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

Side by Side Diff: ash/shell.cc

Issue 72503002: Remove some pass-thrus on RootWindow API in favor of exposing the RootWindowHost again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 | Annotate | Revision Log
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/shell/content_client/shell_browser_main_parts.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 // UserActivityDetector passes events to observers, so let them get 777 // UserActivityDetector passes events to observers, so let them get
778 // rewritten first. 778 // rewritten first.
779 user_activity_detector_.reset(new UserActivityDetector); 779 user_activity_detector_.reset(new UserActivityDetector);
780 AddPreTargetHandler(user_activity_detector_.get()); 780 AddPreTargetHandler(user_activity_detector_.get());
781 781
782 overlay_filter_.reset(new internal::OverlayEventFilter); 782 overlay_filter_.reset(new internal::OverlayEventFilter);
783 AddPreTargetHandler(overlay_filter_.get()); 783 AddPreTargetHandler(overlay_filter_.get());
784 AddShellObserver(overlay_filter_.get()); 784 AddShellObserver(overlay_filter_.get());
785 785
786 input_method_filter_.reset(new views::corewm::InputMethodEventFilter( 786 input_method_filter_.reset(new views::corewm::InputMethodEventFilter(
787 root_window->GetDispatcher()->GetAcceleratedWidget())); 787 root_window->GetDispatcher()->host()->GetAcceleratedWidget()));
788 AddPreTargetHandler(input_method_filter_.get()); 788 AddPreTargetHandler(input_method_filter_.get());
789 789
790 accelerator_filter_.reset(new internal::AcceleratorFilter); 790 accelerator_filter_.reset(new internal::AcceleratorFilter);
791 AddPreTargetHandler(accelerator_filter_.get()); 791 AddPreTargetHandler(accelerator_filter_.get());
792 792
793 event_transformation_handler_.reset(new internal::EventTransformationHandler); 793 event_transformation_handler_.reset(new internal::EventTransformationHandler);
794 AddPreTargetHandler(event_transformation_handler_.get()); 794 AddPreTargetHandler(event_transformation_handler_.get());
795 795
796 system_gesture_filter_.reset(new internal::SystemGestureEventFilter); 796 system_gesture_filter_.reset(new internal::SystemGestureEventFilter);
797 AddPreTargetHandler(system_gesture_filter_.get()); 797 AddPreTargetHandler(system_gesture_filter_.get());
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 //////////////////////////////////////////////////////////////////////////////// 989 ////////////////////////////////////////////////////////////////////////////////
990 // Shell, aura::client::ActivationChangeObserver implementation: 990 // Shell, aura::client::ActivationChangeObserver implementation:
991 991
992 void Shell::OnWindowActivated(aura::Window* gained_active, 992 void Shell::OnWindowActivated(aura::Window* gained_active,
993 aura::Window* lost_active) { 993 aura::Window* lost_active) {
994 if (gained_active) 994 if (gained_active)
995 target_root_window_ = gained_active->GetRootWindow(); 995 target_root_window_ = gained_active->GetRootWindow();
996 } 996 }
997 997
998 } // namespace ash 998 } // namespace ash
OLDNEW
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/shell/content_client/shell_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698