| OLD | NEW |
| (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_ |
| OLD | NEW |