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

Side by Side Diff: ui/display/chromeos/x11/display_util.h

Issue 187073002: Refactoring display configuration state to allow generic state objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 9 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
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_CHROMEOS_DISPLAY_UTIL_H_ 5 #ifndef UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_
6 #define UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_ 6 #define UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ui/display/chromeos/output_configurator.h"
11 #include "ui/display/display_constants.h" 10 #include "ui/display/display_constants.h"
11 #include "ui/display/display_export.h"
12
13 typedef unsigned long RROutput;
12 14
13 namespace ui { 15 namespace ui {
14 16
15 // Returns the OutputType by matching known type prefixes to |name|. Returns 17 // Returns the OutputType by matching known type prefixes to |name|. Returns
16 // OUTPUT_TYPE_UNKNOWN if no valid match. 18 // OUTPUT_TYPE_UNKNOWN if no valid match.
17 DISPLAY_EXPORT OutputType GetOutputTypeFromName(const std::string& name); 19 DISPLAY_EXPORT OutputType GetOutputTypeFromName(const std::string& name);
18 20
19 // Generate the human readable string from EDID obtained from |output|. 21 // Generate the human readable string from EDID obtained from |output|.
20 DISPLAY_EXPORT std::string GetDisplayName( 22 DISPLAY_EXPORT std::string GetDisplayName(RROutput output);
21 const OutputConfigurator::OutputSnapshot& output);
22 23
23 // Gets the overscan flag from |output| and stores to |flag|. Returns true if 24 // Gets the overscan flag from |output| and stores to |flag|. Returns true if
24 // the flag is found. Otherwise returns false and doesn't touch |flag|. The 25 // the flag is found. Otherwise returns false and doesn't touch |flag|. The
25 // output will produce overscan if |flag| is set to true, but the output may 26 // output will produce overscan if |flag| is set to true, but the output may
26 // still produce overscan even though it returns true and |flag| is set to 27 // still produce overscan even though it returns true and |flag| is set to
27 // false. 28 // false.
28 DISPLAY_EXPORT bool GetOutputOverscanFlag( 29 DISPLAY_EXPORT bool GetOutputOverscanFlag(RROutput output, bool* flag);
29 const OutputConfigurator::OutputSnapshot& output,
30 bool* flag);
31 30
32 DISPLAY_EXPORT bool ParseOutputOverscanFlag(const unsigned char* prop, 31 DISPLAY_EXPORT bool ParseOutputOverscanFlag(const unsigned char* prop,
33 unsigned long nitems, 32 unsigned long nitems,
34 bool* flag); 33 bool* flag);
35 34
36 } // namespace ui 35 } // namespace ui
37 36
38 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_ 37 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_
OLDNEW
« no previous file with comments | « ui/display/chromeos/x11/display_snapshot_x11.cc ('k') | ui/display/chromeos/x11/display_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698