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

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

Issue 11192009: linux_aura: Fix tab dragging performance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | « ui/aura/root_window_host_linux.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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 // the process if called. Use SetX11ErrorHandlers() from x11_util_internal.h 298 // the process if called. Use SetX11ErrorHandlers() from x11_util_internal.h
299 // to set your own error handlers. 299 // to set your own error handlers.
300 UI_EXPORT void SetDefaultX11ErrorHandlers(); 300 UI_EXPORT void SetDefaultX11ErrorHandlers();
301 301
302 // Return true if a given window is in full-screen mode. 302 // Return true if a given window is in full-screen mode.
303 UI_EXPORT bool IsX11WindowFullScreen(XID window); 303 UI_EXPORT bool IsX11WindowFullScreen(XID window);
304 304
305 // Return true if event type is MotionNotify. 305 // Return true if event type is MotionNotify.
306 UI_EXPORT bool IsMotionEvent(XEvent* event); 306 UI_EXPORT bool IsMotionEvent(XEvent* event);
307 307
308 // Coalesce all pending motion events (touch or mouse) that are at the top of
309 // the queue, and return the number eliminated, storing the last one in
310 // |last_event|.
311 UI_EXPORT int CoalescePendingMotionEvents(const XEvent* xev,
312 XEvent* last_event);
313
308 // Returns the mapped button. 314 // Returns the mapped button.
309 int GetMappedButton(int button); 315 int GetMappedButton(int button);
310 316
311 // Updates button mapping. This is usually called when a MappingNotify event is 317 // Updates button mapping. This is usually called when a MappingNotify event is
312 // received. 318 // received.
313 UI_EXPORT void UpdateButtonMap(); 319 UI_EXPORT void UpdateButtonMap();
314 320
315 // Initializes a XEvent that holds XKeyEvent for testing. Note that ui::EF_ 321 // Initializes a XEvent that holds XKeyEvent for testing. Note that ui::EF_
316 // flags should be passed as |flags|, not the native ones in <X11/X.h>. 322 // flags should be passed as |flags|, not the native ones in <X11/X.h>.
317 UI_EXPORT void InitXKeyEventForTesting(EventType type, 323 UI_EXPORT void InitXKeyEventForTesting(EventType type,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 private: 377 private:
372 ::Cursor cursor_; 378 ::Cursor cursor_;
373 Display* display_; 379 Display* display_;
374 380
375 DISALLOW_COPY_AND_ASSIGN(XScopedCursor); 381 DISALLOW_COPY_AND_ASSIGN(XScopedCursor);
376 }; 382 };
377 383
378 } // namespace ui 384 } // namespace ui
379 385
380 #endif // UI_BASE_X_X11_UTIL_H_ 386 #endif // UI_BASE_X_X11_UTIL_H_
OLDNEW
« no previous file with comments | « ui/aura/root_window_host_linux.cc ('k') | ui/base/x/x11_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698