Chromium Code Reviews| 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_ash.h" | 5 #include "components/exo/wm_helper_ash.h" |
| 6 | 6 |
| 7 #include "ash/accessibility_delegate.h" | 7 #include "ash/accessibility_delegate.h" |
| 8 #include "ash/public/cpp/config.h" | 8 #include "ash/public/cpp/config.h" |
| 9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
| 10 #include "ash/shell_port.h" | 10 #include "ash/shell_port.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 53 | 53 |
| 54 //////////////////////////////////////////////////////////////////////////////// | 54 //////////////////////////////////////////////////////////////////////////////// |
| 55 // WMHelperAsh, private: | 55 // WMHelperAsh, private: |
| 56 | 56 |
| 57 const display::ManagedDisplayInfo WMHelperAsh::GetDisplayInfo( | 57 const display::ManagedDisplayInfo WMHelperAsh::GetDisplayInfo( |
| 58 int64_t display_id) const { | 58 int64_t display_id) const { |
| 59 return ash::Shell::Get()->display_manager()->GetDisplayInfo(display_id); | 59 return ash::Shell::Get()->display_manager()->GetDisplayInfo(display_id); |
| 60 } | 60 } |
| 61 | 61 |
| 62 aura::Window* WMHelperAsh::GetContainer(int container_id) { | 62 aura::Window* WMHelperAsh::GetContainer(int container_id) { |
| 63 return ash::Shell::GetContainer(ash::Shell::GetRootWindowForNewWindows(), | 63 return ash::Shell::GetContainer(ash::Shell::GetPrimaryRootWindow(), |
|
reveman
2017/05/04 21:56:11
nit: please add a TODO with link to bug here to ex
Dominik Laskowski
2017/05/04 22:42:09
Done.
| |
| 64 container_id); | 64 container_id); |
| 65 } | 65 } |
| 66 | 66 |
| 67 aura::Window* WMHelperAsh::GetActiveWindow() const { | 67 aura::Window* WMHelperAsh::GetActiveWindow() const { |
| 68 return ash::Shell::Get()->activation_client()->GetActiveWindow(); | 68 return ash::Shell::Get()->activation_client()->GetActiveWindow(); |
| 69 } | 69 } |
| 70 | 70 |
| 71 aura::Window* WMHelperAsh::GetFocusedWindow() const { | 71 aura::Window* WMHelperAsh::GetFocusedWindow() const { |
| 72 aura::client::FocusClient* focus_client = | 72 aura::client::FocusClient* focus_client = |
| 73 aura::client::GetFocusClient(ash::Shell::GetPrimaryRootWindow()); | 73 aura::client::GetFocusClient(ash::Shell::GetPrimaryRootWindow()); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 154 | 154 |
| 155 void WMHelperAsh::OnDisplayConfigurationChanged() { | 155 void WMHelperAsh::OnDisplayConfigurationChanged() { |
| 156 NotifyDisplayConfigurationChanged(); | 156 NotifyDisplayConfigurationChanged(); |
| 157 } | 157 } |
| 158 | 158 |
| 159 void WMHelperAsh::OnKeyboardDeviceConfigurationChanged() { | 159 void WMHelperAsh::OnKeyboardDeviceConfigurationChanged() { |
| 160 NotifyKeyboardDeviceConfigurationChanged(); | 160 NotifyKeyboardDeviceConfigurationChanged(); |
| 161 } | 161 } |
| 162 | 162 |
| 163 } // namespace exo | 163 } // namespace exo |
| OLD | NEW |