| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 IOS_CHROME_BROWSER_UI_POPUP_MENU_POPUP_MENU_VIEW_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_POPUP_MENU_POPUP_MENU_VIEW_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_POPUP_MENU_POPUP_MENU_VIEW_H_ | 6 #define IOS_CHROME_BROWSER_UI_POPUP_MENU_POPUP_MENU_VIEW_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 // A protocol required by delegates of the PopupMenuController. | 10 // A protocol required by delegates of the PopupMenuController. |
| 11 @protocol PopupMenuViewDelegate | 11 @protocol PopupMenuViewDelegate |
| 12 // Instructs the delegate the popup menu view is done and should be | 12 // Instructs the delegate the popup menu view is done and should be |
| 13 // dismissed. | 13 // dismissed. |
| 14 - (void)dismissPopupMenu; | 14 - (void)dismissPopupMenu; |
| 15 @end | 15 @end |
| 16 | 16 |
| 17 @interface PopupMenuView : UIView | 17 @interface PopupMenuView : UIView |
| 18 @property(nonatomic, assign) id<PopupMenuViewDelegate> delegate; | 18 @property(nonatomic, weak) id<PopupMenuViewDelegate> delegate; |
| 19 @end | 19 @end |
| 20 | 20 |
| 21 #endif // IOS_CHROME_BROWSER_UI_POPUP_MENU_POPUP_MENU_VIEW_H_ | 21 #endif // IOS_CHROME_BROWSER_UI_POPUP_MENU_POPUP_MENU_VIEW_H_ |
| OLD | NEW |