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