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

Unified Diff: base/i18n/rtl.h

Issue 6894009: Change NavigationEntry's title fields to carry the text direction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 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 | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/i18n/rtl.h
diff --git a/base/i18n/rtl.h b/base/i18n/rtl.h
index 5159b465fbd5d6286b087aa4a866b942f6b64044..85ecf581a054b123718bda929927acc7656b6526 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_;
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698