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

Unified Diff: third_party/WebKit/Source/platform/text/TextDirection.h

Issue 2555923002: Changed TextDirection to an enum class and renamed its members (Closed)
Patch Set: Rebase after reopen Created 4 years 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: third_party/WebKit/Source/platform/text/TextDirection.h
diff --git a/third_party/WebKit/Source/platform/text/TextDirection.h b/third_party/WebKit/Source/platform/text/TextDirection.h
index 6bc0bca7fd92d3b04011dc2e395f5339c3a36929..e67698ae53c34374846181d52162ca34f6a7c9ef 100644
--- a/third_party/WebKit/Source/platform/text/TextDirection.h
+++ b/third_party/WebKit/Source/platform/text/TextDirection.h
@@ -28,10 +28,10 @@
namespace blink {
-enum TextDirection { RTL, LTR };
+enum class TextDirection : unsigned { Rtl, Ltr };
inline bool isLeftToRightDirection(TextDirection direction) {
- return direction == LTR;
+ return direction == TextDirection::Ltr;
}
}
« no previous file with comments | « third_party/WebKit/Source/platform/text/Character.cpp ('k') | third_party/WebKit/Source/platform/text/TextRun.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698