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

Side by Side Diff: ui/gfx/win/display_info.h

Issue 1674433002: Revert of ScreenWin Testability and Restructuring (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « ui/gfx/test/gfx_util.cc ('k') | ui/gfx/win/display_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_GFX_WIN_DISPLAY_INFO_H_
6 #define UI_GFX_WIN_DISPLAY_INFO_H_
7
8 #include <windows.h>
9 #include <stdint.h>
10
11 #include "ui/gfx/display.h"
12 #include "ui/gfx/gfx_export.h"
13
14 namespace gfx {
15 namespace win {
16
17 // Gathers the parameters necessary to create a gfx::win::ScreenWinDisplay.
18 struct GFX_EXPORT DisplayInfo final {
19 DisplayInfo(const MONITORINFOEX& monitor_info, float device_scale_factor);
20 DisplayInfo(const MONITORINFOEX& monitor_info,
21 float device_scale_factor,
22 gfx::Display::Rotation rotation);
23
24 static int64_t DeviceIdFromDeviceName(const wchar_t* device_name);
25
26 int64_t id;
27 gfx::Display::Rotation rotation;
28 gfx::Rect screen_rect;
29 gfx::Rect screen_work_rect;
30 float device_scale_factor;
31 };
32
33 } // namespace win
34 } // namespace gfx
35
36 #endif // UI_GFX_WIN_DISPLAY_INFO_H_
OLDNEW
« no previous file with comments | « ui/gfx/test/gfx_util.cc ('k') | ui/gfx/win/display_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698