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 #ifndef UI_VIEWS_WIDGET_WIDGET_H_ | 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_ |
6 #define UI_VIEWS_WIDGET_WIDGET_H_ | 6 #define UI_VIEWS_WIDGET_WIDGET_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <stack> | 9 #include <stack> |
10 #include <vector> | 10 #include <vector> |
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 // non_client_view_ may be NULL, especially during creation. | 566 // non_client_view_ may be NULL, especially during creation. |
567 return non_client_view_ ? non_client_view_->client_view() : NULL; | 567 return non_client_view_ ? non_client_view_->client_view() : NULL; |
568 } | 568 } |
569 | 569 |
570 const ui::Compositor* GetCompositor() const; | 570 const ui::Compositor* GetCompositor() const; |
571 ui::Compositor* GetCompositor(); | 571 ui::Compositor* GetCompositor(); |
572 | 572 |
573 // Returns the widget's layer, if any. | 573 // Returns the widget's layer, if any. |
574 ui::Layer* GetLayer(); | 574 ui::Layer* GetLayer(); |
575 | 575 |
| 576 // Reorders the widget's child NativeViews which are associated to the view |
| 577 // tree (eg via a NativeViewHost) to match the z-order of the views in the |
| 578 // view tree. The z-order of views with layers relative to views with |
| 579 // associated NativeViews is used to reorder the NativeView layers. This |
| 580 // method assumes that the widget's child layers which are owned by a view are |
| 581 // already in the correct z-order relative to each other and does no |
| 582 // reordering if there are no views with an associated NativeView. |
| 583 void ReorderNativeViews(); |
| 584 |
576 // Schedules an update to the root layers. The actual processing occurs when | 585 // Schedules an update to the root layers. The actual processing occurs when |
577 // GetRootLayers() is invoked. | 586 // GetRootLayers() is invoked. |
578 void UpdateRootLayers(); | 587 void UpdateRootLayers(); |
579 | 588 |
580 const NativeWidget* native_widget() const; | 589 const NativeWidget* native_widget() const; |
581 NativeWidget* native_widget(); | 590 NativeWidget* native_widget(); |
582 | 591 |
583 internal::NativeWidgetPrivate* native_widget_private() { | 592 internal::NativeWidgetPrivate* native_widget_private() { |
584 return native_widget_; | 593 return native_widget_; |
585 } | 594 } |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 // True when window movement via mouse interaction with the frame should be | 838 // True when window movement via mouse interaction with the frame should be |
830 // disabled. | 839 // disabled. |
831 bool movement_disabled_; | 840 bool movement_disabled_; |
832 | 841 |
833 DISALLOW_COPY_AND_ASSIGN(Widget); | 842 DISALLOW_COPY_AND_ASSIGN(Widget); |
834 }; | 843 }; |
835 | 844 |
836 } // namespace views | 845 } // namespace views |
837 | 846 |
838 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 847 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |