| 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 // Called by our RootView after it has performed a Layout. Used to forward | 725 // Called by our RootView after it has performed a Layout. Used to forward |
| 726 // window sizing information to the window server on some platforms. | 726 // window sizing information to the window server on some platforms. |
| 727 void OnRootViewLayout(); | 727 void OnRootViewLayout(); |
| 728 | 728 |
| 729 // Notification that our owner is closing. | 729 // Notification that our owner is closing. |
| 730 // NOTE: this is not invoked for aura as it's currently not needed there. | 730 // NOTE: this is not invoked for aura as it's currently not needed there. |
| 731 // Under aura menus close by way of activation getting reset when the owner | 731 // Under aura menus close by way of activation getting reset when the owner |
| 732 // closes. | 732 // closes. |
| 733 virtual void OnOwnerClosing(); | 733 virtual void OnOwnerClosing(); |
| 734 | 734 |
| 735 // Whether the widget can have a transparent background. |
| 736 bool CanHaveAlphaEnabled() const; |
| 737 |
| 735 // Overridden from NativeWidgetDelegate: | 738 // Overridden from NativeWidgetDelegate: |
| 736 virtual bool IsModal() const OVERRIDE; | 739 virtual bool IsModal() const OVERRIDE; |
| 737 virtual bool IsDialogBox() const OVERRIDE; | 740 virtual bool IsDialogBox() const OVERRIDE; |
| 738 virtual bool CanActivate() const OVERRIDE; | 741 virtual bool CanActivate() const OVERRIDE; |
| 739 virtual bool IsInactiveRenderingDisabled() const OVERRIDE; | 742 virtual bool IsInactiveRenderingDisabled() const OVERRIDE; |
| 740 virtual void EnableInactiveRendering() OVERRIDE; | 743 virtual void EnableInactiveRendering() OVERRIDE; |
| 741 virtual void OnNativeWidgetActivationChanged(bool active) OVERRIDE; | 744 virtual void OnNativeWidgetActivationChanged(bool active) OVERRIDE; |
| 742 virtual void OnNativeFocus(gfx::NativeView old_focused_view) OVERRIDE; | 745 virtual void OnNativeFocus(gfx::NativeView old_focused_view) OVERRIDE; |
| 743 virtual void OnNativeBlur(gfx::NativeView new_focused_view) OVERRIDE; | 746 virtual void OnNativeBlur(gfx::NativeView new_focused_view) OVERRIDE; |
| 744 virtual void OnNativeWidgetVisibilityChanging(bool visible) OVERRIDE; | 747 virtual void OnNativeWidgetVisibilityChanging(bool visible) OVERRIDE; |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 bool movement_disabled_; | 931 bool movement_disabled_; |
| 929 | 932 |
| 930 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 933 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
| 931 | 934 |
| 932 DISALLOW_COPY_AND_ASSIGN(Widget); | 935 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 933 }; | 936 }; |
| 934 | 937 |
| 935 } // namespace views | 938 } // namespace views |
| 936 | 939 |
| 937 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 940 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |