Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 namespace win { | |
| 15 | |
| 16 class DisplayInfo; | |
| 17 | |
| 18 // A display used by gfx::ScreenWin. | |
| 19 // It holds a display and additional parameters used for DPI calculations. | |
| 20 class ScreenWinDisplay final { | |
|
sky
2016/02/03 21:47:38
Did you consider making this a struct and the two
robliao
2016/02/03 22:47:20
I did and erred on the side of keeping this a clas
robliao
2016/02/04 01:11:30
I also forgot that I got bitten by this:
http://st
robliao
2016/02/04 01:42:52
And fixed.
| |
| 21 public: | |
| 22 ScreenWinDisplay(); | |
| 23 explicit ScreenWinDisplay(const DisplayInfo& display_info); | |
| 24 | |
| 25 const Display& display() const { return display_; } | |
| 26 const Rect& physical_bounds() const { return pixel_bounds_; }; | |
| 27 | |
| 28 private: | |
| 29 const gfx::Display display_; | |
| 30 const gfx::Rect pixel_bounds_; | |
| 31 }; | |
| 32 | |
| 33 } // namespace win | |
| 34 } // namespace gfx | |
| 35 | |
| 36 #endif // UI_GFX_WIN_SCREEN_WIN_DISPLAY_H_ | |
| OLD | NEW |