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

Unified Diff: ui/gfx/utf16_indexing.h

Issue 23498059: Remove last dependencies on ui/base from ui/gfx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix DEPS file Created 7 years, 3 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/utf16_indexing.h
diff --git a/ui/gfx/utf16_indexing.h b/ui/gfx/utf16_indexing.h
index 7f56384299f390d9a664284cc612e21762318ac7..2bdb696f36b3c45199de58d8ea597383e5104b57 100644
--- a/ui/gfx/utf16_indexing.h
+++ b/ui/gfx/utf16_indexing.h
@@ -12,7 +12,7 @@ namespace gfx {
// Returns false if s[index-1] is a high surrogate and s[index] is a low
// surrogate, true otherwise.
-UI_EXPORT bool IsValidCodePointIndex(const string16& s, size_t index);
+GFX_EXPORT bool IsValidCodePointIndex(const string16& s, size_t index);
// |UTF16IndexToOffset| returns the number of code points between |base| and
// |pos| in the given string. |UTF16OffsetToIndex| returns the index that is
@@ -37,10 +37,10 @@ UI_EXPORT bool IsValidCodePointIndex(const string16& s, size_t index);
// Always,
// UTF16IndexToOffset(s, base, UTF16OffsetToIndex(s, base, ofs)) == ofs
// UTF16IndexToOffset(s, i, j) == -UTF16IndexToOffset(s, j, i)
-UI_EXPORT ptrdiff_t UTF16IndexToOffset(const string16& s,
+GFX_EXPORT ptrdiff_t UTF16IndexToOffset(const string16& s,
size_t base,
sky 2013/09/24 19:11:40 nit: moar indenting
size_t pos);
-UI_EXPORT size_t UTF16OffsetToIndex(const string16& s,
+GFX_EXPORT size_t UTF16OffsetToIndex(const string16& s,
size_t base,
ptrdiff_t offset);

Powered by Google App Engine
This is Rietveld 408576698