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_HISTORY_TAB_HISTORY_POPUP_CONTROLLER_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_HISTORY_TAB_HISTORY_POPUP_CONTROLLER_H_ |
6 #define IOS_CHROME_BROWSER_UI_HISTORY_TAB_HISTORY_POPUP_CONTROLLER_H_ | 6 #define IOS_CHROME_BROWSER_UI_HISTORY_TAB_HISTORY_POPUP_CONTROLLER_H_ |
7 | 7 |
8 #import "ios/chrome/browser/ui/popup_menu/popup_menu_controller.h" | 8 #import "ios/chrome/browser/ui/popup_menu/popup_menu_controller.h" |
9 | 9 |
10 #include "ios/web/public/navigation_item_list.h" | 10 @class TabHistoryViewController; |
11 | 11 |
12 // The view controller for the tab history menu that appears when the user long | 12 // The view controller for the tab history menu that appears when the user long |
13 // presses the back or forward button. | 13 // presses the back or forward button. |
14 @interface TabHistoryPopupController : PopupMenuController | 14 @interface TabHistoryPopupController : PopupMenuController |
15 | 15 |
16 // Initializes the popup to display |items| with the given |origin| that is | 16 // Initializes the popup to display |entries| with the given |origin| that is |
17 // relevant to the |parent|'s coordinate system. | 17 // relevant to the |parent|'s coordinate system. |
18 // |entries| is an array of CRWSessionEntries. | 18 // |entries| is an array of CRWSessionEntries. |
| 19 // TODO(crbug.com/546355): Convert this class to use an array of |
| 20 // NavigationEntries |
19 - (id)initWithOrigin:(CGPoint)origin | 21 - (id)initWithOrigin:(CGPoint)origin |
20 parentView:(UIView*)parent | 22 parentView:(UIView*)parent |
21 items:(const web::NavigationItemList&)items | 23 entries:(NSArray*)entries; |
22 NS_DESIGNATED_INITIALIZER; | |
23 | 24 |
24 @end | 25 @end |
25 | 26 |
26 #endif // IOS_CHROME_BROWSER_UI_HISTORY_TAB_HISTORY_POPUP_CONTROLLER_H_ | 27 #endif // IOS_CHROME_BROWSER_UI_HISTORY_TAB_HISTORY_POPUP_CONTROLLER_H_ |
OLD | NEW |