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

Side by Side Diff: ios/clean/chrome/browser/ui/context_menu/context_menu_view_controller.h

Issue 2862783002: [iOS Clean] Wired up ContextMenuCommands. (Closed)
Patch Set: fix deps Created 3 years, 6 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_CLEAN_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_VIEW_CONTROLLER_H_ 5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_VIEW_CONTROLLER_H_
6 #define IOS_CLEAN_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_VIEW_CONTROLLER_H_ 6 #define IOS_CLEAN_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_VIEW_CONTROLLER_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #import "ios/clean/chrome/browser/ui/context_menu/context_menu_consumer.h" 10 #import "ios/clean/chrome/browser/ui/context_menu/context_menu_consumer.h"
11 11
12 @protocol ContextMenuCommands;
13 @class ContextMenuContext;
14
12 // A view controller that displays a context menu. 15 // A view controller that displays a context menu.
13 @interface ContextMenuViewController : UIAlertController<ContextMenuConsumer> 16 @interface ContextMenuViewController : UIAlertController<ContextMenuConsumer>
14 17
15 // Create an instance of this class with the dispatcher |dispatcher|. 18 // Designated initializer that uses |dispatcher| to communicate commands.
16 // 19 - (instancetype)initWithDispatcher:(id<ContextMenuCommands>)dispatcher;
17 // PLACEHOLDER: Once commands are defined, define a protocol for the dispatcher.
18 - (instancetype)initWithDispatcher:(id)dispatcher;
19 20
20 @end 21 @end
21 22
22 #endif // IOS_CLEAN_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_VIEW_CONTROLLER _H_ 23 #endif // IOS_CLEAN_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_VIEW_CONTROLLER _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698