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

Unified Diff: chrome/browser/gtk/location_bar_view_gtk.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/gtk_util.cc ('k') | chrome/browser/gtk/menu_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/location_bar_view_gtk.cc
===================================================================
--- chrome/browser/gtk/location_bar_view_gtk.cc (revision 42180)
+++ chrome/browser/gtk/location_bar_view_gtk.cc (working copy)
@@ -10,6 +10,7 @@
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/basictypes.h"
+#include "base/i18n/rtl.h"
#include "base/logging.h"
#include "base/string_util.h"
#include "chrome/app/chrome_dll_resource.h"
@@ -120,7 +121,7 @@
} else {
min_string = description.substr(0, chop_index);
}
- l10n_util::AdjustStringForLocaleDirection(min_string, &min_string);
+ base::i18n::AdjustStringForLocaleDirection(min_string, &min_string);
return min_string;
}
@@ -841,7 +842,7 @@
// of star button, so shift x and y co-ordinates.
int y_offset = widget()->allocation.height + kFirstRunBubbleTopMargin;
int x_offset = 0;
- if (l10n_util::GetTextDirection() == l10n_util::LEFT_TO_RIGHT)
+ if (!base::i18n::IsRTL())
x_offset = kFirstRunBubbleLeftMargin;
else
x_offset = widget()->allocation.width - kFirstRunBubbleLeftMargin;
« no previous file with comments | « chrome/browser/gtk/gtk_util.cc ('k') | chrome/browser/gtk/menu_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698