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

Side by Side Diff: ash/aura/wm_shell_aura.cc

Issue 2735033003: Promotes IsForceMaximizeOnFirstRun() to WmShell (Closed)
Patch Set: Created 3 years, 9 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 | « ash/aura/wm_shell_aura.h ('k') | ash/common/wm_shell.h » ('j') | 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 "ash/aura/wm_shell_aura.h" 5 #include "ash/aura/wm_shell_aura.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ash/aura/key_event_watcher_aura.h" 9 #include "ash/aura/key_event_watcher_aura.h"
10 #include "ash/aura/pointer_watcher_adapter.h" 10 #include "ash/aura/pointer_watcher_adapter.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 return Shell::GetInstance()->display_manager()->IsInUnifiedMode(); 127 return Shell::GetInstance()->display_manager()->IsInUnifiedMode();
128 } 128 }
129 129
130 bool WmShellAura::IsInUnifiedModeIgnoreMirroring() const { 130 bool WmShellAura::IsInUnifiedModeIgnoreMirroring() const {
131 return Shell::GetInstance() 131 return Shell::GetInstance()
132 ->display_manager() 132 ->display_manager()
133 ->current_default_multi_display_mode() == 133 ->current_default_multi_display_mode() ==
134 display::DisplayManager::UNIFIED; 134 display::DisplayManager::UNIFIED;
135 } 135 }
136 136
137 bool WmShellAura::IsForceMaximizeOnFirstRun() {
138 return delegate()->IsForceMaximizeOnFirstRun();
139 }
140
141 void WmShellAura::SetDisplayWorkAreaInsets(WmWindow* window, 137 void WmShellAura::SetDisplayWorkAreaInsets(WmWindow* window,
142 const gfx::Insets& insets) { 138 const gfx::Insets& insets) {
143 Shell::GetInstance() 139 Shell::GetInstance()
144 ->window_tree_host_manager() 140 ->window_tree_host_manager()
145 ->UpdateWorkAreaOfDisplayNearestWindow(window->aura_window(), insets); 141 ->UpdateWorkAreaOfDisplayNearestWindow(window->aura_window(), insets);
146 } 142 }
147 143
148 bool WmShellAura::IsPinned() { 144 bool WmShellAura::IsPinned() {
149 return Shell::GetInstance()->screen_pinning_controller()->IsPinned(); 145 return Shell::GetInstance()->screen_pinning_controller()->IsPinned();
150 } 146 }
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 for (auto& observer : display_observers_) 306 for (auto& observer : display_observers_)
311 observer.OnDisplayConfigurationChanging(); 307 observer.OnDisplayConfigurationChanging();
312 } 308 }
313 309
314 void WmShellAura::OnDisplayConfigurationChanged() { 310 void WmShellAura::OnDisplayConfigurationChanged() {
315 for (auto& observer : display_observers_) 311 for (auto& observer : display_observers_)
316 observer.OnDisplayConfigurationChanged(); 312 observer.OnDisplayConfigurationChanged();
317 } 313 }
318 314
319 } // namespace ash 315 } // namespace ash
OLDNEW
« no previous file with comments | « ash/aura/wm_shell_aura.h ('k') | ash/common/wm_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698