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

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

Issue 2838753002: x11: Use opaque window for dnd without composite. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « content/browser/gpu/gpu_internals_ui.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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 WM_XMONAD, 267 WM_XMONAD,
268 }; 268 };
269 // Attempts to guess the window maager. Returns WM_OTHER or WM_UNNAMED 269 // Attempts to guess the window maager. Returns WM_OTHER or WM_UNNAMED
270 // if we can't determine it for one reason or another. 270 // if we can't determine it for one reason or another.
271 UI_BASE_X_EXPORT WindowManagerName GuessWindowManager(); 271 UI_BASE_X_EXPORT WindowManagerName GuessWindowManager();
272 272
273 // The same as GuessWindowManager(), but returns the raw string. If we 273 // The same as GuessWindowManager(), but returns the raw string. If we
274 // can't determine it, return "Unknown". 274 // can't determine it, return "Unknown".
275 UI_BASE_X_EXPORT std::string GuessWindowManagerName(); 275 UI_BASE_X_EXPORT std::string GuessWindowManagerName();
276 276
277 // Returns true if a compositing manager is present.
278 UI_BASE_X_EXPORT bool IsCompositingManagerPresent();
279
277 // Enable the default X error handlers. These will log the error and abort 280 // Enable the default X error handlers. These will log the error and abort
278 // the process if called. Use SetX11ErrorHandlers() from x11_util_internal.h 281 // the process if called. Use SetX11ErrorHandlers() from x11_util_internal.h
279 // to set your own error handlers. 282 // to set your own error handlers.
280 UI_BASE_X_EXPORT void SetDefaultX11ErrorHandlers(); 283 UI_BASE_X_EXPORT void SetDefaultX11ErrorHandlers();
281 284
282 // Returns true if a given window is in full-screen mode. 285 // Returns true if a given window is in full-screen mode.
283 UI_BASE_X_EXPORT bool IsX11WindowFullScreen(XID window); 286 UI_BASE_X_EXPORT bool IsX11WindowFullScreen(XID window);
284 287
285 // Returns true if the window manager supports the given hint. 288 // Returns true if the window manager supports the given hint.
286 UI_BASE_X_EXPORT bool WmSupportsHint(XAtom atom); 289 UI_BASE_X_EXPORT bool WmSupportsHint(XAtom atom);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 namespace test { 329 namespace test {
327 330
328 // Returns the cached XcursorImage for |cursor|. 331 // Returns the cached XcursorImage for |cursor|.
329 UI_BASE_X_EXPORT const XcursorImage* GetCachedXcursorImage(::Cursor cursor); 332 UI_BASE_X_EXPORT const XcursorImage* GetCachedXcursorImage(::Cursor cursor);
330 333
331 } // namespace test 334 } // namespace test
332 335
333 } // namespace ui 336 } // namespace ui
334 337
335 #endif // UI_BASE_X_X11_UTIL_H_ 338 #endif // UI_BASE_X_X11_UTIL_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_internals_ui.cc ('k') | ui/base/x/x11_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698