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 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 // mouse location to refresh hovering status in the widget. | 725 // mouse location to refresh hovering status in the widget. |
726 void SynthesizeMouseMoveEvent(); | 726 void SynthesizeMouseMoveEvent(); |
727 | 727 |
728 // Called by our RootView after it has performed a Layout. Used to forward | 728 // Called by our RootView after it has performed a Layout. Used to forward |
729 // window sizing information to the window server on some platforms. | 729 // window sizing information to the window server on some platforms. |
730 void OnRootViewLayout(); | 730 void OnRootViewLayout(); |
731 | 731 |
732 // Whether the widget supports translucency. | 732 // Whether the widget supports translucency. |
733 bool IsTranslucentWindowOpacitySupported() const; | 733 bool IsTranslucentWindowOpacitySupported() const; |
734 | 734 |
| 735 // Called when the delegate's CanResize or CanMaximize changes. |
| 736 void OnSizeConstraintsChanged(); |
| 737 |
735 // Notification that our owner is closing. | 738 // Notification that our owner is closing. |
736 // NOTE: this is not invoked for aura as it's currently not needed there. | 739 // NOTE: this is not invoked for aura as it's currently not needed there. |
737 // Under aura menus close by way of activation getting reset when the owner | 740 // Under aura menus close by way of activation getting reset when the owner |
738 // closes. | 741 // closes. |
739 virtual void OnOwnerClosing(); | 742 virtual void OnOwnerClosing(); |
740 | 743 |
741 // Overridden from NativeWidgetDelegate: | 744 // Overridden from NativeWidgetDelegate: |
742 virtual bool IsModal() const OVERRIDE; | 745 virtual bool IsModal() const OVERRIDE; |
743 virtual bool IsDialogBox() const OVERRIDE; | 746 virtual bool IsDialogBox() const OVERRIDE; |
744 virtual bool CanActivate() const OVERRIDE; | 747 virtual bool CanActivate() const OVERRIDE; |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
946 bool movement_disabled_; | 949 bool movement_disabled_; |
947 | 950 |
948 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 951 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
949 | 952 |
950 DISALLOW_COPY_AND_ASSIGN(Widget); | 953 DISALLOW_COPY_AND_ASSIGN(Widget); |
951 }; | 954 }; |
952 | 955 |
953 } // namespace views | 956 } // namespace views |
954 | 957 |
955 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 958 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |