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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/chromeos/x11/display_util.h
diff --git a/ui/display/chromeos/x11/display_util.h b/ui/display/chromeos/x11/display_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..d8946b87c274e63369d7e8f673e9ee96069956dc
--- /dev/null
+++ b/ui/display/chromeos/x11/display_util.h
@@ -0,0 +1,38 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_
+#define UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_
+
+#include <string>
+
+#include "ui/display/chromeos/output_configurator.h"
+#include "ui/display/display_constants.h"
+
+namespace ui {
+
+// Returns the OutputType by matching known type prefixes to |name|. Returns
+// OUTPUT_TYPE_UNKNOWN if no valid match.
+DISPLAY_EXPORT OutputType GetOutputTypeFromName(const std::string& name);
+
+// Generate the human readable string from EDID obtained from |output|.
+DISPLAY_EXPORT std::string GetDisplayName(
+ const OutputConfigurator::OutputSnapshot& output);
+
+// Gets the overscan flag from |output| and stores to |flag|. Returns true if
+// the flag is found. Otherwise returns false and doesn't touch |flag|. The
+// output will produce overscan if |flag| is set to true, but the output may
+// still produce overscan even though it returns true and |flag| is set to
+// false.
+DISPLAY_EXPORT bool GetOutputOverscanFlag(
+ const OutputConfigurator::OutputSnapshot& output,
+ bool* flag);
+
+DISPLAY_EXPORT bool ParseOutputOverscanFlag(const unsigned char* prop,
+ unsigned long nitems,
+ bool* flag);
+
+} // namespace ui
+
+#endif // UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_
« 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