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 <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 #include <stack> | 10 #include <stack> |
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 ui::EventProcessor* GetEventProcessor() override; | 817 ui::EventProcessor* GetEventProcessor() override; |
818 | 818 |
819 // Overridden from FocusTraversable: | 819 // Overridden from FocusTraversable: |
820 FocusSearch* GetFocusSearch() override; | 820 FocusSearch* GetFocusSearch() override; |
821 FocusTraversable* GetFocusTraversableParent() override; | 821 FocusTraversable* GetFocusTraversableParent() override; |
822 View* GetFocusTraversableParentView() override; | 822 View* GetFocusTraversableParentView() override; |
823 | 823 |
824 // Overridden from ui::NativeThemeObserver: | 824 // Overridden from ui::NativeThemeObserver: |
825 void OnNativeThemeUpdated(ui::NativeTheme* observed_theme) override; | 825 void OnNativeThemeUpdated(ui::NativeTheme* observed_theme) override; |
826 | 826 |
| 827 // Notification that the drag performed by RunShellDrag() has completed. |
| 828 void DraggingEnded(View* view); |
| 829 |
827 protected: | 830 protected: |
828 // Creates the RootView to be used within this Widget. Subclasses may override | 831 // Creates the RootView to be used within this Widget. Subclasses may override |
829 // to create custom RootViews that do specialized event processing. | 832 // to create custom RootViews that do specialized event processing. |
830 // TODO(beng): Investigate whether or not this is needed. | 833 // TODO(beng): Investigate whether or not this is needed. |
831 virtual internal::RootView* CreateRootView(); | 834 virtual internal::RootView* CreateRootView(); |
832 | 835 |
833 // Provided to allow the NativeWidget implementations to destroy the RootView | 836 // Provided to allow the NativeWidget implementations to destroy the RootView |
834 // _before_ the focus manager/tooltip manager. | 837 // _before_ the focus manager/tooltip manager. |
835 // TODO(beng): remove once we fold those objects onto this one. | 838 // TODO(beng): remove once we fold those objects onto this one. |
836 void DestroyRootView(); | 839 void DestroyRootView(); |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
968 bool movement_disabled_; | 971 bool movement_disabled_; |
969 | 972 |
970 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 973 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
971 | 974 |
972 DISALLOW_COPY_AND_ASSIGN(Widget); | 975 DISALLOW_COPY_AND_ASSIGN(Widget); |
973 }; | 976 }; |
974 | 977 |
975 } // namespace views | 978 } // namespace views |
976 | 979 |
977 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 980 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |