Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SIGNIN_CONSTANTS_H_ | 5 #ifndef IOS_CHROME_BROWSER_SIGNIN_CONSTANTS_H_ |
| 6 #define IOS_CHROME_BROWSER_SIGNIN_CONSTANTS_H_ | 6 #define IOS_CHROME_BROWSER_SIGNIN_CONSTANTS_H_ |
| 7 | 7 |
| 8 #include <Foundation/Foundation.h> | 8 #include <Foundation/Foundation.h> |
| 9 | 9 |
| 10 // Error domain for authentication error. | 10 // Error domain for authentication error. |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 31 // "Other Devices" and from the sync error infobar displayed for pre-SSO | 31 // "Other Devices" and from the sync error infobar displayed for pre-SSO |
| 32 // signed in users. | 32 // signed in users. |
| 33 SIGN_IN_SOURCE_OTHER, | 33 SIGN_IN_SOURCE_OTHER, |
| 34 // Sign in operation was started from first run. | 34 // Sign in operation was started from first run. |
| 35 SIGN_IN_SOURCE_FIRST_RUN, | 35 SIGN_IN_SOURCE_FIRST_RUN, |
| 36 // Sign in operation was started from the SSO recall promo. | 36 // Sign in operation was started from the SSO recall promo. |
| 37 SIGN_IN_SOURCE_SSO_PROMO, | 37 SIGN_IN_SOURCE_SSO_PROMO, |
| 38 // Sign in operation was started from settings. | 38 // Sign in operation was started from settings. |
| 39 SIGN_IN_SOURCE_SETTINGS, | 39 SIGN_IN_SOURCE_SETTINGS, |
| 40 // Sign in operation was started from as a pre-requisite of share operation. | 40 // Sign in operation was started from as a pre-requisite of share operation. |
| 41 SIGN_IN_SOURCE_SHARE, | 41 // Deprecated since M53. |
| 42 SIGN_IN_SOURCE_SHARE_DEPRECATED, | |
|
sdefresne
2016/05/30 14:16:29
We probably need to update Signin.IOSSignInSource
jif-google
2016/05/30 14:29:26
https://critique.corp.google.com/#review/123579885
sdefresne
2016/06/02 17:16:24
As the enum is public should we also upstream the
| |
| 42 // Sign in operation was started from as a pre-requisite of a print operation. | 43 // Sign in operation was started from as a pre-requisite of a print operation. |
| 43 SIGN_IN_SOURCE_PRINT, | 44 SIGN_IN_SOURCE_PRINT, |
| 44 // Sign in operation was started from the re-sign in infobar. | 45 // Sign in operation was started from the re-sign in infobar. |
| 45 SIGN_IN_SOURCE_RESIGN_IN_INFOBAR, | 46 SIGN_IN_SOURCE_RESIGN_IN_INFOBAR, |
| 46 // Sign in operation was started from the Chrome to Device infobar. | 47 // Sign in operation was started from the Chrome to Device infobar. |
| 47 SIGN_IN_SOURCE_CHROME_TO_DEVICE_INFOBAR, | 48 SIGN_IN_SOURCE_CHROME_TO_DEVICE_INFOBAR, |
| 48 // Sign in operation was started from the recent tabs panel. | 49 // Sign in operation was started from the recent tabs panel. |
| 49 SIGN_IN_SOURCE_RECENT_TABS, | 50 SIGN_IN_SOURCE_RECENT_TABS, |
| 50 // Sign in operation was started from the bookmarks promo panel. | 51 // Sign in operation was started from the bookmarks promo panel. |
| 51 SIGN_IN_SOURCE_BOOKMARKS_PROMO, | 52 SIGN_IN_SOURCE_BOOKMARKS_PROMO, |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 72 | 73 |
| 73 namespace signin_ui { | 74 namespace signin_ui { |
| 74 | 75 |
| 75 // Completion callback for a sign-in operation. | 76 // Completion callback for a sign-in operation. |
| 76 // |success| is YES if the operation was successful. | 77 // |success| is YES if the operation was successful. |
| 77 typedef void (^CompletionCallback)(BOOL success); | 78 typedef void (^CompletionCallback)(BOOL success); |
| 78 | 79 |
| 79 } // namespace signin_ui | 80 } // namespace signin_ui |
| 80 | 81 |
| 81 #endif // IOS_CHROME_BROWSER_SIGNIN_CONSTANTS_H_ | 82 #endif // IOS_CHROME_BROWSER_SIGNIN_CONSTANTS_H_ |
| OLD | NEW |