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

Side by Side Diff: ui/base/x/x11_util.cc

Issue 1242023005: Remove legacy StartsWithASCII function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: y Created 5 years, 5 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
« no previous file with comments | « ui/base/l10n/l10n_util.cc ('k') | ui/events/devices/device_util_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file defines utility functions for X11 (Linux only). This code has been 5 // This file defines utility functions for X11 (Linux only). This code has been
6 // ported from XCB since we can't use XCB on Ubuntu while its 32-bit support 6 // ported from XCB since we can't use XCB on Ubuntu while its 32-bit support
7 // remains woefully incomplete. 7 // remains woefully incomplete.
8 8
9 #include "ui/base/x/x11_util.h" 9 #include "ui/base/x/x11_util.h"
10 10
(...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after
1244 if (name == "Blackbox") 1244 if (name == "Blackbox")
1245 return WM_BLACKBOX; 1245 return WM_BLACKBOX;
1246 if (name == "Compiz" || name == "compiz") 1246 if (name == "Compiz" || name == "compiz")
1247 return WM_COMPIZ; 1247 return WM_COMPIZ;
1248 if (name == "e16" || name == "Enlightenment") 1248 if (name == "e16" || name == "Enlightenment")
1249 return WM_ENLIGHTENMENT; 1249 return WM_ENLIGHTENMENT;
1250 if (name == "Fluxbox") 1250 if (name == "Fluxbox")
1251 return WM_FLUXBOX; 1251 return WM_FLUXBOX;
1252 if (name == "i3") 1252 if (name == "i3")
1253 return WM_I3; 1253 return WM_I3;
1254 if (base::StartsWithASCII(name, "IceWM", true)) 1254 if (base::StartsWith(name, "IceWM", base::CompareCase::SENSITIVE))
1255 return WM_ICE_WM; 1255 return WM_ICE_WM;
1256 if (name == "ion3") 1256 if (name == "ion3")
1257 return WM_ION3; 1257 return WM_ION3;
1258 if (name == "KWin") 1258 if (name == "KWin")
1259 return WM_KWIN; 1259 return WM_KWIN;
1260 if (name == "matchbox") 1260 if (name == "matchbox")
1261 return WM_MATCHBOX; 1261 return WM_MATCHBOX;
1262 if (name == "Metacity") 1262 if (name == "Metacity")
1263 return WM_METACITY; 1263 return WM_METACITY;
1264 if (name == "Mutter (Muffin)") 1264 if (name == "Mutter (Muffin)")
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1477 << "request_code " << static_cast<int>(error_event.request_code) << ", " 1477 << "request_code " << static_cast<int>(error_event.request_code) << ", "
1478 << "minor_code " << static_cast<int>(error_event.minor_code) 1478 << "minor_code " << static_cast<int>(error_event.minor_code)
1479 << " (" << request_str << ")"; 1479 << " (" << request_str << ")";
1480 } 1480 }
1481 1481
1482 // ---------------------------------------------------------------------------- 1482 // ----------------------------------------------------------------------------
1483 // End of x11_util_internal.h 1483 // End of x11_util_internal.h
1484 1484
1485 1485
1486 } // namespace ui 1486 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/l10n/l10n_util.cc ('k') | ui/events/devices/device_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698