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

Side by Side Diff: ios/chrome/browser/ui/popup_menu/popup_menu_controller.h

Issue 2965963002: [ios] Remove IDC_STOP and IDC_RELOAD
Patch Set: Rebased. Created 3 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
OLDNEW
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_CONTROLLER_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_POPUP_MENU_POPUP_MENU_CONTROLLER_H_
6 #define IOS_CHROME_BROWSER_UI_POPUP_MENU_POPUP_MENU_CONTROLLER_H_ 6 #define IOS_CHROME_BROWSER_UI_POPUP_MENU_POPUP_MENU_CONTROLLER_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 @protocol BrowserCommands;
10 @class PopupMenuController; 11 @class PopupMenuController;
11 @class PopupMenuView; 12 @class PopupMenuView;
12 13
13 // A protocol required by delegates of the PopupMenuController. 14 // A protocol required by delegates of the PopupMenuController.
14 @protocol PopupMenuDelegate 15 @protocol PopupMenuDelegate
15 // Instructs the delegate the PopupMenuController is done and should be 16 // Instructs the delegate the PopupMenuController is done and should be
16 // dismissed. 17 // dismissed.
17 - (void)dismissPopupMenu:(PopupMenuController*)controller; 18 - (void)dismissPopupMenu:(PopupMenuController*)controller;
18 @end 19 @end
19 20
20 // The base view controller for popup menus within the top toolbar like the 21 // The base view controller for popup menus within the top toolbar like the
21 // Tools menu. 22 // Tools menu.
22 @interface PopupMenuController : NSObject 23 @interface PopupMenuController : NSObject
23 24
24 // View that contains all subviews. Subclasses should add their views to 25 // View that contains all subviews. Subclasses should add their views to
25 // |containerView_|. 26 // |containerView_|.
26 @property(nonatomic, readonly, strong) UIView* containerView; 27 @property(nonatomic, readonly, strong) UIView* containerView;
27 // Displays the background and border of the popup. 28 // Displays the background and border of the popup.
28 @property(nonatomic, readonly, strong) PopupMenuView* popupContainer; 29 @property(nonatomic, readonly, strong) PopupMenuView* popupContainer;
29 // Button used to dismiss the popup. Covers the entire window behind the popup 30 // Button used to dismiss the popup. Covers the entire window behind the popup
30 // menu. Catches any touch events outside of the popup and invokes 31 // menu. Catches any touch events outside of the popup and invokes
31 // |-tappedBehindPopup:| if there are any. 32 // |-tappedBehindPopup:| if there are any.
32 @property(nonatomic, readonly, strong) UIButton* backgroundButton; 33 @property(nonatomic, readonly, strong) UIButton* backgroundButton;
33 // Delegate for the popup menu. 34 // Delegate for the popup menu.
34 @property(nonatomic, weak) id<PopupMenuDelegate> delegate; 35 @property(nonatomic, weak) id<PopupMenuDelegate> delegate;
36 // Dispatcher for browser commands.
37 @property(nonatomic, weak) id<BrowserCommands> dispatcher;
35 38
36 // Initializes the PopupMenuController and adds its views inside of parent. 39 // Initializes the PopupMenuController and adds its views inside of parent.
37 - (id)initWithParentView:(UIView*)parent; 40 - (id)initWithParentView:(UIView*)parent;
38 41
39 // The designated initializer. 42 // The designated initializer.
40 // Initializes the PopupMenuController and adds its views inside of parent. 43 // Initializes the PopupMenuController and adds its views inside of parent.
41 // Additional backgroundButton params are used to change the look and behavior 44 // Additional backgroundButton params are used to change the look and behavior
42 // of |backgroundButton_|. 45 // of |backgroundButton_|.
43 // backgroundButtonParent is the view to add |backgroundButton_| to. If nil, 46 // backgroundButtonParent is the view to add |backgroundButton_| to. If nil,
44 // |backgroundButton_| is added to |containerView_|. 47 // |backgroundButton_| is added to |containerView_|.
(...skipping 23 matching lines...) Expand all
68 toDestination:(CGPoint)destination; 71 toDestination:(CGPoint)destination;
69 - (void)dismissAnimatedWithCompletion:(void (^)(void))completion; 72 - (void)dismissAnimatedWithCompletion:(void (^)(void))completion;
70 73
71 // Called to display the popup with a fade in animation. |completionBlock| is 74 // Called to display the popup with a fade in animation. |completionBlock| is
72 // executed once the fade animation is complete. 75 // executed once the fade animation is complete.
73 - (void)fadeInPopup:(void (^)(BOOL finished))completionBlock; 76 - (void)fadeInPopup:(void (^)(BOOL finished))completionBlock;
74 77
75 @end 78 @end
76 79
77 #endif // IOS_CHROME_BROWSER_UI_POPUP_MENU_POPUP_MENU_CONTROLLER_H_ 80 #endif // IOS_CHROME_BROWSER_UI_POPUP_MENU_POPUP_MENU_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/omnibox/page_info_view_controller.mm ('k') | ios/chrome/browser/ui/popup_menu/popup_menu_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698