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

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

Issue 8387043: [Aura] Support always-on-top top level window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_aura bot Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 // This file declares utility functions for X11 (Linux only). 9 // This file declares utility functions for X11 (Linux only).
10 // 10 //
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 }; 61 };
62 // Return the shared memory type of our X connection. 62 // Return the shared memory type of our X connection.
63 UI_EXPORT SharedMemorySupport QuerySharedMemorySupport(Display* dpy); 63 UI_EXPORT SharedMemorySupport QuerySharedMemorySupport(Display* dpy);
64 64
65 // Return true iff the display supports Xrender 65 // Return true iff the display supports Xrender
66 UI_EXPORT bool QueryRenderSupport(Display* dpy); 66 UI_EXPORT bool QueryRenderSupport(Display* dpy);
67 67
68 // Return the default screen number for the display 68 // Return the default screen number for the display
69 int GetDefaultScreen(Display* display); 69 int GetDefaultScreen(Display* display);
70 70
71 // TODO(xiyuan): Fix the stale XCursorCache problem properly.
72 // A special cursor that makes GetXCursor below to clear its XCursorCache.
73 extern const int kCursorClearXCursorCache;
74
71 // Returns an X11 Cursor, sharable across the process. 75 // Returns an X11 Cursor, sharable across the process.
72 // |cursor_shape| is an X font cursor shape, see XCreateFontCursor(). 76 // |cursor_shape| is an X font cursor shape, see XCreateFontCursor().
73 UI_EXPORT Cursor GetXCursor(int cursor_shape); 77 UI_EXPORT Cursor GetXCursor(int cursor_shape);
74 78
75 // These functions do not cache their results -------------------------- 79 // These functions do not cache their results --------------------------
76 80
77 // Get the X window id for the default root window 81 // Get the X window id for the default root window
78 UI_EXPORT XID GetX11RootWindow(); 82 UI_EXPORT XID GetX11RootWindow();
79 83
80 // Returns the user's current desktop. 84 // Returns the user's current desktop.
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // the process if called. Use SetX11ErrorHandlers() from x11_util_internal.h 192 // the process if called. Use SetX11ErrorHandlers() from x11_util_internal.h
189 // to set your own error handlers. 193 // to set your own error handlers.
190 UI_EXPORT void SetDefaultX11ErrorHandlers(); 194 UI_EXPORT void SetDefaultX11ErrorHandlers();
191 195
192 // Return true if a given window is in full-screen mode. 196 // Return true if a given window is in full-screen mode.
193 UI_EXPORT bool IsX11WindowFullScreen(XID window); 197 UI_EXPORT bool IsX11WindowFullScreen(XID window);
194 198
195 } // namespace ui 199 } // namespace ui
196 200
197 #endif // UI_BASE_X_X11_UTIL_H_ 201 #endif // UI_BASE_X_X11_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698