| 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/window.h" | 9 #include "ui/aura/window.h" |
| 10 #include "ui/display/manager/managed_display_info.h" | 10 #include "ui/display/manager/managed_display_info.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 //////////////////////////////////////////////////////////////////////////////// | 30 //////////////////////////////////////////////////////////////////////////////// |
| 31 // WMHelperMus, private: | 31 // WMHelperMus, private: |
| 32 | 32 |
| 33 const display::ManagedDisplayInfo WMHelperMus::GetDisplayInfo( | 33 const display::ManagedDisplayInfo WMHelperMus::GetDisplayInfo( |
| 34 int64_t display_id) const { | 34 int64_t display_id) const { |
| 35 // TODO(penghuang): Return real display info when it is supported in mus. | 35 // TODO(penghuang): Return real display info when it is supported in mus. |
| 36 return display::ManagedDisplayInfo(display_id, "", false); | 36 return display::ManagedDisplayInfo(display_id, "", false); |
| 37 } | 37 } |
| 38 | 38 |
| 39 aura::Window* WMHelperMus::GetContainer(int container_id) { | 39 aura::Window* WMHelperMus::GetContainer(int64_t display_id, int container_id) { |
| 40 NOTIMPLEMENTED(); | 40 NOTIMPLEMENTED(); |
| 41 return nullptr; | 41 return nullptr; |
| 42 } | 42 } |
| 43 | 43 |
| 44 aura::Window* WMHelperMus::GetActiveWindow() const { | 44 aura::Window* WMHelperMus::GetActiveWindow() const { |
| 45 return active_window_; | 45 return active_window_; |
| 46 } | 46 } |
| 47 | 47 |
| 48 aura::Window* WMHelperMus::GetFocusedWindow() const { | 48 aura::Window* WMHelperMus::GetFocusedWindow() const { |
| 49 return focused_window_; | 49 return focused_window_; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 bool WMHelperMus::IsSpokenFeedbackEnabled() const { | 82 bool WMHelperMus::IsSpokenFeedbackEnabled() const { |
| 83 NOTIMPLEMENTED(); | 83 NOTIMPLEMENTED(); |
| 84 return false; | 84 return false; |
| 85 } | 85 } |
| 86 | 86 |
| 87 void WMHelperMus::PlayEarcon(int sound_key) const { | 87 void WMHelperMus::PlayEarcon(int sound_key) const { |
| 88 NOTIMPLEMENTED(); | 88 NOTIMPLEMENTED(); |
| 89 } | 89 } |
| 90 | 90 |
| 91 void WMHelperMus::SetCursor(gfx::NativeCursor cursor) { |
| 92 NOTIMPLEMENTED(); |
| 93 } |
| 94 |
| 91 void WMHelperMus::OnWindowInitialized(aura::Window* window) {} | 95 void WMHelperMus::OnWindowInitialized(aura::Window* window) {} |
| 92 | 96 |
| 93 void WMHelperMus::OnActiveFocusClientChanged( | 97 void WMHelperMus::OnActiveFocusClientChanged( |
| 94 aura::client::FocusClient* focus_client, | 98 aura::client::FocusClient* focus_client, |
| 95 aura::Window* window) { | 99 aura::Window* window) { |
| 96 SetActiveFocusClient(focus_client, window); | 100 SetActiveFocusClient(focus_client, window); |
| 97 } | 101 } |
| 98 | 102 |
| 99 void WMHelperMus::OnWindowFocused(aura::Window* gained_focus, | 103 void WMHelperMus::OnWindowFocused(aura::Window* gained_focus, |
| 100 aura::Window* lost_focus) { | 104 aura::Window* lost_focus) { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 NotifyWindowFocused(focused_window_, lost_focus); | 147 NotifyWindowFocused(focused_window_, lost_focus); |
| 144 } | 148 } |
| 145 | 149 |
| 146 aura::client::ActivationClient* WMHelperMus::GetActivationClient() { | 150 aura::client::ActivationClient* WMHelperMus::GetActivationClient() { |
| 147 return root_with_active_focus_client_ | 151 return root_with_active_focus_client_ |
| 148 ? aura::client::GetActivationClient(root_with_active_focus_client_) | 152 ? aura::client::GetActivationClient(root_with_active_focus_client_) |
| 149 : nullptr; | 153 : nullptr; |
| 150 } | 154 } |
| 151 | 155 |
| 152 } // namespace exo | 156 } // namespace exo |
| OLD | NEW |