summaryrefslogtreecommitdiffstats
path: root/webkit/glue/screen_info.h
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-26 00:16:04 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-26 00:16:04 +0000
commit8a304074522d7c710298bb24ae55fb4a60143ba6 (patch)
tree1958808f43749a201b2d1d14affd6fc02c86d074 /webkit/glue/screen_info.h
parentfd00c2f8eb4195745199821f373b018b090b4c50 (diff)
downloadchromium_src-8a304074522d7c710298bb24ae55fb4a60143ba6.zip
chromium_src-8a304074522d7c710298bb24ae55fb4a60143ba6.tar.gz
chromium_src-8a304074522d7c710298bb24ae55fb4a60143ba6.tar.bz2
Implement the rest of ScreenInfo on Linux.
Without this, we leak undefined data into V8 and cause lots of Valgrind errors. Review URL: http://codereview.chromium.org/12441 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6013 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/screen_info.h')
-rw-r--r--webkit/glue/screen_info.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/webkit/glue/screen_info.h b/webkit/glue/screen_info.h
index b904a9b..7dbc4e5 100644
--- a/webkit/glue/screen_info.h
+++ b/webkit/glue/screen_info.h
@@ -10,10 +10,27 @@
namespace webkit_glue {
struct ScreenInfo {
+ // The screen depth in bits per pixel
int depth;
+ // The bits per colour component. This assumes that the colours are balanced
+ // equally.
int depth_per_component;
+ // This can be true for black and white printers
bool is_monochrome;
+ // This is set from the rcMonitor member of MONITORINFOEX, to whit:
+ // "A RECT structure that specifies the display monitor rectangle,
+ // expressed in virtual-screen coordinates. Note that if the monitor is not
+ // the primary display monitor, some of the rectangle's coordinates may be
+ // negative values."
gfx::Rect rect;
+ // This is set from the rcWork member of MONITORINFOEX, to whit:
+ // "A RECT structure that specifies the work area rectangle of the display
+ // monitor that can be used by applications, expressed in virtual-screen
+ // coordinates. Windows uses this rectangle to maximize an application on
+ // the monitor. The rest of the area in rcMonitor contains system windows
+ // such as the task bar and side bars. Note that if the monitor is not the
+ // primary display monitor, some of the rectangle's coordinates may be
+ // negative values".
gfx::Rect available_rect;
};