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

Side by Side Diff: ash/screen_util.h

Issue 2876993002: Introduce window container to be used by lock screen app windows (Closed)
Patch Set: . 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 | « ash/root_window_controller.cc ('k') | ash/screen_util.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SCREEN_UTIL_H_ 5 #ifndef ASH_SCREEN_UTIL_H_
6 #define ASH_SCREEN_UTIL_H_ 6 #define ASH_SCREEN_UTIL_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 10
(...skipping 12 matching lines...) Expand all
23 // Returns the bounds for maximized windows in parent coordinates. 23 // Returns the bounds for maximized windows in parent coordinates.
24 // Maximized windows trigger auto-hiding the shelf. 24 // Maximized windows trigger auto-hiding the shelf.
25 static gfx::Rect GetMaximizedWindowBoundsInParent(aura::Window* window); 25 static gfx::Rect GetMaximizedWindowBoundsInParent(aura::Window* window);
26 26
27 // Returns the display bounds in parent coordinates. 27 // Returns the display bounds in parent coordinates.
28 static gfx::Rect GetDisplayBoundsInParent(aura::Window* window); 28 static gfx::Rect GetDisplayBoundsInParent(aura::Window* window);
29 29
30 // Returns the display's work area bounds in parent coordinates. 30 // Returns the display's work area bounds in parent coordinates.
31 static gfx::Rect GetDisplayWorkAreaBoundsInParent(aura::Window* window); 31 static gfx::Rect GetDisplayWorkAreaBoundsInParent(aura::Window* window);
32 32
33 // Returns the display's work area bounds in parent coordinates on lock
34 // screen, i.e. for work area with forced bottom alignment.
35 // Note that unlike |GetDisplayWorkAreaBoundsInParent|, this method uses
36 // work area bounds that are updated when the screen is locked. For example
37 // if shelf alignment is set to right before screen lock,
38 // |GetDisplayWorkAreaBoundsInParent| will return work are bounds for right
39 // shelf alignment - this method will return work area for bottom shelf
40 // alignment (which is always used on lock screen).
41 static gfx::Rect GetDisplayWorkAreaBoundsInParentForLockScreen(
42 aura::Window* window);
43
33 // Returns the bounds of the physical display containing the shelf for 44 // Returns the bounds of the physical display containing the shelf for
34 // |window|. Physical displays can differ from logical displays in unified 45 // |window|. Physical displays can differ from logical displays in unified
35 // desktop mode. 46 // desktop mode.
36 // TODO(oshima): Consider using physical displays in window layout, instead of 47 // TODO(oshima): Consider using physical displays in window layout, instead of
37 // root windows, and only use logical display in display management code. 48 // root windows, and only use logical display in display management code.
38 static gfx::Rect GetDisplayBoundsWithShelf(aura::Window* window); 49 static gfx::Rect GetDisplayBoundsWithShelf(aura::Window* window);
39 50
40 private: 51 private:
41 DISALLOW_IMPLICIT_CONSTRUCTORS(ScreenUtil); 52 DISALLOW_IMPLICIT_CONSTRUCTORS(ScreenUtil);
42 }; 53 };
43 54
44 } // namespace ash 55 } // namespace ash
45 56
46 #endif // ASH_SCREEN_UTIL_H_ 57 #endif // ASH_SCREEN_UTIL_H_
OLDNEW
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/screen_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698