summaryrefslogtreecommitdiffstats
path: root/base/i18n/rtl.h
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-25 19:30:51 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-25 19:30:51 +0000
commit6b2f7a8c4ca23b35ef56246a7a86b0d414ac89ea (patch)
tree66d4d53b14636317320e4b54233717e1a18dd1eb /base/i18n/rtl.h
parent434d5c04054dd81df1973b80ffbc8f92b8673d70 (diff)
downloadchromium_src-6b2f7a8c4ca23b35ef56246a7a86b0d414ac89ea.zip
chromium_src-6b2f7a8c4ca23b35ef56246a7a86b0d414ac89ea.tar.gz
chromium_src-6b2f7a8c4ca23b35ef56246a7a86b0d414ac89ea.tar.bz2
Revert my recent changes regarding title directionality.
This reverts: r82400: Plumb direction of document title through IPC layer. r82582: Add and use a base::i18n::StringWithDirection for carrying titles. r82778: Change NavigationEntry's title fields to carry the text direction. I'm going to take an alternative approach; after getting this far, I can see that this approach was too complicated. BUG=27094 Review URL: http://codereview.chromium.org/6901003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82908 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/i18n/rtl.h')
-rw-r--r--base/i18n/rtl.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/base/i18n/rtl.h b/base/i18n/rtl.h
index 85ecf58..08bbe92 100644
--- a/base/i18n/rtl.h
+++ b/base/i18n/rtl.h
@@ -31,28 +31,6 @@ enum TextDirection {
LEFT_TO_RIGHT,
};
-// A string along with the text direction it should be displayed in.
-// Conceptually this is a struct; we just use 'class' to make it easier for
-// others to forward-declare us with 'class String16WithDirection'.
-class String16WithDirection {
- public:
- String16WithDirection() : direction_(UNKNOWN_DIRECTION) { }
- String16WithDirection(const string16& str, TextDirection dir)
- : string_(str), direction_(dir) { }
-
- 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_;
-};
-
// Get the locale that the currently running process has been configured to use.
// The return value is of the form language[-country] (e.g., en-US) where the
// language is the 2 or 3 letter code from ISO-639.