blob: eb06d4d2dd2aa2ea152399010cc913df8f2dcd2f [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_UI_POPUP_MENU_POPUP_MENU_ACTION_HANDLER_H_
#define IOS_CHROME_BROWSER_UI_POPUP_MENU_POPUP_MENU_ACTION_HANDLER_H_
#import <UIKit/UIKit.h>
#import "ios/chrome/browser/ui/popup_menu/public/popup_menu_table_view_controller_delegate.h"
@protocol ApplicationCommands;
@protocol BrowserCommands;
@protocol LoadQueryCommands;
@protocol PopupMenuActionHandlerCommands;
// Handles user interactions with the popup menu.
@interface PopupMenuActionHandler
: NSObject <PopupMenuTableViewControllerDelegate>
// The view controller that presents |popupMenu|.
@property(nonatomic, weak) UIViewController* baseViewController;
// Command handler.
@property(nonatomic, weak) id<PopupMenuActionHandlerCommands> commandHandler;
// Dispatcher.
@property(nonatomic, weak)
id<ApplicationCommands, BrowserCommands, LoadQueryCommands>
dispatcher;
@end
#endif // IOS_CHROME_BROWSER_UI_POPUP_MENU_POPUP_MENU_ACTION_HANDLER_H_