Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: ui/display/edid_parser.h

Issue 215233002: Update ui/display to use primitive types as defined in stdint.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/display/chromeos/x11/native_display_delegate_x11.cc ('k') | ui/display/edid_parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_DISPLAY_EDID_PARSER_H_ 5 #ifndef UI_DISPLAY_EDID_PARSER_H_
6 #define UI_DISPLAY_EDID_PARSER_H_ 6 #define UI_DISPLAY_EDID_PARSER_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 #include <vector> 11 #include <vector>
10 12
11 #include "base/basictypes.h"
12 #include "ui/display/display_export.h" 13 #include "ui/display/display_export.h"
13 14
14 // EDID (Extended Display Identification Data) is a format for monitor 15 // EDID (Extended Display Identification Data) is a format for monitor
15 // metadata. This provides a parser for the data. 16 // metadata. This provides a parser for the data.
16 17
17 namespace ui { 18 namespace ui {
18 19
19 // Generates the display id for the pair of |edid| and |index|, and store in 20 // Generates the display id for the pair of |edid| and |index|, and store in
20 // |display_id_out|. Returns true if the display id is successfully generated, 21 // |display_id_out|. Returns true if the display id is successfully generated,
21 // or false otherwise. 22 // or false otherwise.
22 DISPLAY_EXPORT bool GetDisplayIdFromEDID(const std::vector<uint8>& edid, 23 DISPLAY_EXPORT bool GetDisplayIdFromEDID(const std::vector<uint8_t>& edid,
23 uint8 index, 24 uint8_t index,
24 int64* display_id_out); 25 int64_t* display_id_out);
25 26
26 // Parses |edid| as EDID data and stores extracted data into |manufacturer_id| 27 // Parses |edid| as EDID data and stores extracted data into |manufacturer_id|
27 // and |human_readable_name| and returns true. NULL can be passed for unwanted 28 // and |human_readable_name| and returns true. NULL can be passed for unwanted
28 // output parameters. Some devices (especially internal displays) may not have 29 // output parameters. Some devices (especially internal displays) may not have
29 // the field for |human_readable_name|, and it will return true in that case. 30 // the field for |human_readable_name|, and it will return true in that case.
30 DISPLAY_EXPORT bool ParseOutputDeviceData(const std::vector<uint8>& edid, 31 DISPLAY_EXPORT bool ParseOutputDeviceData(const std::vector<uint8_t>& edid,
31 uint16* manufacturer_id, 32 uint16_t* manufacturer_id,
32 std::string* human_readable_name); 33 std::string* human_readable_name);
33 34
34 DISPLAY_EXPORT bool ParseOutputOverscanFlag(const std::vector<uint8>& edid, 35 DISPLAY_EXPORT bool ParseOutputOverscanFlag(const std::vector<uint8_t>& edid,
35 bool* flag); 36 bool* flag);
36 37
37 } // namespace ui 38 } // namespace ui
38 39
39 #endif // UI_DISPLAY_EDID_PARSER_H_ 40 #endif // UI_DISPLAY_EDID_PARSER_H_
OLDNEW
« no previous file with comments | « ui/display/chromeos/x11/native_display_delegate_x11.cc ('k') | ui/display/edid_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698