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

Unified Diff: ui/base/x/x11_util_internal.h

Issue 7328011: Introduce ui.dll / libui.so for the component build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 | « ui/base/x/x11_util.h ('k') | ui/gfx/blit.h » ('j') | ui/ui.gyp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/x11_util_internal.h
===================================================================
--- ui/base/x/x11_util_internal.h (revision 92815)
+++ ui/base/x/x11_util_internal.h (working copy)
@@ -19,32 +19,35 @@
#include <X11/extensions/Xrender.h>
}
+#include "ui/ui_api.h"
+
namespace ui {
- // --------------------------------------------------------------------------
- // 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);
+// --------------------------------------------------------------------------
+// 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);
+// Get the XRENDER format id for the default visual on the first screen. This
+// is the format which our GTK window will have.
+UI_API 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);
+// --------------------------------------------------------------------------
+// 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.
+UI_API void SetX11ErrorHandlers(XErrorHandler error_handler,
+ XIOErrorHandler io_error_handler);
- // NOTE: This function should not be called directly from the
- // X11 Error handler because it queries the server to decode the
- // error message, which may trigger other errors. A suitable workaround
- // is to post a task in the error handler to call this function.
- void LogErrorEventDescription(Display* dpy, const XErrorEvent& error_event);
+// NOTE: This function should not be called directly from the
+// X11 Error handler because it queries the server to decode the
+// error message, which may trigger other errors. A suitable workaround
+// is to post a task in the error handler to call this function.
+UI_API void LogErrorEventDescription(Display* dpy,
+ const XErrorEvent& error_event);
} // namespace ui
« no previous file with comments | « ui/base/x/x11_util.h ('k') | ui/gfx/blit.h » ('j') | ui/ui.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698