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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 const_cast<const Widget*>(this)->client_view()); | 563 const_cast<const Widget*>(this)->client_view()); |
564 } | 564 } |
565 const ClientView* client_view() const { | 565 const ClientView* client_view() const { |
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 // Invokes method of same name on the NativeWidget. | 573 // Returns the widget's layer, if any. |
574 gfx::Vector2d CalculateOffsetToAncestorWithLayer( | 574 ui::Layer* GetLayer(); |
575 ui::Layer** layer_parent); | |
576 | |
577 // Invokes method of same name on the NativeWidget. | |
578 void ReorderLayers(); | |
579 | 575 |
580 // Schedules an update to the root layers. The actual processing occurs when | 576 // Schedules an update to the root layers. The actual processing occurs when |
581 // GetRootLayers() is invoked. | 577 // GetRootLayers() is invoked. |
582 void UpdateRootLayers(); | 578 void UpdateRootLayers(); |
583 | 579 |
584 const NativeWidget* native_widget() const; | 580 const NativeWidget* native_widget() const; |
585 NativeWidget* native_widget(); | 581 NativeWidget* native_widget(); |
586 | 582 |
587 internal::NativeWidgetPrivate* native_widget_private() { | 583 internal::NativeWidgetPrivate* native_widget_private() { |
588 return native_widget_; | 584 return native_widget_; |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 // True when window movement via mouse interaction with the frame should be | 829 // True when window movement via mouse interaction with the frame should be |
834 // disabled. | 830 // disabled. |
835 bool movement_disabled_; | 831 bool movement_disabled_; |
836 | 832 |
837 DISALLOW_COPY_AND_ASSIGN(Widget); | 833 DISALLOW_COPY_AND_ASSIGN(Widget); |
838 }; | 834 }; |
839 | 835 |
840 } // namespace views | 836 } // namespace views |
841 | 837 |
842 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 838 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |