| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this | |
| 2 // source code is governed by a BSD-style license that can be found in the | |
| 3 // LICENSE file. | |
| 4 | |
| 5 #ifndef WEBKIT_GLUE_SCREEN_INFO_H_ | |
| 6 #define WEBKIT_GLUE_SCREEN_INFO_H_ | |
| 7 | |
| 8 #include "base/gfx/rect.h" | |
| 9 | |
| 10 namespace webkit_glue { | |
| 11 | |
| 12 struct ScreenInfo { | |
| 13 // The screen depth in bits per pixel | |
| 14 int depth; | |
| 15 // The bits per colour component. This assumes that the colours are balanced | |
| 16 // equally. | |
| 17 int depth_per_component; | |
| 18 // This can be true for black and white printers | |
| 19 bool is_monochrome; | |
| 20 // This is set from the rcMonitor member of MONITORINFOEX, to whit: | |
| 21 // "A RECT structure that specifies the display monitor rectangle, | |
| 22 // expressed in virtual-screen coordinates. Note that if the monitor is not | |
| 23 // the primary display monitor, some of the rectangle's coordinates may be | |
| 24 // negative values." | |
| 25 gfx::Rect rect; | |
| 26 // This is set from the rcWork member of MONITORINFOEX, to whit: | |
| 27 // "A RECT structure that specifies the work area rectangle of the display | |
| 28 // monitor that can be used by applications, expressed in virtual-screen | |
| 29 // coordinates. Windows uses this rectangle to maximize an application on | |
| 30 // the monitor. The rest of the area in rcMonitor contains system windows | |
| 31 // such as the task bar and side bars. Note that if the monitor is not the | |
| 32 // primary display monitor, some of the rectangle's coordinates may be | |
| 33 // negative values". | |
| 34 gfx::Rect available_rect; | |
| 35 }; | |
| 36 | |
| 37 } // namespace webkit_glue | |
| 38 | |
| 39 #endif // WEBKIT_GLUE_SCREEN_INFO_H_ | |
| OLD | NEW |