| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. | 98 // Returns true if the shape extension is supported. |
| 99 UI_BASE_EXPORT bool IsShapeExtensionAvailable(); | 99 UI_BASE_EXPORT bool IsShapeExtensionAvailable(); |
| 100 | 100 |
| 101 // Get the X window id for the default root window | 101 // Get the X window id for the default root window |
| 102 UI_BASE_EXPORT XID GetX11RootWindow(); | 102 UI_BASE_EXPORT XID GetX11RootWindow(); |
| 103 | 103 |
| 104 // Returns the user's current desktop. | 104 // Returns the user's current desktop. |
| 105 bool GetCurrentDesktop(int* desktop); | 105 UI_BASE_EXPORT bool GetCurrentDesktop(int* desktop); |
| 106 | 106 |
| 107 enum HideTitlebarWhenMaximized { | 107 enum HideTitlebarWhenMaximized { |
| 108 SHOW_TITLEBAR_WHEN_MAXIMIZED = 0, | 108 SHOW_TITLEBAR_WHEN_MAXIMIZED = 0, |
| 109 HIDE_TITLEBAR_WHEN_MAXIMIZED = 1, | 109 HIDE_TITLEBAR_WHEN_MAXIMIZED = 1, |
| 110 }; | 110 }; |
| 111 // Sets _GTK_HIDE_TITLEBAR_WHEN_MAXIMIZED on |window|. | 111 // Sets _GTK_HIDE_TITLEBAR_WHEN_MAXIMIZED on |window|. |
| 112 UI_BASE_EXPORT void SetHideTitlebarWhenMaximizedProperty( | 112 UI_BASE_EXPORT void SetHideTitlebarWhenMaximizedProperty( |
| 113 XID window, | 113 XID window, |
| 114 HideTitlebarWhenMaximized property); | 114 HideTitlebarWhenMaximized property); |
| 115 | 115 |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 UI_BASE_EXPORT void ResetXCursorCache(); | 347 UI_BASE_EXPORT void ResetXCursorCache(); |
| 348 | 348 |
| 349 // Returns the cached XcursorImage for |cursor|. | 349 // Returns the cached XcursorImage for |cursor|. |
| 350 UI_BASE_EXPORT const XcursorImage* GetCachedXcursorImage(::Cursor cursor); | 350 UI_BASE_EXPORT const XcursorImage* GetCachedXcursorImage(::Cursor cursor); |
| 351 | 351 |
| 352 } // namespace test | 352 } // namespace test |
| 353 | 353 |
| 354 } // namespace ui | 354 } // namespace ui |
| 355 | 355 |
| 356 #endif // UI_BASE_X_X11_UTIL_H_ | 356 #endif // UI_BASE_X_X11_UTIL_H_ |
| OLD | NEW |