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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 } | 74 } |
75 | 75 |
76 void WMHelperMus::AddPostTargetHandler(ui::EventHandler* handler) { | 76 void WMHelperMus::AddPostTargetHandler(ui::EventHandler* handler) { |
77 aura::Env::GetInstance()->AddPostTargetHandler(handler); | 77 aura::Env::GetInstance()->AddPostTargetHandler(handler); |
78 } | 78 } |
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::IsTabletModeWindowManagerEnabled() const { |
85 NOTIMPLEMENTED(); | 85 NOTIMPLEMENTED(); |
86 return false; | 86 return false; |
87 } | 87 } |
88 | 88 |
89 void WMHelperMus::OnActiveFocusClientChanged( | 89 void WMHelperMus::OnActiveFocusClientChanged( |
90 aura::client::FocusClient* focus_client, | 90 aura::client::FocusClient* focus_client, |
91 aura::Window* focus_client_root) { | 91 aura::Window* focus_client_root) { |
92 SetActiveFocusClient(focus_client, focus_client_root); | 92 SetActiveFocusClient(focus_client, focus_client_root); |
93 } | 93 } |
94 | 94 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 NotifyWindowFocused(focused_window_, lost_focus); | 139 NotifyWindowFocused(focused_window_, lost_focus); |
140 } | 140 } |
141 | 141 |
142 aura::client::ActivationClient* WMHelperMus::GetActivationClient() { | 142 aura::client::ActivationClient* WMHelperMus::GetActivationClient() { |
143 return root_with_active_focus_client_ | 143 return root_with_active_focus_client_ |
144 ? aura::client::GetActivationClient(root_with_active_focus_client_) | 144 ? aura::client::GetActivationClient(root_with_active_focus_client_) |
145 : nullptr; | 145 : nullptr; |
146 } | 146 } |
147 | 147 |
148 } // namespace exo | 148 } // namespace exo |
OLD | NEW |