Upstream version 7.35.144.0
[platform/framework/web/crosswalk.git] / src / ui / display / x11 / edid_parser_x11.h
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_DISPLAY_X11_EDID_PARSER_X11_H_
6 #define UI_DISPLAY_X11_EDID_PARSER_X11_H_
7
8 #include <stdint.h>
9
10 #include <string>
11
12 #include "ui/display/display_constants.h"
13 #include "ui/display/display_export.h"
14
15 typedef unsigned long XID;
16 typedef XID RROutput;
17
18 // Xrandr utility functions to help get EDID information.
19
20 namespace ui {
21
22 // Gets the EDID data from |output| and generates the display id through
23 // |GetDisplayIdFromEDID|.
24 DISPLAY_EXPORT bool GetDisplayId(XID output,
25                                  uint8_t index,
26                                  int64_t* display_id_out);
27
28 // Generate the human readable string from EDID obtained from |output|.
29 DISPLAY_EXPORT std::string GetDisplayName(RROutput output);
30
31 // Gets the overscan flag from |output| and stores to |flag|. Returns true if
32 // the flag is found. Otherwise returns false and doesn't touch |flag|. The
33 // output will produce overscan if |flag| is set to true, but the output may
34 // still produce overscan even though it returns true and |flag| is set to
35 // false.
36 DISPLAY_EXPORT bool GetOutputOverscanFlag(RROutput output, bool* flag);
37
38 }  // namespace ui
39
40 #endif  // UI_DISPLAY_X11_EDID_PARSER_X11_H_