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

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

Issue 1426933002: Refactor Windows DPI Point, Rect, and Size for Multiple Monitor DPI Awareness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Other Unit Tests - Moved Inner Classes Outside Created 4 years, 11 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
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_SCREEN_WIN_DISPLAY_H_
6 #define UI_GFX_WIN_SCREEN_WIN_DISPLAY_H_
7
8 #include <windows.h>
9
10 #include "ui/gfx/display.h"
11 #include "ui/gfx/geometry/rect.h"
12
13 namespace gfx {
14
15 class Display;
16 class Rect;
17
18 namespace win {
19
20 class DisplayInfo;
21
22 // A display used by gfx::ScreenWin.
23 // It holds a display and additional parameters used for DPI calculations.
24 class ScreenWinDisplay {
25 public:
26 ScreenWinDisplay();
27 explicit ScreenWinDisplay(const DisplayInfo& display_info);
28 ScreenWinDisplay(const ScreenWinDisplay& ref,
29 const DisplayInfo& display_info);
30
31 const Display& display() const;
32 const Rect& physical_bounds() const;
33
34 private:
35 gfx::Display display_;
36 gfx::Rect pixel_bounds_;
37 };
38
39 } // namespace win
40 } // namespace gfx
41
42 #endif // UI_GFX_WIN_SCREEN_WIN_DISPLAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698