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

Unified Diff: ui/display/chromeos/x11/display_util_x11.cc

Issue 2540313002: Split //ui/display and create //ui/display/manager. (Closed)
Patch Set: Cleanup export header. Created 4 years 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/x11/display_util_x11.h ('k') | ui/display/chromeos/x11/display_util_x11_unittest.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_x11.cc
diff --git a/ui/display/chromeos/x11/display_util_x11.cc b/ui/display/chromeos/x11/display_util_x11.cc
deleted file mode 100644
index b328655360a0bcd776d7ec953eb95cae3fc81783..0000000000000000000000000000000000000000
--- a/ui/display/chromeos/x11/display_util_x11.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// 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.
-
-#include "ui/display/chromeos/x11/display_util_x11.h"
-
-#include "base/macros.h"
-#include "base/strings/string_util.h"
-
-namespace ui {
-
-namespace {
-
-struct DisplayConnectionTypeMapping {
- // Prefix of output name.
- const char* name;
- DisplayConnectionType type;
-};
-
-const DisplayConnectionTypeMapping kDisplayConnectionTypeMapping[] = {
- {"LVDS", DISPLAY_CONNECTION_TYPE_INTERNAL},
- {"eDP", DISPLAY_CONNECTION_TYPE_INTERNAL},
- {"DSI", DISPLAY_CONNECTION_TYPE_INTERNAL},
- {"VGA", DISPLAY_CONNECTION_TYPE_VGA},
- {"HDMI", DISPLAY_CONNECTION_TYPE_HDMI},
- {"DVI", DISPLAY_CONNECTION_TYPE_DVI},
- {"DP", DISPLAY_CONNECTION_TYPE_DISPLAYPORT}};
-
-} // namespace
-
-DisplayConnectionType GetDisplayConnectionTypeFromName(
- const std::string& name) {
- for (unsigned int i = 0; i < arraysize(kDisplayConnectionTypeMapping); ++i) {
- if (base::StartsWith(name, kDisplayConnectionTypeMapping[i].name,
- base::CompareCase::SENSITIVE)) {
- return kDisplayConnectionTypeMapping[i].type;
- }
- }
-
- return DISPLAY_CONNECTION_TYPE_UNKNOWN;
-}
-
-} // namespace ui
« no previous file with comments | « ui/display/chromeos/x11/display_util_x11.h ('k') | ui/display/chromeos/x11/display_util_x11_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698