| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 } | 141 } |
| 142 | 142 |
| 143 void WMHelperMus::OnWindowFocused(aura::Window* gained_focus, | 143 void WMHelperMus::OnWindowFocused(aura::Window* gained_focus, |
| 144 aura::Window* lost_focus) { | 144 aura::Window* lost_focus) { |
| 145 if (focused_window_ != gained_focus) { | 145 if (focused_window_ != gained_focus) { |
| 146 focused_window_ = gained_focus; | 146 focused_window_ = gained_focus; |
| 147 NotifyWindowFocused(gained_focus, lost_focus); | 147 NotifyWindowFocused(gained_focus, lost_focus); |
| 148 } | 148 } |
| 149 } | 149 } |
| 150 | 150 |
| 151 void WMHelperMus::OnKeyboardDeviceConfigurationChanged() { |
| 152 NotifyKeyboardDeviceConfigurationChanged(); |
| 153 } |
| 154 |
| 151 } // namespace exo | 155 } // namespace exo |
| OLD | NEW |