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

Unified Diff: remoting/ios/app/session_error_view.h

Issue 2971903002: Adding error handling to the connection flow. (Closed)
Patch Set: Minor cleanup before review. Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: remoting/ios/app/session_error_view.h
diff --git a/remoting/ios/app/session_error_view.h b/remoting/ios/app/session_error_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..caa50bebf674bb758d9a7cd76063fe306d8d5b4d
--- /dev/null
+++ b/remoting/ios/app/session_error_view.h
@@ -0,0 +1,27 @@
+// Copyright 2017 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 REMOTING_IOS_SESSON_ERROR_VIEW_H_
+#define REMOTING_IOS_SESSON_ERROR_VIEW_H_
+
+#import <UIKit/UIKit.h>
+
+@protocol SessionErrorViewDelegate<NSObject>
Yuwei 2017/07/05 21:43:42 The name seems a bit confusing if what it does is
nicholss 2017/07/06 20:49:02 I think I will rename it to SessonReconnectView an
+
+// Notifies the delegate that the user tapped the reconnect button.
+@optional
+- (void)didTapReconnect;
+
+@end
+
+// This view is the container for a session connection error. It will display a
+// reconnect button.
+@interface SessionErrorView : UIView
+
+// This delegate will handle interactions on the view.
+@property(weak, nonatomic) id<SessionErrorViewDelegate> delegate;
+
+@end
+
+#endif // REMOTING_IOS_SESSON_ERROR_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698