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

Unified Diff: ui/views/controls/menu/menu_host.h

Issue 2876203003: Make shelf item can be dragged when context menu is opened.
Patch Set: Fixed msw's comments. Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/menu/menu_host.h
diff --git a/ui/views/controls/menu/menu_host.h b/ui/views/controls/menu/menu_host.h
index 484b90889320a3c7c05724aacfbab234382db741..01fe990d832e18c23b21d44155388cdf14562879 100644
--- a/ui/views/controls/menu/menu_host.h
+++ b/ui/views/controls/menu/menu_host.h
@@ -78,6 +78,9 @@ class MenuHost : public Widget {
void OnDragWillStart() override;
void OnDragComplete() override;
+ // Parent of the MenuHost widget.
+ Widget* owner_ = nullptr;
+
// The view we contain.
SubmenuView* submenu_;

Powered by Google App Engine
This is Rietveld 408576698