OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_APP_SAFE_MODE_SAFE_MODE_VIEW_CONTROLLER_H_ |
| 6 #define IOS_CHROME_APP_SAFE_MODE_SAFE_MODE_VIEW_CONTROLLER_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 #import "base/ios/weak_nsobject.h" |
| 11 #include "base/mac/scoped_nsobject.h" |
| 12 |
| 13 @class PrimaryActionButton; |
| 14 |
| 15 // A protocol required by delegates of the SafeModeViewController. |
| 16 @protocol SafeModeViewControllerDelegate |
| 17 @required |
| 18 // Tell delegate to attempt to start the browser. |
| 19 - (void)startBrowserFromSafeMode; |
| 20 @end |
| 21 |
| 22 @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 |
| 33 - (id)initWithDelegate:(id<SafeModeViewControllerDelegate>)delegate; |
| 34 |
| 35 // Returns |YES| when the safe mode UI has information to show. |
| 36 + (BOOL)hasSuggestions; |
| 37 |
| 38 @end |
| 39 |
| 40 #endif // IOS_CHROME_APP_SAFE_MODE_SAFE_MODE_VIEW_CONTROLLER_H_ |
OLD | NEW |