Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Side by Side Diff: ui/views/widget/widget.h

Issue 378333003: Allow menus to stay open during a child view's drag and drop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 the drag performed by RunShellDrag() has completed.
797 // Default implementation does nothing.
798 virtual void OnDragComplete();
sky 2014/07/11 17:45:34 You should move the code in MenuController::StartD
Devlin 2014/07/11 18:43:51 Done (though not much of the code in StartDrag() i
sky 2014/07/11 19:15:20 I wanted to make sure the state (which you're righ
Devlin 2014/07/11 20:28:15 Yep, makes a lot of sense. :) Just wanted to make
799
796 private: 800 private:
797 friend class ComboboxTest; 801 friend class ComboboxTest;
798 friend class TextfieldTest; 802 friend class TextfieldTest;
799 803
800 // Sets the value of |disable_inactive_rendering_|. If the value changes, 804 // Sets the value of |disable_inactive_rendering_|. If the value changes,
801 // both the NonClientView and WidgetDelegate are notified. 805 // both the NonClientView and WidgetDelegate are notified.
802 void SetInactiveRenderingDisabled(bool value); 806 void SetInactiveRenderingDisabled(bool value);
803 807
804 // Persists the window's restored position and "show" state using the 808 // Persists the window's restored position and "show" state using the
805 // window delegate. 809 // window delegate.
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 bool movement_disabled_; 932 bool movement_disabled_;
929 933
930 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 934 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
931 935
932 DISALLOW_COPY_AND_ASSIGN(Widget); 936 DISALLOW_COPY_AND_ASSIGN(Widget);
933 }; 937 };
934 938
935 } // namespace views 939 } // namespace views
936 940
937 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 941 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698