| 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 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 833 void DestroyRootView(); | 833 void DestroyRootView(); |
| 834 | 834 |
| 835 // Notification that a drag will start. Default implementation does nothing. | 835 // Notification that a drag will start. Default implementation does nothing. |
| 836 virtual void OnDragWillStart(); | 836 virtual void OnDragWillStart(); |
| 837 | 837 |
| 838 // Notification that the drag performed by RunShellDrag() has completed. | 838 // Notification that the drag performed by RunShellDrag() has completed. |
| 839 virtual void OnDragComplete(); | 839 virtual void OnDragComplete(); |
| 840 | 840 |
| 841 private: | 841 private: |
| 842 friend class ComboboxTest; | 842 friend class ComboboxTest; |
| 843 friend class CustomButtonTest; |
| 843 friend class TextfieldTest; | 844 friend class TextfieldTest; |
| 844 | 845 |
| 845 // Sets the value of |disable_inactive_rendering_|. If the value changes, | 846 // Sets the value of |disable_inactive_rendering_|. If the value changes, |
| 846 // both the NonClientView and WidgetDelegate are notified. | 847 // both the NonClientView and WidgetDelegate are notified. |
| 847 void SetInactiveRenderingDisabled(bool value); | 848 void SetInactiveRenderingDisabled(bool value); |
| 848 | 849 |
| 849 // Persists the window's restored position and "show" state using the | 850 // Persists the window's restored position and "show" state using the |
| 850 // window delegate. | 851 // window delegate. |
| 851 void SaveWindowPlacement(); | 852 void SaveWindowPlacement(); |
| 852 | 853 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 968 bool movement_disabled_; | 969 bool movement_disabled_; |
| 969 | 970 |
| 970 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 971 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
| 971 | 972 |
| 972 DISALLOW_COPY_AND_ASSIGN(Widget); | 973 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 973 }; | 974 }; |
| 974 | 975 |
| 975 } // namespace views | 976 } // namespace views |
| 976 | 977 |
| 977 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 978 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |