OLD | NEW |
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 Loading... |
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 (StartsWithASCII(name, "IceWM", true)) | 1254 if (base::StartsWithASCII(name, "IceWM", true)) |
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 Loading... |
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 |
OLD | NEW |