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

Unified Diff: chrome/browser/gtk/rounded_window.cc

Issue 1073005: Move RTL related functions from app/l10n_util to base/i18n/rtl... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 | « chrome/browser/gtk/nine_box.cc ('k') | chrome/browser/gtk/status_bubble_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/rounded_window.cc
===================================================================
--- chrome/browser/gtk/rounded_window.cc (revision 42180)
+++ chrome/browser/gtk/rounded_window.cc (working copy)
@@ -7,7 +7,7 @@
#include <gtk/gtk.h>
#include <math.h>
-#include "app/l10n_util.h"
+#include "base/i18n/rtl.h"
#include "chrome/browser/gtk/gtk_util.h"
namespace gtk_util {
@@ -60,7 +60,7 @@
std::vector<GdkPoint> points;
- bool ltr = l10n_util::GetTextDirection() == l10n_util::LEFT_TO_RIGHT;
+ bool ltr = !base::i18n::IsRTL();
// If we have a stroke, we have to offset some of our points by 1 pixel.
// We have to inset by 1 pixel when we draw horizontal lines that are on the
// bottom or when we draw vertical lines that are closer to the end (end is
« no previous file with comments | « chrome/browser/gtk/nine_box.cc ('k') | chrome/browser/gtk/status_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698