| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "components/exo/wm_helper_ash.h" | 5 #include "components/exo/wm_helper_ash.h" |
| 6 | 6 |
| 7 #include "ash/common/accessibility_delegate.h" | 7 #include "ash/common/accessibility_delegate.h" |
| 8 #include "ash/common/system/tray/system_tray_notifier.h" | 8 #include "ash/common/system/tray/system_tray_notifier.h" |
| 9 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" | 9 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" |
| 10 #include "ash/common/wm_shell.h" | 10 #include "ash/common/wm_shell.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 void WMHelperAsh::AddPostTargetHandler(ui::EventHandler* handler) { | 88 void WMHelperAsh::AddPostTargetHandler(ui::EventHandler* handler) { |
| 89 ash::Shell::GetInstance()->AddPostTargetHandler(handler); | 89 ash::Shell::GetInstance()->AddPostTargetHandler(handler); |
| 90 } | 90 } |
| 91 | 91 |
| 92 void WMHelperAsh::RemovePostTargetHandler(ui::EventHandler* handler) { | 92 void WMHelperAsh::RemovePostTargetHandler(ui::EventHandler* handler) { |
| 93 ash::Shell::GetInstance()->RemovePostTargetHandler(handler); | 93 ash::Shell::GetInstance()->RemovePostTargetHandler(handler); |
| 94 } | 94 } |
| 95 | 95 |
| 96 bool WMHelperAsh::IsMaximizeModeWindowManagerEnabled() const { | 96 bool WMHelperAsh::IsMaximizeModeWindowManagerEnabled() const { |
| 97 return ash::WmShell::Get() | 97 return ash::Shell::Get() |
| 98 ->maximize_mode_controller() | 98 ->maximize_mode_controller() |
| 99 ->IsMaximizeModeWindowManagerEnabled(); | 99 ->IsMaximizeModeWindowManagerEnabled(); |
| 100 } | 100 } |
| 101 | 101 |
| 102 bool WMHelperAsh::IsSpokenFeedbackEnabled() const { | 102 bool WMHelperAsh::IsSpokenFeedbackEnabled() const { |
| 103 return ash::Shell::GetInstance() | 103 return ash::Shell::GetInstance() |
| 104 ->accessibility_delegate() | 104 ->accessibility_delegate() |
| 105 ->IsSpokenFeedbackEnabled(); | 105 ->IsSpokenFeedbackEnabled(); |
| 106 } | 106 } |
| 107 | 107 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 149 |
| 150 void WMHelperAsh::OnDisplayConfigurationChanged() { | 150 void WMHelperAsh::OnDisplayConfigurationChanged() { |
| 151 NotifyDisplayConfigurationChanged(); | 151 NotifyDisplayConfigurationChanged(); |
| 152 } | 152 } |
| 153 | 153 |
| 154 void WMHelperAsh::OnKeyboardDeviceConfigurationChanged() { | 154 void WMHelperAsh::OnKeyboardDeviceConfigurationChanged() { |
| 155 NotifyKeyboardDeviceConfigurationChanged(); | 155 NotifyKeyboardDeviceConfigurationChanged(); |
| 156 } | 156 } |
| 157 | 157 |
| 158 } // namespace exo | 158 } // namespace exo |
| OLD | NEW |