Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/views/widget/native_widget_aura.h" | 5 #include "ui/views/widget/native_widget_aura.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "ui/aura/client/aura_constants.h" | 9 #include "ui/aura/client/aura_constants.h" |
| 10 #include "ui/aura/client/drag_drop_client.h" | 10 #include "ui/aura/client/drag_drop_client.h" |
| (...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 680 DCHECK(drop_helper_.get() != NULL); | 680 DCHECK(drop_helper_.get() != NULL); |
| 681 return drop_helper_->OnDrop(event.data(), event.location(), | 681 return drop_helper_->OnDrop(event.data(), event.location(), |
| 682 event.source_operations()); | 682 event.source_operations()); |
| 683 } | 683 } |
| 684 | 684 |
| 685 //////////////////////////////////////////////////////////////////////////////// | 685 //////////////////////////////////////////////////////////////////////////////// |
| 686 // Widget, public: | 686 // Widget, public: |
| 687 | 687 |
| 688 // static | 688 // static |
| 689 void Widget::NotifyLocaleChanged() { | 689 void Widget::NotifyLocaleChanged() { |
| 690 // http://crbug.com/102574 | 690 const aura::Window::Windows& top_containers = |
| 691 NOTIMPLEMENTED(); | 691 aura::Desktop::GetInstance()->children(); |
| 692 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
| |
| 693 container != top_containers.end(); ++container) { | |
| 694 const aura::Window::Windows& top_windows = (*container)->children(); | |
| 695 for (aura::Window::Windows::const_iterator window = top_windows.begin(); | |
| 696 window != top_windows.end(); ++window) { | |
| 697 Widget* widget = Widget::GetWidgetForNativeWindow(*window); | |
| 698 if (widget) | |
| 699 widget->LocaleChanged(); | |
| 700 } | |
| 701 } | |
| 692 } | 702 } |
| 693 | 703 |
| 694 // static | 704 // static |
| 695 void Widget::CloseAllSecondaryWidgets() { | 705 void Widget::CloseAllSecondaryWidgets() { |
| 696 // http://crbug.com/102575 | 706 // http://crbug.com/102575 |
| 697 NOTIMPLEMENTED(); | 707 NOTIMPLEMENTED(); |
| 698 } | 708 } |
| 699 | 709 |
| 700 bool Widget::ConvertRect(const Widget* source, | 710 bool Widget::ConvertRect(const Widget* source, |
| 701 const Widget* target, | 711 const Widget* target, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 768 NOTIMPLEMENTED(); | 778 NOTIMPLEMENTED(); |
| 769 } | 779 } |
| 770 | 780 |
| 771 // static | 781 // static |
| 772 bool NativeWidgetPrivate::IsMouseButtonDown() { | 782 bool NativeWidgetPrivate::IsMouseButtonDown() { |
| 773 return aura::Desktop::GetInstance()->IsMouseButtonDown(); | 783 return aura::Desktop::GetInstance()->IsMouseButtonDown(); |
| 774 } | 784 } |
| 775 | 785 |
| 776 } // namespace internal | 786 } // namespace internal |
| 777 } // namespace views | 787 } // namespace views |
| OLD | NEW |