OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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_BOOKMARKS_BOOKMARK_CONTROLLER_FACTORY_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_CONTROLLER_FACTORY_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 @class BookmarkHomeViewController; |
| 11 @protocol NewTabPagePanelProtocol; |
| 12 @protocol UrlLoader; |
| 13 |
| 14 namespace ios { |
| 15 class ChromeBrowserState; |
| 16 } // namespace ios |
| 17 |
| 18 // This factory is responsible for providing an instance of a bookmark |
| 19 // controller that can browse and edit the bookmark hierarchy. |
| 20 @interface BookmarkControllerFactory : NSObject |
| 21 |
| 22 - (BookmarkHomeViewController*) |
| 23 bookmarkControllerWithBrowserState:(ios::ChromeBrowserState*)browserState |
| 24 loader:(id<UrlLoader>)loader; |
| 25 |
| 26 // Returns an instance of a NewTabPagePanelProtocol that can navigate and edit |
| 27 // the bookmark hierarchy. |
| 28 - (id<NewTabPagePanelProtocol>) |
| 29 bookmarkPanelControllerForBrowserState:(ios::ChromeBrowserState*)browserState |
| 30 loader:(id<UrlLoader>)loader |
| 31 colorCache:(NSMutableDictionary*)cache; |
| 32 |
| 33 @end |
| 34 |
| 35 #endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_CONTROLLER_FACTORY_H_ |
OLD | NEW |