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

Side by Side Diff: ash/shell.cc

Issue 2471643002: mash: remove the LockStateControllerDelegate. (Closed)
Patch Set: sky comments Created 4 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
« no previous file with comments | « ash/public/interfaces/shutdown.mojom ('k') | ash/test/BUILD.gn » ('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 #include <utility> 9 #include <utility>
10 10
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 717
718 system_gesture_filter_.reset(new SystemGestureEventFilter); 718 system_gesture_filter_.reset(new SystemGestureEventFilter);
719 AddPreTargetHandler(system_gesture_filter_.get()); 719 AddPreTargetHandler(system_gesture_filter_.get());
720 720
721 #if defined(OS_CHROMEOS) 721 #if defined(OS_CHROMEOS)
722 sticky_keys_controller_.reset(new StickyKeysController); 722 sticky_keys_controller_.reset(new StickyKeysController);
723 #endif 723 #endif
724 screen_pinning_controller_.reset( 724 screen_pinning_controller_.reset(
725 new ScreenPinningController(window_tree_host_manager_.get())); 725 new ScreenPinningController(window_tree_host_manager_.get()));
726 726
727 lock_state_controller_.reset(new LockStateController); 727 lock_state_controller_ = base::MakeUnique<LockStateController>(
728 wm_shell_->delegate()->GetShellConnector());
728 power_button_controller_.reset( 729 power_button_controller_.reset(
729 new PowerButtonController(lock_state_controller_.get())); 730 new PowerButtonController(lock_state_controller_.get()));
730 #if defined(OS_CHROMEOS) 731 #if defined(OS_CHROMEOS)
731 // Pass the initial display state to PowerButtonController. 732 // Pass the initial display state to PowerButtonController.
732 power_button_controller_->OnDisplayModeChanged( 733 power_button_controller_->OnDisplayModeChanged(
733 display_configurator_->cached_displays()); 734 display_configurator_->cached_displays());
734 #endif 735 #endif
735 wm_shell_->AddShellObserver(lock_state_controller_.get()); 736 wm_shell_->AddShellObserver(lock_state_controller_.get());
736 737
737 drag_drop_controller_.reset(new DragDropController); 738 drag_drop_controller_.reset(new DragDropController);
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 std::unique_ptr<ui::EventTargetIterator> Shell::GetChildIterator() const { 898 std::unique_ptr<ui::EventTargetIterator> Shell::GetChildIterator() const {
898 return std::unique_ptr<ui::EventTargetIterator>(); 899 return std::unique_ptr<ui::EventTargetIterator>();
899 } 900 }
900 901
901 ui::EventTargeter* Shell::GetEventTargeter() { 902 ui::EventTargeter* Shell::GetEventTargeter() {
902 NOTREACHED(); 903 NOTREACHED();
903 return nullptr; 904 return nullptr;
904 } 905 }
905 906
906 } // namespace ash 907 } // namespace ash
OLDNEW
« no previous file with comments | « ash/public/interfaces/shutdown.mojom ('k') | ash/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698