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_mus.h" | 5 #include "components/exo/wm_helper_mus.h" |
6 | 6 |
7 #include "services/ui/public/cpp/window_tree_client.h" | 7 #include "services/ui/public/cpp/window_tree_client.h" |
8 #include "ui/aura/client/focus_client.h" | 8 #include "ui/aura/client/focus_client.h" |
9 #include "ui/aura/env.h" | 9 #include "ui/aura/env.h" |
10 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 void WMHelperMus::RemovePostTargetHandler(ui::EventHandler* handler) { | 94 void WMHelperMus::RemovePostTargetHandler(ui::EventHandler* handler) { |
95 aura::Env::GetInstance()->RemovePostTargetHandler(handler); | 95 aura::Env::GetInstance()->RemovePostTargetHandler(handler); |
96 } | 96 } |
97 | 97 |
98 bool WMHelperMus::IsMaximizeModeWindowManagerEnabled() const { | 98 bool WMHelperMus::IsMaximizeModeWindowManagerEnabled() const { |
99 NOTIMPLEMENTED(); | 99 NOTIMPLEMENTED(); |
100 return false; | 100 return false; |
101 } | 101 } |
102 | 102 |
| 103 bool WMHelperMus::IsSpokenFeedbackEnabled() const { |
| 104 NOTIMPLEMENTED(); |
| 105 return false; |
| 106 } |
| 107 |
| 108 void WMHelperMus::PlayEarcon(int sound_key) const { |
| 109 NOTIMPLEMENTED(); |
| 110 } |
| 111 |
103 void WMHelperMus::OnWindowTreeFocusChanged(ui::Window* gained_focus, | 112 void WMHelperMus::OnWindowTreeFocusChanged(ui::Window* gained_focus, |
104 ui::Window* lost_focus) { | 113 ui::Window* lost_focus) { |
105 aura::Window* gained_active = | 114 aura::Window* gained_active = |
106 gained_focus ? GetToplevelAuraWindow(gained_focus) : nullptr; | 115 gained_focus ? GetToplevelAuraWindow(gained_focus) : nullptr; |
107 aura::Window* lost_active = | 116 aura::Window* lost_active = |
108 lost_focus ? GetToplevelAuraWindow(lost_focus) : nullptr; | 117 lost_focus ? GetToplevelAuraWindow(lost_focus) : nullptr; |
109 | 118 |
110 // Because NativeWidgetMus uses separate FocusClient for every toplevel | 119 // Because NativeWidgetMus uses separate FocusClient for every toplevel |
111 // window, we have to stop observering the FocusClient of the |lost_active| | 120 // window, we have to stop observering the FocusClient of the |lost_active| |
112 // and start observering the FocusClient of the |gained_active|. | 121 // and start observering the FocusClient of the |gained_active|. |
(...skipping 20 matching lines...) Expand all Loading... |
133 | 142 |
134 void WMHelperMus::OnWindowFocused(aura::Window* gained_focus, | 143 void WMHelperMus::OnWindowFocused(aura::Window* gained_focus, |
135 aura::Window* lost_focus) { | 144 aura::Window* lost_focus) { |
136 if (focused_window_ != gained_focus) { | 145 if (focused_window_ != gained_focus) { |
137 focused_window_ = gained_focus; | 146 focused_window_ = gained_focus; |
138 NotifyWindowFocused(gained_focus, lost_focus); | 147 NotifyWindowFocused(gained_focus, lost_focus); |
139 } | 148 } |
140 } | 149 } |
141 | 150 |
142 } // namespace exo | 151 } // namespace exo |
OLD | NEW |