| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 XAtom value); | 170 XAtom value); |
| 171 UI_BASE_X_EXPORT bool SetAtomArrayProperty(XID window, | 171 UI_BASE_X_EXPORT bool SetAtomArrayProperty(XID window, |
| 172 const std::string& name, | 172 const std::string& name, |
| 173 const std::string& type, | 173 const std::string& type, |
| 174 const std::vector<XAtom>& value); | 174 const std::vector<XAtom>& value); |
| 175 UI_BASE_X_EXPORT bool SetStringProperty(XID window, | 175 UI_BASE_X_EXPORT bool SetStringProperty(XID window, |
| 176 XAtom property, | 176 XAtom property, |
| 177 XAtom type, | 177 XAtom type, |
| 178 const std::string& value); | 178 const std::string& value); |
| 179 | 179 |
| 180 // Gets the X atom for default display corresponding to atom_name. | |
| 181 UI_BASE_X_EXPORT XAtom GetAtom(const char* atom_name); | |
| 182 | |
| 183 // Sets the WM_CLASS attribute for a given X11 window. | 180 // Sets the WM_CLASS attribute for a given X11 window. |
| 184 UI_BASE_X_EXPORT void SetWindowClassHint(XDisplay* display, | 181 UI_BASE_X_EXPORT void SetWindowClassHint(XDisplay* display, |
| 185 XID window, | 182 XID window, |
| 186 const std::string& res_name, | 183 const std::string& res_name, |
| 187 const std::string& res_class); | 184 const std::string& res_class); |
| 188 | 185 |
| 189 // Sets the WM_WINDOW_ROLE attribute for a given X11 window. | 186 // Sets the WM_WINDOW_ROLE attribute for a given X11 window. |
| 190 UI_BASE_X_EXPORT void SetWindowRole(XDisplay* display, | 187 UI_BASE_X_EXPORT void SetWindowRole(XDisplay* display, |
| 191 XID window, | 188 XID window, |
| 192 const std::string& role); | 189 const std::string& role); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 namespace test { | 326 namespace test { |
| 330 | 327 |
| 331 // Returns the cached XcursorImage for |cursor|. | 328 // Returns the cached XcursorImage for |cursor|. |
| 332 UI_BASE_X_EXPORT const XcursorImage* GetCachedXcursorImage(::Cursor cursor); | 329 UI_BASE_X_EXPORT const XcursorImage* GetCachedXcursorImage(::Cursor cursor); |
| 333 | 330 |
| 334 } // namespace test | 331 } // namespace test |
| 335 | 332 |
| 336 } // namespace ui | 333 } // namespace ui |
| 337 | 334 |
| 338 #endif // UI_BASE_X_X11_UTIL_H_ | 335 #endif // UI_BASE_X_X11_UTIL_H_ |
| OLD | NEW |