Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: ui/base/x/x11_util.h

Issue 2924343002: Move ui::GetAtom to gfx::GetAtom (Closed)
Patch Set: fix CrOs build Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/base/x/x11_menu_list.cc ('k') | ui/base/x/x11_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/base/x/x11_menu_list.cc ('k') | ui/base/x/x11_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698