OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #include "chromeos/display/output_util.h" | 5 #include "chromeos/display/output_util.h" |
6 | 6 |
7 #include <X11/Xlib.h> | 7 #include <X11/Xlib.h> |
8 #include <X11/extensions/Xrandr.h> | 8 #include <X11/extensions/Xrandr.h> |
9 #include <X11/Xatom.h> | 9 #include <X11/Xatom.h> |
10 | 10 |
11 #include "base/hash.h" | 11 #include "base/hash.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/sys_byteorder.h" | 14 #include "base/sys_byteorder.h" |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 namespace { | 17 namespace { |
18 | 18 |
19 // Prefixes for the built-in displays. | 19 // Prefixes for the built-in displays. |
20 const char kInternal_LVDS[] = "LVDS"; | 20 const char kInternal_LVDS[] = "LVDS"; |
21 const char kInternal_eDP[] = "eDP"; | 21 const char kInternal_eDP[] = "eDP"; |
22 | 22 |
23 // Returns 64-bit persistent ID for the specified manufacturer's ID and | 23 // Returns 64-bit persistent ID for the specified manufacturer's ID and |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 } | 318 } |
319 | 319 |
320 return false; | 320 return false; |
321 } | 321 } |
322 | 322 |
323 bool IsInternalOutputName(const std::string& name) { | 323 bool IsInternalOutputName(const std::string& name) { |
324 return name.find(kInternal_LVDS) == 0 || name.find(kInternal_eDP) == 0; | 324 return name.find(kInternal_LVDS) == 0 || name.find(kInternal_eDP) == 0; |
325 } | 325 } |
326 | 326 |
327 } // namespace chromeos | 327 } // namespace chromeos |
OLD | NEW |