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

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: Remove unnecessary comment 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 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
« 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