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/message_loop.h" |
13 #include "base/strings/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 |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 } | 313 } |
314 | 314 |
315 return false; | 315 return false; |
316 } | 316 } |
317 | 317 |
318 bool IsInternalOutputName(const std::string& name) { | 318 bool IsInternalOutputName(const std::string& name) { |
319 return name.find(kInternal_LVDS) == 0 || name.find(kInternal_eDP) == 0; | 319 return name.find(kInternal_LVDS) == 0 || name.find(kInternal_eDP) == 0; |
320 } | 320 } |
321 | 321 |
322 } // namespace chromeos | 322 } // namespace chromeos |
OLD | NEW |