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

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

Issue 27156003: linux_aura: Enable HIDPI support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated accordigly to r232633 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 | « ash/display/display_change_observer_chromeos_unittest.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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 UI_EXPORT bool ChangeWindowDesktop(XID window, XID destination); 302 UI_EXPORT bool ChangeWindowDesktop(XID window, XID destination);
303 303
304 // Enable the default X error handlers. These will log the error and abort 304 // Enable the default X error handlers. These will log the error and abort
305 // the process if called. Use SetX11ErrorHandlers() from x11_util_internal.h 305 // the process if called. Use SetX11ErrorHandlers() from x11_util_internal.h
306 // to set your own error handlers. 306 // to set your own error handlers.
307 UI_EXPORT void SetDefaultX11ErrorHandlers(); 307 UI_EXPORT void SetDefaultX11ErrorHandlers();
308 308
309 // Return true if a given window is in full-screen mode. 309 // Return true if a given window is in full-screen mode.
310 UI_EXPORT bool IsX11WindowFullScreen(XID window); 310 UI_EXPORT bool IsX11WindowFullScreen(XID window);
311 311
312 // Returns true if a given size is in list of bogus sizes in mm that X detects
313 // that should be ignored.
314 UI_EXPORT bool IsXDisplaySizeBlackListed(unsigned long mm_width,
315 unsigned long mm_height);
316
312 // Manages a piece of X11 allocated memory as a RefCountedMemory segment. This 317 // Manages a piece of X11 allocated memory as a RefCountedMemory segment. This
313 // object takes ownership over the passed in memory and will free it with the 318 // object takes ownership over the passed in memory and will free it with the
314 // X11 allocator when done. 319 // X11 allocator when done.
315 class UI_EXPORT XRefcountedMemory : public base::RefCountedMemory { 320 class UI_EXPORT XRefcountedMemory : public base::RefCountedMemory {
316 public: 321 public:
317 XRefcountedMemory(unsigned char* x11_data, size_t length) 322 XRefcountedMemory(unsigned char* x11_data, size_t length)
318 : x11_data_(length ? x11_data : NULL), 323 : x11_data_(length ? x11_data : NULL),
319 length_(length) { 324 length_(length) {
320 } 325 }
321 326
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 private: 389 private:
385 ::Cursor cursor_; 390 ::Cursor cursor_;
386 XDisplay* display_; 391 XDisplay* display_;
387 392
388 DISALLOW_COPY_AND_ASSIGN(XScopedCursor); 393 DISALLOW_COPY_AND_ASSIGN(XScopedCursor);
389 }; 394 };
390 395
391 } // namespace ui 396 } // namespace ui
392 397
393 #endif // UI_BASE_X_X11_UTIL_H_ 398 #endif // UI_BASE_X_X11_UTIL_H_
OLDNEW
« no previous file with comments | « ash/display/display_change_observer_chromeos_unittest.cc ('k') | ui/base/x/x11_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698