Home | History | Annotate | Download | only in host

Lines Matching refs:mode

13 // TODO(jamiewalch): Use the correct DPI for the mode: http://crbug.com/172405.
50 DWORD mode_number, DWORD flags, DEVMODE* mode);
52 // Returns true if the mode has width, height, bits-per-pixel, frequency
54 static bool IsModeValid(const DEVMODE& mode);
56 // Returns the width & height of |mode|, or 0x0 if they are missing.
57 static ScreenResolution GetModeResolution(const DEVMODE& mode);
84 // the same resolution, store the one most closely matching the current mode
149 // Restore the display mode based on the registry configuration.
163 DWORD mode_number, DWORD flags, DEVMODE* mode) {
164 memset(mode, 0, sizeof(DEVMODE));
165 mode->dmSize = sizeof(DEVMODE);
166 if (!EnumDisplaySettingsEx(NULL, mode_number, mode, flags))
172 bool DesktopResizerWin::IsModeValid(const DEVMODE& mode) {
176 return (mode.dmFields & kRequiredFields) == kRequiredFields;
180 ScreenResolution DesktopResizerWin::GetModeResolution(const DEVMODE& mode) {
181 DCHECK(IsModeValid(mode));
183 webrtc::DesktopSize(mode.dmPelsWidth, mode.dmPelsHeight),