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

Side by Side Diff: ios/chrome/app/safe_mode/safe_mode_view_controller.h

Issue 2915043003: [ObjC ARC] Converts ios/chrome/app/safe_mode:safe_mode to ARC. (Closed)
Patch Set: missing_include 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_APP_SAFE_MODE_SAFE_MODE_VIEW_CONTROLLER_H_ 5 #ifndef IOS_CHROME_APP_SAFE_MODE_SAFE_MODE_VIEW_CONTROLLER_H_
6 #define IOS_CHROME_APP_SAFE_MODE_SAFE_MODE_VIEW_CONTROLLER_H_ 6 #define IOS_CHROME_APP_SAFE_MODE_SAFE_MODE_VIEW_CONTROLLER_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #import "base/ios/weak_nsobject.h"
11 #include "base/mac/scoped_nsobject.h"
12
13 @class PrimaryActionButton; 10 @class PrimaryActionButton;
14 11
15 // A protocol required by delegates of the SafeModeViewController. 12 // A protocol required by delegates of the SafeModeViewController.
16 @protocol SafeModeViewControllerDelegate 13 @protocol SafeModeViewControllerDelegate
17 @required 14 @required
18 // Tell delegate to attempt to start the browser. 15 // Tell delegate to attempt to start the browser.
19 - (void)startBrowserFromSafeMode; 16 - (void)startBrowserFromSafeMode;
20 @end 17 @end
21 18
22 @interface SafeModeViewController : UIViewController { 19 @interface SafeModeViewController : UIViewController
23 @private
24 base::WeakNSProtocol<id<SafeModeViewControllerDelegate>> delegate_;
25 base::scoped_nsobject<UIView> innerView_;
26 base::scoped_nsobject<PrimaryActionButton> startButton_;
27 base::scoped_nsobject<UILabel> uploadDescription_;
28 base::scoped_nsobject<UIProgressView> uploadProgress_;
29 base::scoped_nsobject<NSDate> uploadStartTime_;
30 base::scoped_nsobject<NSTimer> uploadTimer_;
31 }
32 20
33 - (id)initWithDelegate:(id<SafeModeViewControllerDelegate>)delegate; 21 - (id)initWithDelegate:(id<SafeModeViewControllerDelegate>)delegate;
34 22
35 // Returns |YES| when the safe mode UI has information to show. 23 // Returns |YES| when the safe mode UI has information to show.
36 + (BOOL)hasSuggestions; 24 + (BOOL)hasSuggestions;
37 25
38 @end 26 @end
39 27
40 #endif // IOS_CHROME_APP_SAFE_MODE_SAFE_MODE_VIEW_CONTROLLER_H_ 28 #endif // IOS_CHROME_APP_SAFE_MODE_SAFE_MODE_VIEW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ios/chrome/app/safe_mode/safe_mode_coordinator.mm ('k') | ios/chrome/app/safe_mode/safe_mode_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698