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

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

Issue 2580363002: Upstream Chrome on iOS source code [1/11]. (Closed)
Patch Set: Created 3 years, 12 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
(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_
OLDNEW
« no previous file with comments | « ios/chrome/app/safe_mode/safe_mode_egtest.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