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

Side by Side Diff: ios/chrome/browser/ui/browser_view_controller_dependency_factory.h

Issue 2798903003: [ObjC ARC] Converts ios/chrome/browser/ui:ui_internal to ARC. (Closed)
Patch Set: missing weaks from another patch Created 3 years, 8 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 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_BROWSER_VIEW_CONTROLLER_DEPENDENCY_FACTORY_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_BROWSER_VIEW_CONTROLLER_DEPENDENCY_FACTORY_H_
6 #define IOS_CHROME_BROWSER_UI_BROWSER_VIEW_CONTROLLER_DEPENDENCY_FACTORY_H_ 6 #define IOS_CHROME_BROWSER_UI_BROWSER_VIEW_CONTROLLER_DEPENDENCY_FACTORY_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #include "ios/chrome/browser/ui/tabs/tab_strip_controller.h" 10 #include "ios/chrome/browser/ui/tabs/tab_strip_controller.h"
(...skipping 19 matching lines...) Expand all
30 30
31 namespace ios { 31 namespace ios {
32 class ChromeBrowserState; 32 class ChromeBrowserState;
33 } 33 }
34 34
35 // The category for all messages presented by the 35 // The category for all messages presented by the
36 // BrowserViewControllerDependencyFactory via |showSnackbarWithMessage:|. 36 // BrowserViewControllerDependencyFactory via |showSnackbarWithMessage:|.
37 extern NSString* const kBrowserViewControllerSnackbarCategory; 37 extern NSString* const kBrowserViewControllerSnackbarCategory;
38 38
39 // Creates helper objects needed by BrowserViewController. 39 // Creates helper objects needed by BrowserViewController.
40 @interface BrowserViewControllerDependencyFactory : NSObject { 40 @interface BrowserViewControllerDependencyFactory : NSObject
41 @private
42 ios::ChromeBrowserState* browserState_;
43 }
44 41
45 // Creates a new factory backed by |browserState|. This must be the same browser 42 // Creates a new factory backed by |browserState|. This must be the same browser
46 // state provided to BrowserViewController (and like BVC, this is a weak 43 // state provided to BrowserViewController (and like BVC, this is a weak
47 // reference). 44 // reference).
48 - (id)initWithBrowserState:(ios::ChromeBrowserState*)browserState; 45 - (id)initWithBrowserState:(ios::ChromeBrowserState*)browserState;
49 46
50 // Returns the ShareProtocol shared instance. 47 // Returns the ShareProtocol shared instance.
51 - (id<ShareProtocol>)shareControllerInstance; 48 - (id<ShareProtocol>)shareControllerInstance;
52 49
53 // Creates a new PassKit view controller to display |pass|. 50 // Creates a new PassKit view controller to display |pass|.
(...skipping 22 matching lines...) Expand all
76 - (void)showSnackbarWithMessage:(NSString*)message; 73 - (void)showSnackbarWithMessage:(NSString*)message;
77 74
78 - (AlertCoordinator*)alertCoordinatorWithTitle:(NSString*)title 75 - (AlertCoordinator*)alertCoordinatorWithTitle:(NSString*)title
79 message:(NSString*)message 76 message:(NSString*)message
80 viewController: 77 viewController:
81 (UIViewController*)viewController; 78 (UIViewController*)viewController;
82 79
83 @end 80 @end
84 81
85 #endif // IOS_CHROME_BROWSER_UI_BROWSER_VIEW_CONTROLLER_DEPENDENCY_FACTORY_H_ 82 #endif // IOS_CHROME_BROWSER_UI_BROWSER_VIEW_CONTROLLER_DEPENDENCY_FACTORY_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/browser_view_controller.mm ('k') | ios/chrome/browser/ui/browser_view_controller_dependency_factory.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698