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 // |view| is the view that was dragged. This may be NULL. | |
sky
2014/07/14 15:19:05
I don't think you should pass in view here, it may
Devlin
2014/07/16 16:00:45
Done.
| |
801 // Default implementation does nothing. | |
802 virtual void OnDragComplete(View* view); | |
803 | |
796 private: | 804 private: |
797 friend class ComboboxTest; | 805 friend class ComboboxTest; |
798 friend class TextfieldTest; | 806 friend class TextfieldTest; |
799 | 807 |
800 // Sets the value of |disable_inactive_rendering_|. If the value changes, | 808 // Sets the value of |disable_inactive_rendering_|. If the value changes, |
801 // both the NonClientView and WidgetDelegate are notified. | 809 // both the NonClientView and WidgetDelegate are notified. |
802 void SetInactiveRenderingDisabled(bool value); | 810 void SetInactiveRenderingDisabled(bool value); |
803 | 811 |
804 // Persists the window's restored position and "show" state using the | 812 // Persists the window's restored position and "show" state using the |
805 // window delegate. | 813 // window delegate. |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
928 bool movement_disabled_; | 936 bool movement_disabled_; |
929 | 937 |
930 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 938 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
931 | 939 |
932 DISALLOW_COPY_AND_ASSIGN(Widget); | 940 DISALLOW_COPY_AND_ASSIGN(Widget); |
933 }; | 941 }; |
934 | 942 |
935 } // namespace views | 943 } // namespace views |
936 | 944 |
937 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 945 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |