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

Unified 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 4 years 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/app/safe_mode/safe_mode_view_controller.h
diff --git a/ios/chrome/app/safe_mode/safe_mode_view_controller.h b/ios/chrome/app/safe_mode/safe_mode_view_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..38078aa29c298460fd3b3cd1559fd9a3a09c41e4
--- /dev/null
+++ b/ios/chrome/app/safe_mode/safe_mode_view_controller.h
@@ -0,0 +1,40 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_APP_SAFE_MODE_SAFE_MODE_VIEW_CONTROLLER_H_
+#define IOS_CHROME_APP_SAFE_MODE_SAFE_MODE_VIEW_CONTROLLER_H_
+
+#import <UIKit/UIKit.h>
+
+#import "base/ios/weak_nsobject.h"
+#include "base/mac/scoped_nsobject.h"
+
+@class PrimaryActionButton;
+
+// A protocol required by delegates of the SafeModeViewController.
+@protocol SafeModeViewControllerDelegate
+@required
+// Tell delegate to attempt to start the browser.
+- (void)startBrowserFromSafeMode;
+@end
+
+@interface SafeModeViewController : UIViewController {
+ @private
+ base::WeakNSProtocol<id<SafeModeViewControllerDelegate>> delegate_;
+ base::scoped_nsobject<UIView> innerView_;
+ base::scoped_nsobject<PrimaryActionButton> startButton_;
+ base::scoped_nsobject<UILabel> uploadDescription_;
+ base::scoped_nsobject<UIProgressView> uploadProgress_;
+ base::scoped_nsobject<NSDate> uploadStartTime_;
+ base::scoped_nsobject<NSTimer> uploadTimer_;
+}
+
+- (id)initWithDelegate:(id<SafeModeViewControllerDelegate>)delegate;
+
+// Returns |YES| when the safe mode UI has information to show.
++ (BOOL)hasSuggestions;
+
+@end
+
+#endif // IOS_CHROME_APP_SAFE_MODE_SAFE_MODE_VIEW_CONTROLLER_H_
« 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