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

Side by Side Diff: ui/views/controls/menu/menu_host.h

Issue 2876203003: Make shelf item can be dragged when context menu is opened.
Patch Set: Fixed comments. Created 3 years, 7 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_CONTROLS_MENU_MENU_HOST_H_ 5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_HOST_H_
6 #define UI_VIEWS_CONTROLS_MENU_MENU_HOST_H_ 6 #define UI_VIEWS_CONTROLS_MENU_MENU_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 friend class test::MenuControllerTest; 71 friend class test::MenuControllerTest;
72 72
73 // Overridden from Widget: 73 // Overridden from Widget:
74 internal::RootView* CreateRootView() override; 74 internal::RootView* CreateRootView() override;
75 void OnMouseCaptureLost() override; 75 void OnMouseCaptureLost() override;
76 void OnNativeWidgetDestroyed() override; 76 void OnNativeWidgetDestroyed() override;
77 void OnOwnerClosing() override; 77 void OnOwnerClosing() override;
78 void OnDragWillStart() override; 78 void OnDragWillStart() override;
79 void OnDragComplete() override; 79 void OnDragComplete() override;
80 80
81 #if !defined(OS_MACOSX)
msw 2017/05/17 23:03:30 ditto question. If you keep all these blocks, comm
minch1 2017/05/26 23:01:14 Done.
82 // Parent of the MenuHost widget.
83 Widget* owner_ = nullptr;
84 #endif
85
81 // The view we contain. 86 // The view we contain.
82 SubmenuView* submenu_; 87 SubmenuView* submenu_;
83 88
84 // If true, DestroyMenuHost has been invoked. 89 // If true, DestroyMenuHost has been invoked.
85 bool destroying_; 90 bool destroying_;
86 91
87 // If true and capture is lost we don't notify the delegate. 92 // If true and capture is lost we don't notify the delegate.
88 bool ignore_capture_lost_; 93 bool ignore_capture_lost_;
89 94
90 #if !defined(OS_MACOSX) 95 #if !defined(OS_MACOSX)
91 // Handles raw touch events at the moment. 96 // Handles raw touch events at the moment.
92 std::unique_ptr<internal::PreMenuEventDispatchHandler> pre_dispatch_handler_; 97 std::unique_ptr<internal::PreMenuEventDispatchHandler> pre_dispatch_handler_;
93 #endif 98 #endif
94 99
95 DISALLOW_COPY_AND_ASSIGN(MenuHost); 100 DISALLOW_COPY_AND_ASSIGN(MenuHost);
96 }; 101 };
97 102
98 } // namespace views 103 } // namespace views
99 104
100 #endif // UI_VIEWS_CONTROLS_MENU_MENU_HOST_H_ 105 #endif // UI_VIEWS_CONTROLS_MENU_MENU_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698