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

Side by Side Diff: ui/views/controls/menu/menu_host.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: Test Fix 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
« no previous file with comments | « ui/views/controls/menu/menu_delegate.cc ('k') | ui/views/controls/menu/menu_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
10 #include "ui/views/widget/widget.h" 10 #include "ui/views/widget/widget.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // Releases a mouse grab installed by |ShowMenuHost|. 54 // Releases a mouse grab installed by |ShowMenuHost|.
55 void ReleaseMenuHostCapture(); 55 void ReleaseMenuHostCapture();
56 56
57 private: 57 private:
58 // Overridden from Widget: 58 // Overridden from Widget:
59 virtual internal::RootView* CreateRootView() OVERRIDE; 59 virtual internal::RootView* CreateRootView() OVERRIDE;
60 virtual void OnMouseCaptureLost() OVERRIDE; 60 virtual void OnMouseCaptureLost() OVERRIDE;
61 virtual void OnNativeWidgetDestroyed() OVERRIDE; 61 virtual void OnNativeWidgetDestroyed() OVERRIDE;
62 virtual void OnOwnerClosing() OVERRIDE; 62 virtual void OnOwnerClosing() OVERRIDE;
63 virtual void OnDragWillStart() OVERRIDE;
64 virtual void OnDragComplete() OVERRIDE;
63 65
64 // The view we contain. 66 // The view we contain.
65 SubmenuView* submenu_; 67 SubmenuView* submenu_;
66 68
67 // If true, DestroyMenuHost has been invoked. 69 // If true, DestroyMenuHost has been invoked.
68 bool destroying_; 70 bool destroying_;
69 71
70 // If true and capture is lost we don't notify the delegate. 72 // If true and capture is lost we don't notify the delegate.
71 bool ignore_capture_lost_; 73 bool ignore_capture_lost_;
72 74
73 DISALLOW_COPY_AND_ASSIGN(MenuHost); 75 DISALLOW_COPY_AND_ASSIGN(MenuHost);
74 }; 76 };
75 77
76 } // namespace views 78 } // namespace views
77 79
78 #endif // UI_VIEWS_CONTROLS_MENU_MENU_HOST_H_ 80 #endif // UI_VIEWS_CONTROLS_MENU_MENU_HOST_H_
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_delegate.cc ('k') | ui/views/controls/menu/menu_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698