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 namespace ios { | 10 namespace ios { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // Sign in operation was started from as a pre-requisite of share operation. | 44 // Sign in operation was started from as a pre-requisite of share operation. |
45 SIGN_IN_SOURCE_SHARE, | 45 SIGN_IN_SOURCE_SHARE, |
46 // Sign in operation was started from as a pre-requisite of a print operation. | 46 // Sign in operation was started from as a pre-requisite of a print operation. |
47 SIGN_IN_SOURCE_PRINT, | 47 SIGN_IN_SOURCE_PRINT, |
48 // Sign in operation was started from the re-sign in infobar. | 48 // Sign in operation was started from the re-sign in infobar. |
49 SIGN_IN_SOURCE_RESIGN_IN_INFOBAR, | 49 SIGN_IN_SOURCE_RESIGN_IN_INFOBAR, |
50 // Sign in operation was started from the Chrome to Device infobar. | 50 // Sign in operation was started from the Chrome to Device infobar. |
51 SIGN_IN_SOURCE_CHROME_TO_DEVICE_INFOBAR, | 51 SIGN_IN_SOURCE_CHROME_TO_DEVICE_INFOBAR, |
52 // Sign in operation was started from the recent tabs panel. | 52 // Sign in operation was started from the recent tabs panel. |
53 SIGN_IN_SOURCE_RECENT_TABS, | 53 SIGN_IN_SOURCE_RECENT_TABS, |
54 // Sign in operation was started from the stars promo panel. | 54 // Sign in operation was started from the bookmarks promo panel. |
55 SIGN_IN_SOURCE_STARS_PROMO, | 55 SIGN_IN_SOURCE_BOOKMARKS_PROMO, |
56 // NOTE: Add new sign in sources only immediately above this line. Also, make | 56 // NOTE: Add new sign in sources only immediately above this line. Also, make |
57 // sure the enum list for histogram |Signin.IOSSignInSource| in | 57 // sure the enum list for histogram |Signin.IOSSignInSource| in |
58 // tools/histogram/histograms.xml is updated with any change in here. | 58 // tools/histogram/histograms.xml is updated with any change in here. |
59 SIGN_IN_SOURCE_COUNT | 59 SIGN_IN_SOURCE_COUNT |
60 } SignInSource; | 60 } SignInSource; |
61 | 61 |
62 typedef enum { | 62 typedef enum { |
63 SHOULD_CLEAR_DATA_USER_CHOICE, | 63 SHOULD_CLEAR_DATA_USER_CHOICE, |
64 SHOULD_CLEAR_DATA_CLEAR_DATA, | 64 SHOULD_CLEAR_DATA_CLEAR_DATA, |
65 SHOULD_CLEAR_DATA_MERGE_DATA, | 65 SHOULD_CLEAR_DATA_MERGE_DATA, |
(...skipping 12 matching lines...) Expand all Loading... |
78 // |signedIn| is true if the operation was successful and the user is now | 78 // |signedIn| is true if the operation was successful and the user is now |
79 // signed in. | 79 // signed in. |
80 // |signedInBrowserState| is the browser state that was signed in. | 80 // |signedInBrowserState| is the browser state that was signed in. |
81 typedef void (^CompletionCallback)( | 81 typedef void (^CompletionCallback)( |
82 BOOL signedIn, | 82 BOOL signedIn, |
83 ios::ChromeBrowserState* signedInBrowserState); | 83 ios::ChromeBrowserState* signedInBrowserState); |
84 | 84 |
85 } // namespace signin_ui | 85 } // namespace signin_ui |
86 | 86 |
87 #endif // IOS_CHROME_BROWSER_SIGNIN_CONSTANTS_H_ | 87 #endif // IOS_CHROME_BROWSER_SIGNIN_CONSTANTS_H_ |
OLD | NEW |