| 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 #ifndef UI_BASE_X_X11_UTIL_H_ | 5 #ifndef UI_BASE_X_X11_UTIL_H_ |
| 6 #define UI_BASE_X_X11_UTIL_H_ | 6 #define UI_BASE_X_X11_UTIL_H_ |
| 7 | 7 |
| 8 // This file declares utility functions for X11 (Linux only). | 8 // This file declares utility functions for X11 (Linux only). |
| 9 // | 9 // |
| 10 // These functions do not require the Xlib headers to be included (which is why | 10 // These functions do not require the Xlib headers to be included (which is why |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 uint16* manufacturer_id, | 296 uint16* manufacturer_id, |
| 297 uint16* product_code, | 297 uint16* product_code, |
| 298 std::string* human_readable_name); | 298 std::string* human_readable_name); |
| 299 | 299 |
| 300 // Parses |prop| as EDID data and stores the overscan flag to |flag|. Returns | 300 // Parses |prop| as EDID data and stores the overscan flag to |flag|. Returns |
| 301 // true if the flag is found. This is exported for x11_util_unittest.cc. | 301 // true if the flag is found. This is exported for x11_util_unittest.cc. |
| 302 UI_EXPORT bool ParseOutputOverscanFlag(const unsigned char* prop, | 302 UI_EXPORT bool ParseOutputOverscanFlag(const unsigned char* prop, |
| 303 unsigned long nitems, | 303 unsigned long nitems, |
| 304 bool* flag); | 304 bool* flag); |
| 305 | 305 |
| 306 // Gets the name of outputs given by |output_ids|. | |
| 307 UI_EXPORT std::vector<std::string> GetOutputNames( | |
| 308 const std::vector<XID>& output_ids); | |
| 309 | |
| 310 enum WindowManagerName { | 306 enum WindowManagerName { |
| 311 WM_UNKNOWN, | 307 WM_UNKNOWN, |
| 312 WM_BLACKBOX, | 308 WM_BLACKBOX, |
| 313 WM_CHROME_OS, | 309 WM_CHROME_OS, |
| 314 WM_COMPIZ, | 310 WM_COMPIZ, |
| 315 WM_ENLIGHTENMENT, | 311 WM_ENLIGHTENMENT, |
| 316 WM_ICE_WM, | 312 WM_ICE_WM, |
| 317 WM_KWIN, | 313 WM_KWIN, |
| 318 WM_METACITY, | 314 WM_METACITY, |
| 319 WM_MUTTER, | 315 WM_MUTTER, |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 private: | 400 private: |
| 405 ::Cursor cursor_; | 401 ::Cursor cursor_; |
| 406 Display* display_; | 402 Display* display_; |
| 407 | 403 |
| 408 DISALLOW_COPY_AND_ASSIGN(XScopedCursor); | 404 DISALLOW_COPY_AND_ASSIGN(XScopedCursor); |
| 409 }; | 405 }; |
| 410 | 406 |
| 411 } // namespace ui | 407 } // namespace ui |
| 412 | 408 |
| 413 #endif // UI_BASE_X_X11_UTIL_H_ | 409 #endif // UI_BASE_X_X11_UTIL_H_ |
| OLD | NEW |