Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: ios/chrome/browser/ui/bookmarks/bookmark_controller_factory.mm

Issue 2929993002: Refactoring bookmark viewcontrollers (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #import "ios/chrome/browser/ui/bookmarks/bookmark_controller_factory.h" 5 #import "ios/chrome/browser/ui/bookmarks/bookmark_controller_factory.h"
6 6
7 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 7 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
8 #import "ios/chrome/browser/ui/bookmarks/bookmark_home_handset_view_controller.h " 8 #import "ios/chrome/browser/ui/bookmarks/bookmark_home_handset_view_controller.h "
9 #import "ios/chrome/browser/ui/bookmarks/bookmark_home_tablet_ntp_controller.h" 9 #import "ios/chrome/browser/ui/bookmarks/bookmark_home_tablet_ntp_controller.h"
10 10
11 #if !defined(__has_feature) || !__has_feature(objc_arc) 11 #if !defined(__has_feature) || !__has_feature(objc_arc)
12 #error "This file requires ARC support." 12 #error "This file requires ARC support."
13 #endif 13 #endif
14 14
15 @implementation BookmarkControllerFactory 15 @implementation BookmarkControllerFactory
16 16
17 - (BookmarkHomeViewController*) 17 - (BookmarkHomeHandsetViewController*)
18 bookmarkControllerWithBrowserState:(ios::ChromeBrowserState*)browserState 18 bookmarkControllerWithBrowserState:(ios::ChromeBrowserState*)browserState
19 loader:(id<UrlLoader>)loader { 19 loader:(id<UrlLoader>)loader {
20 return 20 return
21 [[BookmarkHomeHandsetViewController alloc] initWithLoader:loader 21 [[BookmarkHomeHandsetViewController alloc] initWithLoader:loader
22 browserState:browserState]; 22 browserState:browserState];
23 } 23 }
24 24
25 - (BookmarkHomeTabletNTPController*) 25 - (BookmarkHomeTabletNTPController*)
26 bookmarkPanelControllerForBrowserState:(ios::ChromeBrowserState*)browserState 26 bookmarkPanelControllerForBrowserState:(ios::ChromeBrowserState*)browserState
27 loader:(id<UrlLoader>)loader 27 loader:(id<UrlLoader>)loader
28 colorCache:(NSMutableDictionary*)cache { 28 colorCache:(NSMutableDictionary*)cache {
29 return [[BookmarkHomeTabletNTPController alloc] initWithLoader:loader 29 return [[BookmarkHomeTabletNTPController alloc] initWithLoader:loader
30 browserState:browserState]; 30 browserState:browserState];
31 } 31 }
32 32
33 @end 33 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698