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

Side by Side Diff: chromeos/display/output_util.cc

Issue 16739011: Use a direct include of strings headers in chromeos/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chromeos/display/output_configurator_unittest.cc ('k') | chromeos/ime/component_extension_ime_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698