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

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

Issue 853033002: More delete + gfx_unittests (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix android trybots Created 5 years, 11 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 UI_BASE_EXPORT bool GetCustomFramePrefDefault(); 211 UI_BASE_EXPORT bool GetCustomFramePrefDefault();
212 212
213 static const int kAllDesktops = -1; 213 static const int kAllDesktops = -1;
214 // Queries the desktop |window| is on, kAllDesktops if sticky. Returns false if 214 // Queries the desktop |window| is on, kAllDesktops if sticky. Returns false if
215 // property not found. 215 // property not found.
216 bool GetWindowDesktop(XID window, int* desktop); 216 bool GetWindowDesktop(XID window, int* desktop);
217 217
218 // Translates an X11 error code into a printable string. 218 // Translates an X11 error code into a printable string.
219 UI_BASE_EXPORT std::string GetX11ErrorString(XDisplay* display, int err); 219 UI_BASE_EXPORT std::string GetX11ErrorString(XDisplay* display, int err);
220 220
221 // Implementers of this interface receive a notification for every X window of
222 // the main display.
223 class EnumerateWindowsDelegate {
224 public:
225 // |xid| is the X Window ID of the enumerated window. Return true to stop
226 // further iteration.
227 virtual bool ShouldStopIterating(XID xid) = 0;
228
229 protected:
230 virtual ~EnumerateWindowsDelegate() {}
231 };
232
233 // Enumerates all windows in the current display. Will recurse into child
234 // windows up to a depth of |max_depth|.
235 UI_BASE_EXPORT bool EnumerateAllWindows(EnumerateWindowsDelegate* delegate,
236 int max_depth);
237
238 // Enumerates the top-level windows of the current display.
239 UI_BASE_EXPORT void EnumerateTopLevelWindows(
240 ui::EnumerateWindowsDelegate* delegate);
241
242 // Returns all children windows of a given window in top-to-bottom stacking 221 // Returns all children windows of a given window in top-to-bottom stacking
243 // order. 222 // order.
244 UI_BASE_EXPORT bool GetXWindowStack(XID window, std::vector<XID>* windows); 223 UI_BASE_EXPORT bool GetXWindowStack(XID window, std::vector<XID>* windows);
245 224
246 enum WindowManagerName { 225 enum WindowManagerName {
247 WM_UNKNOWN, 226 WM_UNKNOWN,
248 227
249 WM_AWESOME, 228 WM_AWESOME,
250 WM_BLACKBOX, 229 WM_BLACKBOX,
251 WM_COMPIZ, 230 WM_COMPIZ,
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 UI_BASE_EXPORT void ResetXCursorCache(); 343 UI_BASE_EXPORT void ResetXCursorCache();
365 344
366 // Returns the cached XcursorImage for |cursor|. 345 // Returns the cached XcursorImage for |cursor|.
367 UI_BASE_EXPORT const XcursorImage* GetCachedXcursorImage(::Cursor cursor); 346 UI_BASE_EXPORT const XcursorImage* GetCachedXcursorImage(::Cursor cursor);
368 347
369 } // namespace test 348 } // namespace test
370 349
371 } // namespace ui 350 } // namespace ui
372 351
373 #endif // UI_BASE_X_X11_UTIL_H_ 352 #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