| 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 // Reorder the widget's child layers which belong to NativeViews attached to |
| 577 // the view tree (eg via a NativeViewHost). The layers are reordered to match |
| 578 // the order of views with layers / views with attached layers in the view |
| 579 // tree. This method assumes that the layers which are owned by views are |
| 580 // already correctly ordered relative to each other. |
| 581 void ReorderLayersForAttachedNativeViews(); |
| 582 |
| 576 // Schedules an update to the root layers. The actual processing occurs when | 583 // Schedules an update to the root layers. The actual processing occurs when |
| 577 // GetRootLayers() is invoked. | 584 // GetRootLayers() is invoked. |
| 578 void UpdateRootLayers(); | 585 void UpdateRootLayers(); |
| 579 | 586 |
| 580 const NativeWidget* native_widget() const; | 587 const NativeWidget* native_widget() const; |
| 581 NativeWidget* native_widget(); | 588 NativeWidget* native_widget(); |
| 582 | 589 |
| 583 internal::NativeWidgetPrivate* native_widget_private() { | 590 internal::NativeWidgetPrivate* native_widget_private() { |
| 584 return native_widget_; | 591 return native_widget_; |
| 585 } | 592 } |
| (...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 | 836 // True when window movement via mouse interaction with the frame should be |
| 830 // disabled. | 837 // disabled. |
| 831 bool movement_disabled_; | 838 bool movement_disabled_; |
| 832 | 839 |
| 833 DISALLOW_COPY_AND_ASSIGN(Widget); | 840 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 834 }; | 841 }; |
| 835 | 842 |
| 836 } // namespace views | 843 } // namespace views |
| 837 | 844 |
| 838 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 845 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |