Chromium Code Reviews| 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 <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 772 // NOTE: this is not invoked for aura as it's currently not needed there. | 772 // NOTE: this is not invoked for aura as it's currently not needed there. |
| 773 // Under aura menus close by way of activation getting reset when the owner | 773 // Under aura menus close by way of activation getting reset when the owner |
| 774 // closes. | 774 // closes. |
| 775 virtual void OnOwnerClosing(); | 775 virtual void OnOwnerClosing(); |
| 776 | 776 |
| 777 // Returns the internal name for this Widget and NativeWidget. | 777 // Returns the internal name for this Widget and NativeWidget. |
| 778 std::string GetName() const; | 778 std::string GetName() const; |
| 779 | 779 |
| 780 // Overridden from NativeWidgetDelegate: | 780 // Overridden from NativeWidgetDelegate: |
| 781 bool IsModal() const override; | 781 bool IsModal() const override; |
| 782 bool IsModalTypeChild() const override; | |
|
Mike Wittman
2016/07/26 17:27:35
This function is only used in one place, so I don'
rbpotter
2016/07/26 21:48:19
Done.
| |
| 782 bool IsDialogBox() const override; | 783 bool IsDialogBox() const override; |
| 783 bool CanActivate() const override; | 784 bool CanActivate() const override; |
| 784 bool IsAlwaysRenderAsActive() const override; | 785 bool IsAlwaysRenderAsActive() const override; |
| 785 void SetAlwaysRenderAsActive(bool always_render_as_active) override; | 786 void SetAlwaysRenderAsActive(bool always_render_as_active) override; |
| 786 void OnNativeWidgetActivationChanged(bool active) override; | 787 void OnNativeWidgetActivationChanged(bool active) override; |
| 787 void OnNativeFocus() override; | 788 void OnNativeFocus() override; |
| 788 void OnNativeBlur() override; | 789 void OnNativeBlur() override; |
| 789 void OnNativeWidgetVisibilityChanging(bool visible) override; | 790 void OnNativeWidgetVisibilityChanging(bool visible) override; |
| 790 void OnNativeWidgetVisibilityChanged(bool visible) override; | 791 void OnNativeWidgetVisibilityChanged(bool visible) override; |
| 791 void OnNativeWidgetCreated(bool desktop_widget) override; | 792 void OnNativeWidgetCreated(bool desktop_widget) override; |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 970 bool movement_disabled_; | 971 bool movement_disabled_; |
| 971 | 972 |
| 972 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 973 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
| 973 | 974 |
| 974 DISALLOW_COPY_AND_ASSIGN(Widget); | 975 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 975 }; | 976 }; |
| 976 | 977 |
| 977 } // namespace views | 978 } // namespace views |
| 978 | 979 |
| 979 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 980 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |