Index: ui/gfx/text_elider.h |
diff --git a/ui/gfx/text_elider.h b/ui/gfx/text_elider.h |
index 008a1cd1b5b1c60c9b7e5de0c62042d5f07fb8dd..ff0cef0163e15a8c32b52af1b90d38ce6152892c 100644 |
--- a/ui/gfx/text_elider.h |
+++ b/ui/gfx/text_elider.h |
@@ -26,8 +26,8 @@ namespace gfx { |
class Font; |
class FontList; |
-UI_EXPORT extern const char kEllipsis[]; |
-UI_EXPORT extern const char16 kEllipsisUTF16[]; |
+GFX_EXPORT extern const char kEllipsis[]; |
+GFX_EXPORT extern const char16 kEllipsisUTF16[]; |
// Elides a well-formed email address (e.g. username@domain.com) to fit into |
// |available_pixel_width| using the specified |font_list|. |
@@ -39,13 +39,13 @@ UI_EXPORT extern const char16 kEllipsisUTF16[]; |
// equally with the elided username (should the username be short enough that it |
// doesn't need half the available width: the elided domain will occupy that |
// extra width). |
-UI_EXPORT string16 ElideEmail(const string16& email, |
- const gfx::FontList& font_list, |
- int available_pixel_width); |
+GFX_EXPORT string16 ElideEmail(const string16& email, |
+ const gfx::FontList& font_list, |
+ int available_pixel_width); |
// Obsolete version. Use the above version which takes gfx::FontList. |
-UI_EXPORT string16 ElideEmail(const string16& email, |
- const gfx::Font& font, |
- int available_pixel_width); |
+GFX_EXPORT string16 ElideEmail(const string16& email, |
+ const gfx::Font& font, |
+ int available_pixel_width); |
// This function takes a GURL object and elides it. It returns a string |
// which composed of parts from subdomain, domain, path, filename and query. |
@@ -61,15 +61,15 @@ UI_EXPORT string16 ElideEmail(const string16& email, |
// as an LTR string (using base::i18n::WrapStringWithLTRFormatting()) so that it |
// is displayed properly in an RTL context. Please refer to |
// http://crbug.com/6487 for more information. |
-UI_EXPORT string16 ElideUrl(const GURL& url, |
- const gfx::FontList& font_list, |
- int available_pixel_width, |
- const std::string& languages); |
+GFX_EXPORT string16 ElideUrl(const GURL& url, |
+ const gfx::FontList& font_list, |
+ int available_pixel_width, |
+ const std::string& languages); |
// Obsolete version. Use the above version which takes gfx::FontList. |
-UI_EXPORT string16 ElideUrl(const GURL& url, |
- const gfx::Font& font, |
- int available_pixel_width, |
- const std::string& languages); |
+GFX_EXPORT string16 ElideUrl(const GURL& url, |
+ const gfx::Font& font, |
+ int available_pixel_width, |
+ const std::string& languages); |
enum ElideBehavior { |
// Add ellipsis at the end of the string. |
@@ -82,15 +82,15 @@ enum ElideBehavior { |
// Elides |text| to fit in |available_pixel_width| according to the specified |
// |elide_behavior|. |
-UI_EXPORT string16 ElideText(const string16& text, |
- const gfx::FontList& font_list, |
- int available_pixel_width, |
- ElideBehavior elide_behavior); |
+GFX_EXPORT string16 ElideText(const string16& text, |
+ const gfx::FontList& font_list, |
+ int available_pixel_width, |
+ ElideBehavior elide_behavior); |
// Obsolete version. Use the above version which takes gfx::FontList. |
-UI_EXPORT string16 ElideText(const string16& text, |
- const gfx::Font& font, |
- int available_pixel_width, |
- ElideBehavior elide_behavior); |
+GFX_EXPORT string16 ElideText(const string16& text, |
+ const gfx::Font& font, |
+ int available_pixel_width, |
+ ElideBehavior elide_behavior); |
// Elide a filename to fit a given pixel width, with an emphasis on not hiding |
// the extension unless we have to. If filename contains a path, the path will |
@@ -98,20 +98,20 @@ UI_EXPORT string16 ElideText(const string16& text, |
// filename is forced to have LTR directionality, which means that in RTL UI |
// the elided filename is wrapped with LRE (Left-To-Right Embedding) mark and |
// PDF (Pop Directional Formatting) mark. |
-UI_EXPORT string16 ElideFilename(const base::FilePath& filename, |
- const gfx::FontList& font_list, |
- int available_pixel_width); |
+GFX_EXPORT string16 ElideFilename(const base::FilePath& filename, |
+ const gfx::FontList& font_list, |
+ int available_pixel_width); |
// Obsolete version. Use the above version which takes gfx::FontList. |
-UI_EXPORT string16 ElideFilename(const base::FilePath& filename, |
- const gfx::Font& font, |
- int available_pixel_width); |
+GFX_EXPORT string16 ElideFilename(const base::FilePath& filename, |
+ const gfx::Font& font, |
+ int available_pixel_width); |
// SortedDisplayURL maintains a string from a URL suitable for display to the |
// use. SortedDisplayURL also provides a function used for comparing two |
// SortedDisplayURLs for use in visually ordering the SortedDisplayURLs. |
// |
// SortedDisplayURL is relatively cheap and supports value semantics. |
-class UI_EXPORT SortedDisplayURL { |
+class GFX_EXPORT SortedDisplayURL { |
public: |
SortedDisplayURL(const GURL& url, const std::string& languages); |
SortedDisplayURL(); |
@@ -154,8 +154,8 @@ class UI_EXPORT SortedDisplayURL { |
// puts "Hell...Tom" in str and returns true. |
// TODO(tsepez): Doesn't handle UTF-16 surrogate pairs properly. |
// TODO(tsepez): Doesn't handle bidi properly. |
-UI_EXPORT bool ElideString(const string16& input, int max_len, |
- string16* output); |
+GFX_EXPORT bool ElideString(const string16& input, int max_len, |
+ string16* output); |
// Reformat |input| into |output| so that it fits into a |max_rows| by |
// |max_cols| rectangle of characters. Input newlines are respected, but |
@@ -166,9 +166,9 @@ UI_EXPORT bool ElideString(const string16& input, int max_len, |
// intra-word (respecting UTF-16 surrogate pairs) as necssary. Truncation |
// (indicated by an added 3 dots) occurs if the result is still too long. |
// Returns true if the input had to be truncated (and not just reformatted). |
-UI_EXPORT bool ElideRectangleString(const string16& input, size_t max_rows, |
- size_t max_cols, bool strict, |
- string16* output); |
+GFX_EXPORT bool ElideRectangleString(const string16& input, size_t max_rows, |
+ size_t max_cols, bool strict, |
+ string16* output); |
// Specifies the word wrapping behavior of |ElideRectangleText()| when a word |
// would exceed the available width. |
@@ -206,26 +206,26 @@ enum ReformattingResultFlags { |
// param. Returns a combination of |ReformattingResultFlags| that indicate |
// whether the given rectangle had insufficient space to accommodate |texŧ|, |
// leading to elision or truncation (and not just reformatting). |
-UI_EXPORT int ElideRectangleText(const string16& text, |
- const gfx::FontList& font_list, |
- int available_pixel_width, |
- int available_pixel_height, |
- WordWrapBehavior wrap_behavior, |
- std::vector<string16>* lines); |
+GFX_EXPORT int ElideRectangleText(const string16& text, |
+ const gfx::FontList& font_list, |
+ int available_pixel_width, |
+ int available_pixel_height, |
+ WordWrapBehavior wrap_behavior, |
+ std::vector<string16>* lines); |
// Obsolete version. Use the above version which takes gfx::FontList. |
-UI_EXPORT int ElideRectangleText(const string16& text, |
- const gfx::Font& font, |
- int available_pixel_width, |
- int available_pixel_height, |
- WordWrapBehavior wrap_behavior, |
- std::vector<string16>* lines); |
+GFX_EXPORT int ElideRectangleText(const string16& text, |
+ const gfx::Font& font, |
+ int available_pixel_width, |
+ int available_pixel_height, |
+ WordWrapBehavior wrap_behavior, |
+ std::vector<string16>* lines); |
// Truncates the string to length characters. This breaks the string at |
// the first word break before length, adding the horizontal ellipsis |
// character (unicode character 0x2026) to render ... |
// The supplied string is returned if the string has length characters or |
// less. |
-UI_EXPORT string16 TruncateString(const string16& string, size_t length); |
+GFX_EXPORT string16 TruncateString(const string16& string, size_t length); |
} // namespace gfx |