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

Unified Diff: ios/chrome/browser/ui/first_run/welcome_to_chrome_view.h

Issue 2590473002: Upstream Chrome on iOS source code [5/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
Index: ios/chrome/browser/ui/first_run/welcome_to_chrome_view.h
diff --git a/ios/chrome/browser/ui/first_run/welcome_to_chrome_view.h b/ios/chrome/browser/ui/first_run/welcome_to_chrome_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..9fcbd6cee44f90984bd163f6fe2a9539bf470049
--- /dev/null
+++ b/ios/chrome/browser/ui/first_run/welcome_to_chrome_view.h
@@ -0,0 +1,38 @@
+// Copyright 2015 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_BROWSER_UI_FIRST_RUN_WELCOME_TO_CHROME_VIEW_H_
+#define IOS_CHROME_BROWSER_UI_FIRST_RUN_WELCOME_TO_CHROME_VIEW_H_
+
+#import <UIKit/UIKit.h>
+
+@class WelcomeToChromeView;
+
+// Delegate for WelcomeToChromeViews.
+@protocol WelcomeToChromeViewDelegate<NSObject>
+
+// Called when the user taps on the "Terms of Service" link.
+- (void)welcomeToChromeViewDidTapTOSLink:(WelcomeToChromeView*)view;
+
+// Called when the user taps the "Accept & Continue" button.
+- (void)welcomeToChromeViewDidTapOKButton:(WelcomeToChromeView*)view;
+
+@end
+
+// The first view shown to the user after fresh installs.
+@interface WelcomeToChromeView : UIView
+
+@property(nonatomic, assign) id<WelcomeToChromeViewDelegate> delegate;
+
+// Whether the stats reporting check box is selected.
+@property(nonatomic, assign, getter=isCheckBoxSelected) BOOL checkBoxSelected;
+
+// Runs the transition animation from Launch Screen to the Welcome to Chrome
+// View. This method must be called after the view is added to a superview and
+// the view's subviews have been laid out.
+- (void)runLaunchAnimation;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_UI_FIRST_RUN_WELCOME_TO_CHROME_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698