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

Unified Diff: ui/gfx/color_utils.h

Issue 7569005: Rename UI_API to UI_EXPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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/gfx/color_analysis.h ('k') | ui/gfx/font.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_utils.h
===================================================================
--- ui/gfx/color_utils.h (revision 95624)
+++ ui/gfx/color_utils.h (working copy)
@@ -7,7 +7,7 @@
#pragma once
#include "third_party/skia/include/core/SkColor.h"
-#include "ui/ui_api.h"
+#include "ui/base/ui_export.h"
class SkBitmap;
@@ -23,11 +23,11 @@
unsigned char GetLuminanceForColor(SkColor color);
// Calculated according to http://www.w3.org/TR/WCAG20/#relativeluminancedef
-UI_API double RelativeLuminance(SkColor color);
+UI_EXPORT double RelativeLuminance(SkColor color);
// Note: these transformations assume sRGB as the source color space
-UI_API void SkColorToHSL(SkColor c, HSL* hsl);
-UI_API SkColor HSLToSkColor(const HSL& hsl, SkAlpha alpha);
+UI_EXPORT void SkColorToHSL(SkColor c, HSL* hsl);
+UI_EXPORT SkColor HSLToSkColor(const HSL& hsl, SkAlpha alpha);
// HSL-Shift an SkColor. The shift values are in the range of 0-1, with the
// option to specify -1 for 'no change'. The shift values are defined as:
@@ -43,7 +43,7 @@
// 0 = remove all lightness (make all pixels black).
// 0.5 = leave unchanged.
// 1 = full lightness (make all pixels white).
-UI_API SkColor HSLShift(SkColor color, const HSL& shift);
+UI_EXPORT SkColor HSLShift(SkColor color, const HSL& shift);
// Determine if a given alpha value is nearly completely transparent.
bool IsColorCloseToTransparent(SkAlpha alpha);
@@ -58,14 +58,14 @@
// Builds a histogram based on the Y' of the Y'UV representation of
// this image.
-UI_API void BuildLumaHistogram(SkBitmap* bitmap, int histogram[256]);
+UI_EXPORT void BuildLumaHistogram(SkBitmap* bitmap, int histogram[256]);
// Returns a blend of the supplied colors, ranging from |background| (for
// |alpha| == 0) to |foreground| (for |alpha| == 255). The alpha channels of
// the supplied colors are also taken into account, so the returned color may
// be partially transparent.
-UI_API SkColor AlphaBlend(SkColor foreground, SkColor background,
- SkAlpha alpha);
+UI_EXPORT SkColor AlphaBlend(SkColor foreground, SkColor background,
+ SkAlpha alpha);
// Given a foreground and background color, try to return a foreground color
// that is "readable" over the background color by luma-inverting the foreground
@@ -74,10 +74,10 @@
//
// NOTE: This won't do anything but waste time if the supplied foreground color
// has a luma value close to the midpoint (0.5 in the HSL representation).
-UI_API SkColor GetReadableColor(SkColor foreground, SkColor background);
+UI_EXPORT SkColor GetReadableColor(SkColor foreground, SkColor background);
// Gets a Windows system color as a SkColor
-UI_API SkColor GetSysSkColor(int which);
+UI_EXPORT SkColor GetSysSkColor(int which);
} // namespace color_utils
« no previous file with comments | « ui/gfx/color_analysis.h ('k') | ui/gfx/font.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698