OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/widget.h" | 5 #include "ui/views/widget/widget.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 root_view_->ReorderChildLayers(layer); | 890 root_view_->ReorderChildLayers(layer); |
891 } | 891 } |
892 | 892 |
893 void Widget::UpdateRootLayers() { | 893 void Widget::UpdateRootLayers() { |
894 // Calculate the layers requires traversing the tree, and since nearly any | 894 // Calculate the layers requires traversing the tree, and since nearly any |
895 // mutation of the tree can trigger this call we delay until absolutely | 895 // mutation of the tree can trigger this call we delay until absolutely |
896 // necessary. | 896 // necessary. |
897 root_layers_dirty_ = true; | 897 root_layers_dirty_ = true; |
898 } | 898 } |
899 | 899 |
900 void Widget::NotifyAccessibilityEvent( | |
901 View* view, | |
902 ui::AccessibilityTypes::Event event_type, | |
903 bool send_native_event) { | |
904 // TODO(dmazzoni): get rid of this method and have clients just use | |
905 // View::NotifyAccessibilityEvent directly. | |
906 view->NotifyAccessibilityEvent(event_type, send_native_event); | |
907 } | |
908 | |
909 const NativeWidget* Widget::native_widget() const { | 900 const NativeWidget* Widget::native_widget() const { |
910 return native_widget_; | 901 return native_widget_; |
911 } | 902 } |
912 | 903 |
913 NativeWidget* Widget::native_widget() { | 904 NativeWidget* Widget::native_widget() { |
914 return native_widget_; | 905 return native_widget_; |
915 } | 906 } |
916 | 907 |
917 void Widget::SetCapture(View* view) { | 908 void Widget::SetCapture(View* view) { |
918 if (internal::NativeWidgetPrivate::IsMouseButtonDown()) | 909 if (internal::NativeWidgetPrivate::IsMouseButtonDown()) |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1436 | 1427 |
1437 //////////////////////////////////////////////////////////////////////////////// | 1428 //////////////////////////////////////////////////////////////////////////////// |
1438 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1429 // internal::NativeWidgetPrivate, NativeWidget implementation: |
1439 | 1430 |
1440 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1431 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
1441 return this; | 1432 return this; |
1442 } | 1433 } |
1443 | 1434 |
1444 } // namespace internal | 1435 } // namespace internal |
1445 } // namespace views | 1436 } // namespace views |
OLD | NEW |