Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Side by Side Diff: components/exo/wm_helper_ash.cc

Issue 2847763002: [M58] exo: Confine windows to primary display (Closed)
Patch Set: Rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/exo/shell_surface.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/common/accessibility_delegate.h" 7 #include "ash/common/accessibility_delegate.h"
8 #include "ash/common/system/tray/system_tray_notifier.h" 8 #include "ash/common/system/tray/system_tray_notifier.h"
9 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" 9 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
10 #include "ash/common/wm_shell.h" 10 #include "ash/common/wm_shell.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 //////////////////////////////////////////////////////////////////////////////// 46 ////////////////////////////////////////////////////////////////////////////////
47 // WMHelperAsh, private: 47 // WMHelperAsh, private:
48 48
49 const display::ManagedDisplayInfo WMHelperAsh::GetDisplayInfo( 49 const display::ManagedDisplayInfo WMHelperAsh::GetDisplayInfo(
50 int64_t display_id) const { 50 int64_t display_id) const {
51 return ash::Shell::GetInstance()->display_manager()->GetDisplayInfo( 51 return ash::Shell::GetInstance()->display_manager()->GetDisplayInfo(
52 display_id); 52 display_id);
53 } 53 }
54 54
55 aura::Window* WMHelperAsh::GetContainer(int container_id) { 55 aura::Window* WMHelperAsh::GetContainer(int container_id) {
56 return ash::Shell::GetContainer(ash::Shell::GetTargetRootWindow(), 56 return ash::Shell::GetContainer(ash::Shell::GetPrimaryRootWindow(),
57 container_id); 57 container_id);
58 } 58 }
59 59
60 aura::Window* WMHelperAsh::GetActiveWindow() const { 60 aura::Window* WMHelperAsh::GetActiveWindow() const {
61 return ash::Shell::GetInstance()->activation_client()->GetActiveWindow(); 61 return ash::Shell::GetInstance()->activation_client()->GetActiveWindow();
62 } 62 }
63 63
64 aura::Window* WMHelperAsh::GetFocusedWindow() const { 64 aura::Window* WMHelperAsh::GetFocusedWindow() const {
65 aura::client::FocusClient* focus_client = 65 aura::client::FocusClient* focus_client =
66 aura::client::GetFocusClient(ash::Shell::GetPrimaryRootWindow()); 66 aura::client::GetFocusClient(ash::Shell::GetPrimaryRootWindow());
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 void WMHelperAsh::OnMaximizeModeEnded() { 143 void WMHelperAsh::OnMaximizeModeEnded() {
144 NotifyMaximizeModeEnded(); 144 NotifyMaximizeModeEnded();
145 } 145 }
146 146
147 void WMHelperAsh::OnKeyboardDeviceConfigurationChanged() { 147 void WMHelperAsh::OnKeyboardDeviceConfigurationChanged() {
148 NotifyKeyboardDeviceConfigurationChanged(); 148 NotifyKeyboardDeviceConfigurationChanged();
149 } 149 }
150 150
151 } // namespace exo 151 } // namespace exo
OLDNEW
« no previous file with comments | « components/exo/shell_surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698