OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_PANEL_VIEW_CONTROLLER_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_PANEL_VIEW_CONTROLLER_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 namespace ios { |
| 11 class ChromeBrowserState; |
| 12 } |
| 13 |
| 14 @protocol UrlLoader; |
| 15 |
| 16 // View controller for displaying the history panel. |
| 17 @interface HistoryPanelViewController : UIViewController |
| 18 |
| 19 - (instancetype)initWithLoader:(id<UrlLoader>)loader |
| 20 browserState:(ios::ChromeBrowserState*)browserState |
| 21 NS_DESIGNATED_INITIALIZER; |
| 22 - (instancetype)initWithNibName:(NSString*)nibNameOrNil |
| 23 bundle:(NSBundle*)nibBundleOrNil NS_UNAVAILABLE; |
| 24 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; |
| 25 |
| 26 // Returns view controller that presents the history panel. |
| 27 + (UIViewController*)controllerToPresentForBrowserState: |
| 28 (ios::ChromeBrowserState*)browserState |
| 29 loader:(id<UrlLoader>)loader; |
| 30 @end |
| 31 #endif // IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_PANEL_VIEW_CONTROLLER_H_ |
OLD | NEW |