Lines Matching refs:Display
13 #include "ui/gfx/display.h"
26 gfx::Display GetDisplay(MONITORINFOEX& monitor_info) {
30 gfx::Display display(id, bounds);
31 display.set_work_area(gfx::Rect(monitor_info.rcWork));
32 display.SetScaleAndBounds(gfx::win::GetDeviceScaleFactor(), bounds);
33 return display;
40 std::vector<gfx::Display>* all_displays =
41 reinterpret_cast<std::vector<gfx::Display>*>(data);
45 gfx::Display display = GetDisplay(monitor_info);
46 all_displays->push_back(display);
84 std::vector<gfx::Display> ScreenWin::GetAllDisplays() const {
85 std::vector<gfx::Display> all_displays;
91 gfx::Display ScreenWin::GetDisplayNearestWindow(gfx::NativeView window) const {
94 // When |window| isn't rooted to a display, we should just return the
95 // default display so we get some correct display information like the
107 gfx::Display ScreenWin::GetDisplayNearestPoint(const gfx::Point& point) const {
116 return gfx::Display();
119 gfx::Display ScreenWin::GetDisplayMatching(const gfx::Rect& match_rect) const {
126 gfx::Display ScreenWin::GetPrimaryDisplay() const {
129 gfx::Display display = GetDisplay(mi);
133 DCHECK_EQ(GetSystemMetrics(SM_CXSCREEN), display.size().width());
134 DCHECK_EQ(GetSystemMetrics(SM_CYSCREEN), display.size().height());
136 return display;