| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 XEvent* last_event); | 88 XEvent* last_event); |
| 89 | 89 |
| 90 // Hides the host cursor. | 90 // Hides the host cursor. |
| 91 UI_BASE_EXPORT void HideHostCursor(); | 91 UI_BASE_EXPORT void HideHostCursor(); |
| 92 | 92 |
| 93 // Returns an invisible cursor. | 93 // Returns an invisible cursor. |
| 94 UI_BASE_EXPORT ::Cursor CreateInvisibleCursor(); | 94 UI_BASE_EXPORT ::Cursor CreateInvisibleCursor(); |
| 95 | 95 |
| 96 // These functions do not cache their results -------------------------- | 96 // These functions do not cache their results -------------------------- |
| 97 | 97 |
| 98 // Returns true if the shape extension is supported. | |
| 99 UI_BASE_EXPORT bool IsShapeExtensionAvailable(); | |
| 100 | |
| 101 // Get the X window id for the default root window | 98 // Get the X window id for the default root window |
| 102 UI_BASE_EXPORT XID GetX11RootWindow(); | 99 UI_BASE_EXPORT XID GetX11RootWindow(); |
| 103 | 100 |
| 104 // Returns the user's current desktop. | 101 // Returns the user's current desktop. |
| 105 bool GetCurrentDesktop(int* desktop); | 102 bool GetCurrentDesktop(int* desktop); |
| 106 | 103 |
| 107 enum HideTitlebarWhenMaximized { | 104 enum HideTitlebarWhenMaximized { |
| 108 SHOW_TITLEBAR_WHEN_MAXIMIZED = 0, | 105 SHOW_TITLEBAR_WHEN_MAXIMIZED = 0, |
| 109 HIDE_TITLEBAR_WHEN_MAXIMIZED = 1, | 106 HIDE_TITLEBAR_WHEN_MAXIMIZED = 1, |
| 110 }; | 107 }; |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 UI_BASE_EXPORT void ResetXCursorCache(); | 341 UI_BASE_EXPORT void ResetXCursorCache(); |
| 345 | 342 |
| 346 // Returns the cached XcursorImage for |cursor|. | 343 // Returns the cached XcursorImage for |cursor|. |
| 347 UI_BASE_EXPORT const XcursorImage* GetCachedXcursorImage(::Cursor cursor); | 344 UI_BASE_EXPORT const XcursorImage* GetCachedXcursorImage(::Cursor cursor); |
| 348 | 345 |
| 349 } // namespace test | 346 } // namespace test |
| 350 | 347 |
| 351 } // namespace ui | 348 } // namespace ui |
| 352 | 349 |
| 353 #endif // UI_BASE_X_X11_UTIL_H_ | 350 #endif // UI_BASE_X_X11_UTIL_H_ |
| OLD | NEW |