| 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 "ui/aura/client/focus_client.h" | 7 #include "ui/aura/client/focus_client.h" |
| 8 #include "ui/aura/env.h" | 8 #include "ui/aura/env.h" |
| 9 #include "ui/aura/mus/focus_synchronizer.h" | 9 #include "ui/aura/mus/focus_synchronizer.h" |
| 10 #include "ui/aura/mus/window_tree_client.h" | 10 #include "ui/aura/mus/window_tree_client.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 void WMHelperMus::RemovePostTargetHandler(ui::EventHandler* handler) { | 80 void WMHelperMus::RemovePostTargetHandler(ui::EventHandler* handler) { |
| 81 aura::Env::GetInstance()->RemovePostTargetHandler(handler); | 81 aura::Env::GetInstance()->RemovePostTargetHandler(handler); |
| 82 } | 82 } |
| 83 | 83 |
| 84 bool WMHelperMus::IsMaximizeModeWindowManagerEnabled() const { | 84 bool WMHelperMus::IsMaximizeModeWindowManagerEnabled() const { |
| 85 NOTIMPLEMENTED(); | 85 NOTIMPLEMENTED(); |
| 86 return false; | 86 return false; |
| 87 } | 87 } |
| 88 | 88 |
| 89 bool WMHelperMus::IsSpokenFeedbackEnabled() const { |
| 90 NOTIMPLEMENTED(); |
| 91 return false; |
| 92 } |
| 93 |
| 94 void WMHelperMus::PlayEarcon(int sound_key) const { |
| 95 NOTIMPLEMENTED(); |
| 96 } |
| 97 |
| 89 void WMHelperMus::OnActiveFocusClientChanged( | 98 void WMHelperMus::OnActiveFocusClientChanged( |
| 90 aura::client::FocusClient* focus_client, | 99 aura::client::FocusClient* focus_client, |
| 91 aura::Window* focus_client_root) { | 100 aura::Window* focus_client_root) { |
| 92 SetActiveFocusClient(focus_client, focus_client_root); | 101 SetActiveFocusClient(focus_client, focus_client_root); |
| 93 } | 102 } |
| 94 | 103 |
| 95 void WMHelperMus::OnWindowFocused(aura::Window* gained_focus, | 104 void WMHelperMus::OnWindowFocused(aura::Window* gained_focus, |
| 96 aura::Window* lost_focus) { | 105 aura::Window* lost_focus) { |
| 97 if (focused_window_ == gained_focus) | 106 if (focused_window_ == gained_focus) |
| 98 return; | 107 return; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 NotifyWindowFocused(focused_window_, lost_focus); | 148 NotifyWindowFocused(focused_window_, lost_focus); |
| 140 } | 149 } |
| 141 | 150 |
| 142 aura::client::ActivationClient* WMHelperMus::GetActivationClient() { | 151 aura::client::ActivationClient* WMHelperMus::GetActivationClient() { |
| 143 return root_with_active_focus_client_ | 152 return root_with_active_focus_client_ |
| 144 ? aura::client::GetActivationClient(root_with_active_focus_client_) | 153 ? aura::client::GetActivationClient(root_with_active_focus_client_) |
| 145 : nullptr; | 154 : nullptr; |
| 146 } | 155 } |
| 147 | 156 |
| 148 } // namespace exo | 157 } // namespace exo |
| OLD | NEW |