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

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

Issue 192483007: Move chromeos/display/* to ui/display/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include display.gyp into ChromeOS builds only 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
(Empty)
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_CHROMEOS_DISPLAY_UTIL_H_
6 #define UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_
7
8 #include <string>
9
10 #include "ui/display/chromeos/output_configurator.h"
11 #include "ui/display/display_constants.h"
12
13 namespace ui {
14
15 // Returns the OutputType by matching known type prefixes to |name|. Returns
16 // OUTPUT_TYPE_UNKNOWN if no valid match.
17 DISPLAY_EXPORT OutputType GetOutputTypeFromName(const std::string& name);
18
19 // Generate the human readable string from EDID obtained from |output|.
20 DISPLAY_EXPORT std::string GetDisplayName(
21 const OutputConfigurator::OutputSnapshot& output);
22
23 // 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 // 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 // false.
28 DISPLAY_EXPORT bool GetOutputOverscanFlag(
29 const OutputConfigurator::OutputSnapshot& output,
30 bool* flag);
31
32 DISPLAY_EXPORT bool ParseOutputOverscanFlag(const unsigned char* prop,
33 unsigned long nitems,
34 bool* flag);
35
36 } // namespace ui
37
38 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_
OLDNEW
« no previous file with comments | « ui/display/chromeos/output_configurator_unittest.cc ('k') | ui/display/chromeos/x11/display_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698