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

Unified Diff: app/x11_util_internal.h

Issue 6257006: Move a bunch of random other files to src/ui/base... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « app/x11_util.cc ('k') | chrome/app/chrome_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/x11_util_internal.h
===================================================================
--- app/x11_util_internal.h (revision 71854)
+++ app/x11_util_internal.h (working copy)
@@ -1,46 +0,0 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef APP_X11_UTIL_INTERNAL_H_
-#define APP_X11_UTIL_INTERNAL_H_
-#pragma once
-
-// This file declares utility functions for X11 (Linux only).
-//
-// These functions require the inclusion of the Xlib headers. Since the Xlib
-// headers pollute so much of the namespace, this should only be included
-// when needed.
-
-extern "C" {
-#include <X11/Xatom.h>
-#include <X11/Xlib.h>
-#include <X11/extensions/XShm.h>
-#include <X11/extensions/Xrender.h>
-}
-
-namespace x11_util {
- // --------------------------------------------------------------------------
- // NOTE: these functions cache the results and must be called from the UI
- // thread.
- // Get the XRENDER format id for ARGB32 (Skia's format).
- //
- // NOTE:Currently this don't support multiple screens/displays.
- XRenderPictFormat* GetRenderARGB32Format(Display* dpy);
-
- // Get the XRENDER format id for the default visual on the first screen. This
- // is the format which our GTK window will have.
- XRenderPictFormat* GetRenderVisualFormat(Display* dpy, Visual* visual);
-
- // --------------------------------------------------------------------------
- // X11 error handling.
- // Sets the X Error Handlers. Passing NULL for either will enable the default
- // error handler, which if called will log the error and abort the process.
- void SetX11ErrorHandlers(XErrorHandler error_handler,
- XIOErrorHandler io_error_handler);
-
- // Returns a string suitable for logging the error event.
- std::string GetErrorEventDescription(Display* dpy, XErrorEvent* error_event);
-};
-
-#endif // APP_X11_UTIL_INTERNAL_H_
« no previous file with comments | « app/x11_util.cc ('k') | chrome/app/chrome_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698