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

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

Issue 264713007: Add unittests for X11TopmostWindowFinder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 // These setters all make round trips. 166 // These setters all make round trips.
167 UI_BASE_EXPORT bool SetIntProperty(XID window, 167 UI_BASE_EXPORT bool SetIntProperty(XID window,
168 const std::string& name, 168 const std::string& name,
169 const std::string& type, 169 const std::string& type,
170 int value); 170 int value);
171 UI_BASE_EXPORT bool SetIntArrayProperty(XID window, 171 UI_BASE_EXPORT bool SetIntArrayProperty(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<int>& value); 174 const std::vector<int>& value);
175 UI_BASE_EXPORT bool SetAtomProperty(XID window,
176 const std::string& name,
177 const std::string& type,
178 Atom value);
175 UI_BASE_EXPORT bool SetAtomArrayProperty(XID window, 179 UI_BASE_EXPORT bool SetAtomArrayProperty(XID window,
176 const std::string& name, 180 const std::string& name,
177 const std::string& type, 181 const std::string& type,
178 const std::vector<Atom>& value); 182 const std::vector<Atom>& value);
179 UI_BASE_EXPORT bool SetStringProperty(XID window, 183 UI_BASE_EXPORT bool SetStringProperty(XID window,
180 Atom property, 184 Atom property,
181 Atom type, 185 Atom type,
182 const std::string& value); 186 const std::string& value);
183 187
184 // Gets the X atom for default display corresponding to atom_name. 188 // Gets the X atom for default display corresponding to atom_name.
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 UI_BASE_EXPORT void ResetXCursorCache(); 354 UI_BASE_EXPORT void ResetXCursorCache();
351 355
352 // Returns the cached XcursorImage for |cursor|. 356 // Returns the cached XcursorImage for |cursor|.
353 UI_BASE_EXPORT const XcursorImage* GetCachedXcursorImage(::Cursor cursor); 357 UI_BASE_EXPORT const XcursorImage* GetCachedXcursorImage(::Cursor cursor);
354 358
355 } // namespace test 359 } // namespace test
356 360
357 } // namespace ui 361 } // namespace ui
358 362
359 #endif // UI_BASE_X_X11_UTIL_H_ 363 #endif // UI_BASE_X_X11_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | ui/base/x/x11_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698