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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 // the canvas's scale. Note that this function is slow since it uses | 239 // the canvas's scale. Note that this function is slow since it uses |
240 // XGetImage() to copy the data from the X server to this process before | 240 // XGetImage() to copy the data from the X server to this process before |
241 // copying it to |canvas|. | 241 // copying it to |canvas|. |
242 UI_BASE_EXPORT bool CopyAreaToCanvas(XID drawable, | 242 UI_BASE_EXPORT bool CopyAreaToCanvas(XID drawable, |
243 gfx::Rect source_bounds, | 243 gfx::Rect source_bounds, |
244 gfx::Point dest_offset, | 244 gfx::Point dest_offset, |
245 gfx::Canvas* canvas); | 245 gfx::Canvas* canvas); |
246 | 246 |
247 enum WindowManagerName { | 247 enum WindowManagerName { |
248 WM_UNKNOWN, | 248 WM_UNKNOWN, |
| 249 |
| 250 WM_AWESOME, |
249 WM_BLACKBOX, | 251 WM_BLACKBOX, |
250 WM_CHROME_OS, | |
251 WM_COMPIZ, | 252 WM_COMPIZ, |
252 WM_ENLIGHTENMENT, | 253 WM_ENLIGHTENMENT, |
| 254 WM_I3, |
253 WM_ICE_WM, | 255 WM_ICE_WM, |
| 256 WM_ION3, |
254 WM_KWIN, | 257 WM_KWIN, |
| 258 WM_MATCHBOX, |
255 WM_METACITY, | 259 WM_METACITY, |
256 WM_MUFFIN, | 260 WM_MUFFIN, |
257 WM_MUTTER, | 261 WM_MUTTER, |
| 262 WM_NOTION, |
258 WM_OPENBOX, | 263 WM_OPENBOX, |
| 264 WM_QTILE, |
| 265 WM_RATPOISON, |
| 266 WM_STUMPWM, |
259 WM_XFWM4, | 267 WM_XFWM4, |
260 }; | 268 }; |
261 // Attempts to guess the window maager. Returns WM_UNKNOWN if we can't | 269 // Attempts to guess the window maager. Returns WM_UNKNOWN if we can't |
262 // determine it for one reason or another. | 270 // determine it for one reason or another. |
263 UI_BASE_EXPORT WindowManagerName GuessWindowManager(); | 271 UI_BASE_EXPORT WindowManagerName GuessWindowManager(); |
264 | 272 |
265 // The same as GuessWindowManager(), but returns the raw string. If we | 273 // The same as GuessWindowManager(), but returns the raw string. If we |
266 // can't determine it, return "Unknown". | 274 // can't determine it, return "Unknown". |
267 UI_BASE_EXPORT std::string GuessWindowManagerName(); | 275 UI_BASE_EXPORT std::string GuessWindowManagerName(); |
268 | 276 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 UI_BASE_EXPORT void ResetXCursorCache(); | 364 UI_BASE_EXPORT void ResetXCursorCache(); |
357 | 365 |
358 // Returns the cached XcursorImage for |cursor|. | 366 // Returns the cached XcursorImage for |cursor|. |
359 UI_BASE_EXPORT const XcursorImage* GetCachedXcursorImage(::Cursor cursor); | 367 UI_BASE_EXPORT const XcursorImage* GetCachedXcursorImage(::Cursor cursor); |
360 | 368 |
361 } // namespace test | 369 } // namespace test |
362 | 370 |
363 } // namespace ui | 371 } // namespace ui |
364 | 372 |
365 #endif // UI_BASE_X_X11_UTIL_H_ | 373 #endif // UI_BASE_X_X11_UTIL_H_ |
OLD | NEW |