Chromium Code Reviews| 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 269 | 269 |
| 270 // Gets some useful data from the specified output device, such like | 270 // Gets some useful data from the specified output device, such like |
| 271 // manufacturer's ID, serial#, and human readable name. Returns false if it | 271 // manufacturer's ID, serial#, and human readable name. Returns false if it |
| 272 // fails to get those data and doesn't touch manufacturer ID/serial#/name. | 272 // fails to get those data and doesn't touch manufacturer ID/serial#/name. |
| 273 // NULL can be passed for unwanted output parameters. | 273 // NULL can be passed for unwanted output parameters. |
| 274 UI_EXPORT bool GetOutputDeviceData(XID output, | 274 UI_EXPORT bool GetOutputDeviceData(XID output, |
| 275 uint16* manufacturer_id, | 275 uint16* manufacturer_id, |
| 276 uint32* serial_number, | 276 uint32* serial_number, |
| 277 std::string* human_readable_name); | 277 std::string* human_readable_name); |
| 278 | 278 |
| 279 // Returns true if the EDID for the output has the flag of overscan. Note that | |
| 280 // returning false does not mean no overscan, it just means the lack of flag. | |
| 281 UI_EXPORT bool GetOutputOverscanFlag(XID output); | |
|
Daniel Erat
2013/01/03 19:04:19
nit: s/Get/Has/
Jun Mukai
2013/01/03 21:37:37
Done.
| |
| 282 | |
| 279 // Gets the names of the all displays physically connected to the system. | 283 // Gets the names of the all displays physically connected to the system. |
| 280 UI_EXPORT std::vector<std::string> GetDisplayNames( | 284 UI_EXPORT std::vector<std::string> GetDisplayNames( |
| 281 const std::vector<XID>& output_id); | 285 const std::vector<XID>& output_id); |
| 282 | 286 |
| 283 // Gets the name of outputs given by |output_id|. | 287 // Gets the name of outputs given by |output_id|. |
| 284 UI_EXPORT std::vector<std::string> GetOutputNames( | 288 UI_EXPORT std::vector<std::string> GetOutputNames( |
| 285 const std::vector<XID>& output_id); | 289 const std::vector<XID>& output_id); |
| 286 | 290 |
| 287 enum WindowManagerName { | 291 enum WindowManagerName { |
| 288 WM_UNKNOWN, | 292 WM_UNKNOWN, |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 381 private: | 385 private: |
| 382 ::Cursor cursor_; | 386 ::Cursor cursor_; |
| 383 Display* display_; | 387 Display* display_; |
| 384 | 388 |
| 385 DISALLOW_COPY_AND_ASSIGN(XScopedCursor); | 389 DISALLOW_COPY_AND_ASSIGN(XScopedCursor); |
| 386 }; | 390 }; |
| 387 | 391 |
| 388 } // namespace ui | 392 } // namespace ui |
| 389 | 393 |
| 390 #endif // UI_BASE_X_X11_UTIL_H_ | 394 #endif // UI_BASE_X_X11_UTIL_H_ |
| OLD | NEW |