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

Side by Side Diff: ash/screen_util.h

Issue 2355063002: Separate ash::test::DisplayManagerTestApi from ash (Closed)
Patch Set: review comment Created 4 years, 2 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/mus/workspace/workspace_layout_manager_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/macros.h" 9 #include "base/macros.h"
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // TODO(oshima): Move following two to wm/coordinate_conversion.h 43 // TODO(oshima): Move following two to wm/coordinate_conversion.h
44 // Converts |rect| from |window|'s coordinates to the virtual screen 44 // Converts |rect| from |window|'s coordinates to the virtual screen
45 // coordinates. 45 // coordinates.
46 static gfx::Rect ConvertRectToScreen(aura::Window* window, 46 static gfx::Rect ConvertRectToScreen(aura::Window* window,
47 const gfx::Rect& rect); 47 const gfx::Rect& rect);
48 48
49 // Converts |rect| from virtual screen coordinates to the |window|'s 49 // Converts |rect| from virtual screen coordinates to the |window|'s
50 // coordinates. 50 // coordinates.
51 static gfx::Rect ConvertRectFromScreen(aura::Window* window, 51 static gfx::Rect ConvertRectFromScreen(aura::Window* window,
52 const gfx::Rect& rect); 52 const gfx::Rect& rect);
53
54 // Returns a display::Display object for secondary display. Returns
55 // invalid display if there is no secondary display connected.
56 static const display::Display& GetSecondaryDisplay();
57
58 private: 53 private:
59 ScreenUtil() {} 54 ScreenUtil() {}
60 ~ScreenUtil() {} 55 ~ScreenUtil() {}
61 56
62 DISALLOW_COPY_AND_ASSIGN(ScreenUtil); 57 DISALLOW_COPY_AND_ASSIGN(ScreenUtil);
63 }; 58 };
64 59
65 } // namespace ash 60 } // namespace ash
66 61
67 #endif // ASH_SCREEN_UTIL_H_ 62 #endif // ASH_SCREEN_UTIL_H_
OLDNEW
« no previous file with comments | « ash/mus/workspace/workspace_layout_manager_unittest.cc ('k') | ash/screen_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698