Chromium Code Reviews| 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 71500e3f83dcc0b53b9d589c07e13fbc849dbe70..9d3bbcb549bed6570ea62c18aa01ead84e263881 100644 |
| --- a/ui/views/widget/native_widget_aura.cc |
| +++ b/ui/views/widget/native_widget_aura.cc |
| @@ -687,8 +687,18 @@ int NativeWidgetAura::OnPerformDrop(const aura::DropTargetEvent& event) { |
| // static |
| void Widget::NotifyLocaleChanged() { |
| - // http://crbug.com/102574 |
| - NOTIMPLEMENTED(); |
| + const aura::Window::Windows& top_containers = |
| + aura::Desktop::GetInstance()->children(); |
| + for (aura::Window::Windows::const_iterator container = top_containers.begin(); |
|
Ben Goodger (Google)
2011/12/06 17:02:47
you're only notifying the toplevels. this seems we
Jun Mukai
2011/12/08 02:00:11
Fixed. I misunderstood the views hierarchy and aur
|
| + container != top_containers.end(); ++container) { |
| + const aura::Window::Windows& top_windows = (*container)->children(); |
| + for (aura::Window::Windows::const_iterator window = top_windows.begin(); |
| + window != top_windows.end(); ++window) { |
| + Widget* widget = Widget::GetWidgetForNativeWindow(*window); |
| + if (widget) |
| + widget->LocaleChanged(); |
| + } |
| + } |
| } |
| // static |