| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_FIRST_RUN_WELCOME_TO_CHROME_VIEW_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_FIRST_RUN_WELCOME_TO_CHROME_VIEW_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_FIRST_RUN_WELCOME_TO_CHROME_VIEW_H_ | 6 #define IOS_CHROME_BROWSER_UI_FIRST_RUN_WELCOME_TO_CHROME_VIEW_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 @class WelcomeToChromeView; | 10 @class WelcomeToChromeView; |
| 11 | 11 |
| 12 // Delegate for WelcomeToChromeViews. | 12 // Delegate for WelcomeToChromeViews. |
| 13 @protocol WelcomeToChromeViewDelegate<NSObject> | 13 @protocol WelcomeToChromeViewDelegate<NSObject> |
| 14 | 14 |
| 15 // Called when the user taps on the "Terms of Service" link. | 15 // Called when the user taps on the "Terms of Service" link. |
| 16 - (void)welcomeToChromeViewDidTapTOSLink:(WelcomeToChromeView*)view; | 16 - (void)welcomeToChromeViewDidTapTOSLink:(WelcomeToChromeView*)view; |
| 17 | 17 |
| 18 // Called when the user taps the "Accept & Continue" button. | 18 // Called when the user taps the "Accept & Continue" button. |
| 19 - (void)welcomeToChromeViewDidTapOKButton:(WelcomeToChromeView*)view; | 19 - (void)welcomeToChromeViewDidTapOKButton:(WelcomeToChromeView*)view; |
| 20 | 20 |
| 21 @end | 21 @end |
| 22 | 22 |
| 23 // The first view shown to the user after fresh installs. | 23 // The first view shown to the user after fresh installs. |
| 24 @interface WelcomeToChromeView : UIView | 24 @interface WelcomeToChromeView : UIView |
| 25 | 25 |
| 26 @property(nonatomic, assign) id<WelcomeToChromeViewDelegate> delegate; | 26 @property(nonatomic, weak) id<WelcomeToChromeViewDelegate> delegate; |
| 27 | 27 |
| 28 // Whether the stats reporting check box is selected. | 28 // Whether the stats reporting check box is selected. |
| 29 @property(nonatomic, assign, getter=isCheckBoxSelected) BOOL checkBoxSelected; | 29 @property(nonatomic, assign, getter=isCheckBoxSelected) BOOL checkBoxSelected; |
| 30 | 30 |
| 31 // Runs the transition animation from Launch Screen to the Welcome to Chrome | 31 // Runs the transition animation from Launch Screen to the Welcome to Chrome |
| 32 // View. This method must be called after the view is added to a superview and | 32 // View. This method must be called after the view is added to a superview and |
| 33 // the view's subviews have been laid out. | 33 // the view's subviews have been laid out. |
| 34 - (void)runLaunchAnimation; | 34 - (void)runLaunchAnimation; |
| 35 | 35 |
| 36 @end | 36 @end |
| 37 | 37 |
| 38 #endif // IOS_CHROME_BROWSER_UI_FIRST_RUN_WELCOME_TO_CHROME_VIEW_H_ | 38 #endif // IOS_CHROME_BROWSER_UI_FIRST_RUN_WELCOME_TO_CHROME_VIEW_H_ |
| OLD | NEW |