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

Side by Side Diff: components/exo/wm_helper_ash.cc

Issue 2738133003: Promotes a handful of members from WmShell to Shell (Closed)
Patch Set: merge Created 3 years, 9 months 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 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 ash::Shell::GetInstance()->RemovePostTargetHandler(handler); 91 ash::Shell::GetInstance()->RemovePostTargetHandler(handler);
92 } 92 }
93 93
94 bool WMHelperAsh::IsMaximizeModeWindowManagerEnabled() const { 94 bool WMHelperAsh::IsMaximizeModeWindowManagerEnabled() const {
95 return ash::WmShell::Get() 95 return ash::WmShell::Get()
96 ->maximize_mode_controller() 96 ->maximize_mode_controller()
97 ->IsMaximizeModeWindowManagerEnabled(); 97 ->IsMaximizeModeWindowManagerEnabled();
98 } 98 }
99 99
100 bool WMHelperAsh::IsSpokenFeedbackEnabled() const { 100 bool WMHelperAsh::IsSpokenFeedbackEnabled() const {
101 return ash::WmShell::Get() 101 return ash::Shell::GetInstance()
102 ->accessibility_delegate() 102 ->accessibility_delegate()
103 ->IsSpokenFeedbackEnabled(); 103 ->IsSpokenFeedbackEnabled();
104 } 104 }
105 105
106 void WMHelperAsh::PlayEarcon(int sound_key) const { 106 void WMHelperAsh::PlayEarcon(int sound_key) const {
107 return ash::WmShell::Get()->accessibility_delegate()->PlayEarcon(sound_key); 107 return ash::Shell::GetInstance()->accessibility_delegate()->PlayEarcon(
108 sound_key);
108 } 109 }
109 110
110 void WMHelperAsh::OnWindowActivated( 111 void WMHelperAsh::OnWindowActivated(
111 aura::client::ActivationChangeObserver::ActivationReason reason, 112 aura::client::ActivationChangeObserver::ActivationReason reason,
112 aura::Window* gained_active, 113 aura::Window* gained_active,
113 aura::Window* lost_active) { 114 aura::Window* lost_active) {
114 NotifyWindowActivated(gained_active, lost_active); 115 NotifyWindowActivated(gained_active, lost_active);
115 } 116 }
116 117
117 void WMHelperAsh::OnWindowFocused(aura::Window* gained_focus, 118 void WMHelperAsh::OnWindowFocused(aura::Window* gained_focus,
(...skipping 24 matching lines...) Expand all
142 143
143 void WMHelperAsh::OnMaximizeModeEnded() { 144 void WMHelperAsh::OnMaximizeModeEnded() {
144 NotifyMaximizeModeEnded(); 145 NotifyMaximizeModeEnded();
145 } 146 }
146 147
147 void WMHelperAsh::OnKeyboardDeviceConfigurationChanged() { 148 void WMHelperAsh::OnKeyboardDeviceConfigurationChanged() {
148 NotifyKeyboardDeviceConfigurationChanged(); 149 NotifyKeyboardDeviceConfigurationChanged();
149 } 150 }
150 151
151 } // namespace exo 152 } // namespace exo
OLDNEW
« no previous file with comments | « components/exo/shell_surface_unittest.cc ('k') | ui/arc/notification/arc_notification_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698