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

Unified Diff: chrome/browser/gtk/gtk_util.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/go_button_gtk.cc ('k') | chrome/browser/gtk/location_bar_view_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/gtk_util.cc
===================================================================
--- chrome/browser/gtk/gtk_util.cc (revision 42180)
+++ chrome/browser/gtk/gtk_util.cc (working copy)
@@ -11,9 +11,9 @@
#include <map>
#include "app/gtk_util.h"
-#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "app/x11_util.h"
+#include "base/i18n/rtl.h"
#include "base/linux_util.h"
#include "base/logging.h"
#include "chrome/browser/browser_list.h"
@@ -504,16 +504,14 @@
}
int MirroredLeftPointForRect(GtkWidget* widget, const gfx::Rect& bounds) {
- if (l10n_util::GetTextDirection() != l10n_util::RIGHT_TO_LEFT) {
+ if (base::i18n::IsRTL())
return bounds.x();
- }
return widget->allocation.width - bounds.x() - bounds.width();
}
int MirroredXCoordinate(GtkWidget* widget, int x) {
- if (l10n_util::GetTextDirection() == l10n_util::RIGHT_TO_LEFT) {
+ if (base::i18n::IsRTL())
return widget->allocation.width - x;
- }
return x;
}
« no previous file with comments | « chrome/browser/gtk/go_button_gtk.cc ('k') | chrome/browser/gtk/location_bar_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698