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

Side by Side Diff: ash/screen_util.h

Issue 1116313002: Layout login/lock screen, shelf and app list inside the first display in Unified Desktop mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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_unittest.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/basictypes.h" 9 #include "base/basictypes.h"
10 10
(...skipping 19 matching lines...) Expand all
30 // Returns the bounds for maximized windows in parent coordinates. 30 // Returns the bounds for maximized windows in parent coordinates.
31 // Maximized windows trigger auto-hiding the shelf. 31 // Maximized windows trigger auto-hiding the shelf.
32 static gfx::Rect GetMaximizedWindowBoundsInParent(aura::Window* window); 32 static gfx::Rect GetMaximizedWindowBoundsInParent(aura::Window* window);
33 33
34 // Returns the display bounds in parent coordinates. 34 // Returns the display bounds in parent coordinates.
35 static gfx::Rect GetDisplayBoundsInParent(aura::Window* window); 35 static gfx::Rect GetDisplayBoundsInParent(aura::Window* window);
36 36
37 // Returns the display's work area bounds in parent coordinates. 37 // Returns the display's work area bounds in parent coordinates.
38 static gfx::Rect GetDisplayWorkAreaBoundsInParent(aura::Window* window); 38 static gfx::Rect GetDisplayWorkAreaBoundsInParent(aura::Window* window);
39 39
40 // Returns the physical display bounds containing the shelf that
41 // shares the same root window as |root|. Physical displays can
42 // differ from logical displays in unified desktop mode.
43 // TODO(oshima): If we need to expand the unified desktop support to
44 // general use, we should consider always using physical display in
45 // window layout instead of root window, and keep the logical
46 // display only in display management code.
47 static gfx::Rect GetShelfDisplayBoundsInScreen(aura::Window* window);
48
40 // TODO(oshima): Move following two to wm/coordinate_conversion.h 49 // TODO(oshima): Move following two to wm/coordinate_conversion.h
41 // Converts |rect| from |window|'s coordinates to the virtual screen 50 // Converts |rect| from |window|'s coordinates to the virtual screen
42 // coordinates. 51 // coordinates.
43 static gfx::Rect ConvertRectToScreen(aura::Window* window, 52 static gfx::Rect ConvertRectToScreen(aura::Window* window,
44 const gfx::Rect& rect); 53 const gfx::Rect& rect);
45 54
46 // Converts |rect| from virtual screen coordinates to the |window|'s 55 // Converts |rect| from virtual screen coordinates to the |window|'s
47 // coordinates. 56 // coordinates.
48 static gfx::Rect ConvertRectFromScreen(aura::Window* window, 57 static gfx::Rect ConvertRectFromScreen(aura::Window* window,
49 const gfx::Rect& rect); 58 const gfx::Rect& rect);
50 59
51 // Returns a gfx::Display object for secondary display. Returns 60 // Returns a gfx::Display object for secondary display. Returns
52 // invalid display if there is no secondary display connected. 61 // invalid display if there is no secondary display connected.
53 static const gfx::Display& GetSecondaryDisplay(); 62 static const gfx::Display& GetSecondaryDisplay();
54 63
55 // Returns a gfx::Display object for the specified id. Returns
56 // invalid display if no such display is connected.
57 static const gfx::Display& GetDisplayForId(int64 display_id);
58
59 private: 64 private:
60 ScreenUtil() {} 65 ScreenUtil() {}
61 ~ScreenUtil() {} 66 ~ScreenUtil() {}
62 67
63 DISALLOW_COPY_AND_ASSIGN(ScreenUtil); 68 DISALLOW_COPY_AND_ASSIGN(ScreenUtil);
64 }; 69 };
65 70
66 } // namespace ash 71 } // namespace ash
67 72
68 #endif // ASH_SCREEN_UTIL_H_ 73 #endif // ASH_SCREEN_UTIL_H_
OLDNEW
« no previous file with comments | « ash/root_window_controller_unittest.cc ('k') | ash/screen_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698