summaryrefslogtreecommitdiffstats
path: root/base/i18n/rtl.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/i18n/rtl.h')
-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_;