| OLD | NEW |
| 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_ |
| OLD | NEW |