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 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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()); | |
Elliot Glaysher
2016/11/02 19:13:29
Q: LockStateController can't trivially be moved to
James Cook
2016/11/02 20:20:03
I think this is OK. WmShell's constructor touches
Elliot Glaysher
2016/11/02 21:45:16
Acknowledged.
| |
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 Loading... | |
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 |
OLD | NEW |