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 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 // Creates the RootView to be used within this Widget. Subclasses may override | 786 // Creates the RootView to be used within this Widget. Subclasses may override |
787 // to create custom RootViews that do specialized event processing. | 787 // to create custom RootViews that do specialized event processing. |
788 // TODO(beng): Investigate whether or not this is needed. | 788 // TODO(beng): Investigate whether or not this is needed. |
789 virtual internal::RootView* CreateRootView(); | 789 virtual internal::RootView* CreateRootView(); |
790 | 790 |
791 // Provided to allow the NativeWidget implementations to destroy the RootView | 791 // Provided to allow the NativeWidget implementations to destroy the RootView |
792 // _before_ the focus manager/tooltip manager. | 792 // _before_ the focus manager/tooltip manager. |
793 // TODO(beng): remove once we fold those objects onto this one. | 793 // TODO(beng): remove once we fold those objects onto this one. |
794 void DestroyRootView(); | 794 void DestroyRootView(); |
795 | 795 |
| 796 // Notification that a drag will start. Default implementation does nothing. |
| 797 virtual void OnDragWillStart(); |
| 798 |
| 799 // Notification that the drag performed by RunShellDrag() has completed. |
| 800 virtual void OnDragComplete(); |
| 801 |
796 private: | 802 private: |
797 friend class ComboboxTest; | 803 friend class ComboboxTest; |
798 friend class TextfieldTest; | 804 friend class TextfieldTest; |
799 | 805 |
800 // Sets the value of |disable_inactive_rendering_|. If the value changes, | 806 // Sets the value of |disable_inactive_rendering_|. If the value changes, |
801 // both the NonClientView and WidgetDelegate are notified. | 807 // both the NonClientView and WidgetDelegate are notified. |
802 void SetInactiveRenderingDisabled(bool value); | 808 void SetInactiveRenderingDisabled(bool value); |
803 | 809 |
804 // Persists the window's restored position and "show" state using the | 810 // Persists the window's restored position and "show" state using the |
805 // window delegate. | 811 // window delegate. |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
928 bool movement_disabled_; | 934 bool movement_disabled_; |
929 | 935 |
930 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 936 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
931 | 937 |
932 DISALLOW_COPY_AND_ASSIGN(Widget); | 938 DISALLOW_COPY_AND_ASSIGN(Widget); |
933 }; | 939 }; |
934 | 940 |
935 } // namespace views | 941 } // namespace views |
936 | 942 |
937 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 943 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |