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

Unified Diff: ui/gfx/skia_util.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
Index: ui/gfx/skia_util.h
===================================================================
--- ui/gfx/skia_util.h (revision 92815)
+++ ui/gfx/skia_util.h (working copy)
@@ -10,6 +10,7 @@
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkRect.h"
+#include "ui/ui_api.h"
class SkBitmap;
class SkShader;
@@ -19,8 +20,8 @@
class Rect;
// Convert between Skia and gfx rect types.
-SkRect RectToSkRect(const gfx::Rect& rect);
-gfx::Rect SkRectToRect(const SkRect& rect);
+UI_API SkRect RectToSkRect(const gfx::Rect& rect);
+UI_API gfx::Rect SkRectToRect(const SkRect& rect);
// Creates a vertical gradient shader. The caller owns the shader.
// Example usage to avoid leaks:
@@ -28,17 +29,18 @@
//
// (The old shader in the paint, if any, needs to be freed, and SkSafeUnref will
// handle the NULL case.)
-SkShader* CreateGradientShader(int start_point,
- int end_point,
- SkColor start_color,
- SkColor end_color);
+UI_API SkShader* CreateGradientShader(int start_point,
+ int end_point,
+ SkColor start_color,
+ SkColor end_color);
// Returns true if the two bitmaps contain the same pixels.
-bool BitmapsAreEqual(const SkBitmap& bitmap1, const SkBitmap& bitmap2);
+UI_API bool BitmapsAreEqual(const SkBitmap& bitmap1, const SkBitmap& bitmap2);
// Strip the accelerator char (typically '&') from a menu string. A
// double accelerator char ('&&') will be converted to a single char.
-std::string RemoveAcceleratorChar(const std::string& s, char accelerator_char);
+UI_API std::string RemoveAcceleratorChar(const std::string& s,
+ char accelerator_char);
} // namespace gfx;
« no previous file with comments | « ui/gfx/skbitmap_operations.h ('k') | ui/gfx/skia_utils_gtk.h » ('j') | ui/ui.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698