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 52823002: x11: Move XInput2 availability information out of the message pump. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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
« no previous file with comments | « ui/aura/root_window_host_x11.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 namespace ui { 45 namespace ui {
46 46
47 // These functions use the default display and this /must/ be called from 47 // These functions use the default display and this /must/ be called from
48 // the UI thread. Thus, they don't support multiple displays. 48 // the UI thread. Thus, they don't support multiple displays.
49 49
50 // These functions cache their results --------------------------------- 50 // These functions cache their results ---------------------------------
51 51
52 // Check if there's an open connection to an X server. 52 // Check if there's an open connection to an X server.
53 UI_EXPORT bool XDisplayExists(); 53 UI_EXPORT bool XDisplayExists();
54 // Return an X11 connection for the current, primary display. 54
55 // Returns true if the system supports XINPUT2.
56 UI_EXPORT bool IsXInput2Available();
55 57
56 // X shared memory comes in three flavors: 58 // X shared memory comes in three flavors:
57 // 1) No SHM support, 59 // 1) No SHM support,
58 // 2) SHM putimage, 60 // 2) SHM putimage,
59 // 3) SHM pixmaps + putimage. 61 // 3) SHM pixmaps + putimage.
60 enum SharedMemorySupport { 62 enum SharedMemorySupport {
61 SHARED_MEMORY_NONE, 63 SHARED_MEMORY_NONE,
62 SHARED_MEMORY_PUTIMAGE, 64 SHARED_MEMORY_PUTIMAGE,
63 SHARED_MEMORY_PIXMAP 65 SHARED_MEMORY_PIXMAP
64 }; 66 };
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 private: 379 private:
378 ::Cursor cursor_; 380 ::Cursor cursor_;
379 XDisplay* display_; 381 XDisplay* display_;
380 382
381 DISALLOW_COPY_AND_ASSIGN(XScopedCursor); 383 DISALLOW_COPY_AND_ASSIGN(XScopedCursor);
382 }; 384 };
383 385
384 } // namespace ui 386 } // namespace ui
385 387
386 #endif // UI_BASE_X_X11_UTIL_H_ 388 #endif // UI_BASE_X_X11_UTIL_H_
OLDNEW
« no previous file with comments | « ui/aura/root_window_host_x11.cc ('k') | ui/base/x/x11_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698