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

Unified Diff: ui/views/widget/native_widget_aura.cc

Issue 8802003: Implement Widget::NotifyLocaleChanged for Aura. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Signal LocaleChanged() to all windows recursively Created 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_aura.cc
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc
index b13182d9624edb7521635cad865df163d09e5349..4ad58269d2d0747ea1e151d012ee1caf2fb5338d 100644
--- a/ui/views/widget/native_widget_aura.cc
+++ b/ui/views/widget/native_widget_aura.cc
@@ -60,6 +60,18 @@ aura::WindowType GetAuraWindowTypeForWidgetType(Widget::InitParams::Type type) {
}
}
+void NotifyLocaleChangedInternal(aura::Window* window) {
+ Widget* widget = Widget::GetWidgetForNativeWindow(window);
+ if (widget)
+ widget->LocaleChanged();
+
+ const aura::Window::Windows& children = window->children();
+ for (aura::Window::Windows::const_iterator it = children.begin();
+ it != children.end(); ++it) {
+ NotifyLocaleChangedInternal(*it);
+ }
+}
+
} // namespace
// Used when SetInactiveRenderingDisabled() is invoked to track when active
@@ -689,8 +701,7 @@ int NativeWidgetAura::OnPerformDrop(const aura::DropTargetEvent& event) {
// static
void Widget::NotifyLocaleChanged() {
- // http://crbug.com/102574
- NOTIMPLEMENTED();
+ NotifyLocaleChangedInternal(aura::RootWindow::GetInstance());
}
// static
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698