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

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

Issue 268673017: Fix X11TopmostWindowFinder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 XEvent* last_event); 92 XEvent* last_event);
93 93
94 // Hides the host cursor. 94 // Hides the host cursor.
95 UI_BASE_EXPORT void HideHostCursor(); 95 UI_BASE_EXPORT void HideHostCursor();
96 96
97 // Returns an invisible cursor. 97 // Returns an invisible cursor.
98 UI_BASE_EXPORT ::Cursor CreateInvisibleCursor(); 98 UI_BASE_EXPORT ::Cursor CreateInvisibleCursor();
99 99
100 // These functions do not cache their results -------------------------- 100 // These functions do not cache their results --------------------------
101 101
102 // Returns true if the shape extension is supported.
103 UI_BASE_EXPORT bool IsShapeExtensionAvailable();
104
102 // Get the X window id for the default root window 105 // Get the X window id for the default root window
103 UI_BASE_EXPORT XID GetX11RootWindow(); 106 UI_BASE_EXPORT XID GetX11RootWindow();
104 107
105 // Returns the user's current desktop. 108 // Returns the user's current desktop.
106 bool GetCurrentDesktop(int* desktop); 109 bool GetCurrentDesktop(int* desktop);
107 110
108 enum HideTitlebarWhenMaximized { 111 enum HideTitlebarWhenMaximized {
109 SHOW_TITLEBAR_WHEN_MAXIMIZED = 0, 112 SHOW_TITLEBAR_WHEN_MAXIMIZED = 0,
110 HIDE_TITLEBAR_WHEN_MAXIMIZED = 1, 113 HIDE_TITLEBAR_WHEN_MAXIMIZED = 1,
111 }; 114 };
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 private: 338 private:
336 ::Cursor cursor_; 339 ::Cursor cursor_;
337 XDisplay* display_; 340 XDisplay* display_;
338 341
339 DISALLOW_COPY_AND_ASSIGN(XScopedCursor); 342 DISALLOW_COPY_AND_ASSIGN(XScopedCursor);
340 }; 343 };
341 344
342 } // namespace ui 345 } // namespace ui
343 346
344 #endif // UI_BASE_X_X11_UTIL_H_ 347 #endif // UI_BASE_X_X11_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | ui/base/x/x11_util.cc » ('j') | ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698