summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-23 03:17:28 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-23 03:17:28 +0000
commit40ead7b6ab0a6de7f8c572e5ff4987433b17a066 (patch)
tree6b0565f4cab63a822342645061f4819730809488 /base
parentfd8db6c4eaeb557c2b9e142a289d9a1b80fb5756 (diff)
downloadchromium_src-40ead7b6ab0a6de7f8c572e5ff4987433b17a066.zip
chromium_src-40ead7b6ab0a6de7f8c572e5ff4987433b17a066.tar.gz
chromium_src-40ead7b6ab0a6de7f8c572e5ff4987433b17a066.tar.bz2
Change NavigationEntry's title fields to carry the text direction.
Mark most of the users with a tag pointing at the bug, so they can be fixed incrementally. BUG=27094 Review URL: http://codereview.chromium.org/6894009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82778 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/i18n/rtl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/i18n/rtl.h b/base/i18n/rtl.h
index 5159b46..85ecf58 100644
--- a/base/i18n/rtl.h
+++ b/base/i18n/rtl.h
@@ -43,6 +43,11 @@ class String16WithDirection {
const string16& string() const { return string_; }
TextDirection direction() const { return direction_; }
+ bool is_empty() const { return string_.empty(); }
+ bool operator==(const String16WithDirection& other) const {
+ return string_ == other.string_ && direction_ == other.direction_;
+ }
+
private:
string16 string_;
TextDirection direction_;