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

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

Issue 2659903002: Change MenuControllerDelegate to provide WeakPtr (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « ui/views/controls/menu/menu_controller.cc ('k') | ui/views/controls/menu/menu_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_controller_delegate.h
diff --git a/ui/views/controls/menu/menu_controller_delegate.h b/ui/views/controls/menu/menu_controller_delegate.h
index 85e92069082e03790361900641c60cd4a44175b6..8ac1c862b6e87e767c6ee33849b13bc82d2e5f36 100644
--- a/ui/views/controls/menu/menu_controller_delegate.h
+++ b/ui/views/controls/menu/menu_controller_delegate.h
@@ -5,6 +5,8 @@
#ifndef UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_DELEGATE_H_
#define UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_DELEGATE_H_
+#include "base/memory/weak_ptr.h"
+
namespace views {
class MenuItemView;
@@ -15,7 +17,8 @@ namespace internal {
// Used by MenuController to notify of interesting events that are intended for
// the class using MenuController. This is implemented by MenuRunnerImpl.
-class MenuControllerDelegate {
+class MenuControllerDelegate
+ : public base::SupportsWeakPtr<MenuControllerDelegate> {
public:
enum NotifyType {
NOTIFY_DELEGATE,
« no previous file with comments | « ui/views/controls/menu/menu_controller.cc ('k') | ui/views/controls/menu/menu_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698