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

Side by Side Diff: ash/common/wm_shell.h

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.cc ('k') | ash/common/wm_shell.cc » ('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 #ifndef ASH_COMMON_WM_SHELL_H_ 5 #ifndef ASH_COMMON_WM_SHELL_H_
6 #define ASH_COMMON_WM_SHELL_H_ 6 #define ASH_COMMON_WM_SHELL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 virtual bool IsInUnifiedModeIgnoreMirroring() const = 0; 263 virtual bool IsInUnifiedModeIgnoreMirroring() const = 0;
264 264
265 // Returns the first display; this is the first display listed by hardware, 265 // Returns the first display; this is the first display listed by hardware,
266 // which corresponds to internal displays on devices with integrated displays. 266 // which corresponds to internal displays on devices with integrated displays.
267 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 267 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480
268 virtual display::Display GetFirstDisplay() const = 0; 268 virtual display::Display GetFirstDisplay() const = 0;
269 269
270 // Returns true if the first window shown on first run should be 270 // Returns true if the first window shown on first run should be
271 // unconditionally maximized, overriding the heuristic that normally chooses 271 // unconditionally maximized, overriding the heuristic that normally chooses
272 // the window size. 272 // the window size.
273 virtual bool IsForceMaximizeOnFirstRun() = 0; 273 bool IsForceMaximizeOnFirstRun();
274 274
275 // Sets work area insets of the display containing |window|, pings observers. 275 // Sets work area insets of the display containing |window|, pings observers.
276 virtual void SetDisplayWorkAreaInsets(WmWindow* window, 276 virtual void SetDisplayWorkAreaInsets(WmWindow* window,
277 const gfx::Insets& insets) = 0; 277 const gfx::Insets& insets) = 0;
278 278
279 // Returns true if a system-modal dialog window is currently open. 279 // Returns true if a system-modal dialog window is currently open.
280 bool IsSystemModalWindowOpen(); 280 bool IsSystemModalWindowOpen();
281 281
282 // Creates a modal background (a partially-opaque fullscreen window) on all 282 // Creates a modal background (a partially-opaque fullscreen window) on all
283 // displays for |window|. 283 // displays for |window|.
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 551
552 bool added_activation_observer_ = false; 552 bool added_activation_observer_ = false;
553 base::ObserverList<WmActivationObserver> activation_observers_; 553 base::ObserverList<WmActivationObserver> activation_observers_;
554 554
555 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; 555 scoped_refptr<base::SequencedWorkerPool> blocking_pool_;
556 }; 556 };
557 557
558 } // namespace ash 558 } // namespace ash
559 559
560 #endif // ASH_COMMON_WM_SHELL_H_ 560 #endif // ASH_COMMON_WM_SHELL_H_
OLDNEW
« no previous file with comments | « ash/aura/wm_shell_aura.cc ('k') | ash/common/wm_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698