Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // This file declares utility functions for X11 (Linux only). | 9 // This file declares utility functions for X11 (Linux only). |
| 10 // | 10 // |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 221 UI_EXPORT bool ChangeWindowDesktop(XID window, XID destination); | 221 UI_EXPORT bool ChangeWindowDesktop(XID window, XID destination); |
| 222 | 222 |
| 223 // Enable the default X error handlers. These will log the error and abort | 223 // Enable the default X error handlers. These will log the error and abort |
| 224 // the process if called. Use SetX11ErrorHandlers() from x11_util_internal.h | 224 // the process if called. Use SetX11ErrorHandlers() from x11_util_internal.h |
| 225 // to set your own error handlers. | 225 // to set your own error handlers. |
| 226 UI_EXPORT void SetDefaultX11ErrorHandlers(); | 226 UI_EXPORT void SetDefaultX11ErrorHandlers(); |
| 227 | 227 |
| 228 // Return true if a given window is in full-screen mode. | 228 // Return true if a given window is in full-screen mode. |
| 229 UI_EXPORT bool IsX11WindowFullScreen(XID window); | 229 UI_EXPORT bool IsX11WindowFullScreen(XID window); |
| 230 | 230 |
| 231 // Returns the mapped button. | |
| 232 int GetMappedButton(int button); | |
|
sadrul
2011/12/07 17:06:52
This is deliberately not exported since it's not u
| |
| 233 | |
| 234 // Updates button mapping. This is usually called when a MappingNotify event is | |
| 235 // received. | |
| 236 UI_EXPORT void UpdateButtonMap(); | |
| 237 | |
| 231 } // namespace ui | 238 } // namespace ui |
| 232 | 239 |
| 233 #endif // UI_BASE_X_X11_UTIL_H_ | 240 #endif // UI_BASE_X_X11_UTIL_H_ |
| OLD | NEW |