blob: 7dbc4e5e56653d3f91405727d655c6c31dbcfa29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this
// source code is governed by a BSD-style license that can be found in the
// LICENSE file.
#ifndef WEBKIT_GLUE_SCREEN_INFO_H_
#define WEBKIT_GLUE_SCREEN_INFO_H_
#include "base/gfx/rect.h"
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;
};
} // namespace webkit_glue
#endif // WEBKIT_GLUE_SCREEN_INFO_H_
|