| // 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_PUBLIC_POPUP_MENU_TABLE_VIEW_CONTROLLER_DELEGATE_H_ |
| #define IOS_CHROME_BROWSER_UI_POPUP_MENU_PUBLIC_POPUP_MENU_TABLE_VIEW_CONTROLLER_DELEGATE_H_ |
| |
| #import <Foundation/Foundation.h> |
| |
| @protocol PopupMenuItem; |
| @class PopupMenuTableViewController; |
| @class TableViewItem; |
| |
| // Delegate protocol for PopupMenuTableViewController. |
| @protocol PopupMenuTableViewControllerDelegate |
| |
| // Informs the delegate that |item| was selected with |origin| as the point of |
| // origin of the action. |
| - (void)popupMenuTableViewController:(PopupMenuTableViewController*)sender |
| didSelectItem:(TableViewItem<PopupMenuItem>*)item |
| origin:(CGPoint)origin; |
| |
| @end |
| |
| #endif // IOS_CHROME_BROWSER_UI_POPUP_MENU_PUBLIC_POPUP_MENU_TABLE_VIEW_CONTROLLER_DELEGATE_H_ |