| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // Use the <code>chrome.identity</code> API to get OAuth2 access tokens. | 5 // Use the <code>chrome.identity</code> API to get OAuth2 access tokens. |
| 6 [use_movable_types=true] namespace identity { | 6 namespace identity { |
| 7 | 7 |
| 8 dictionary AccountInfo { | 8 dictionary AccountInfo { |
| 9 // A unique identifier for the account. This ID will not change | 9 // A unique identifier for the account. This ID will not change |
| 10 // for the lifetime of the account. | 10 // for the lifetime of the account. |
| 11 DOMString id; | 11 DOMString id; |
| 12 }; | 12 }; |
| 13 | 13 |
| 14 dictionary ProfileUserInfo { | 14 dictionary ProfileUserInfo { |
| 15 // An email address for the user account signed into the current | 15 // An email address for the user account signed into the current |
| 16 // profile. Empty if the user is not signed in or the | 16 // profile. Empty if the user is not signed in or the |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 // | 156 // |
| 157 // |path| : The path appended to the end of the generated URL. | 157 // |path| : The path appended to the end of the generated URL. |
| 158 [nocompile] static DOMString getRedirectURL(optional DOMString path); | 158 [nocompile] static DOMString getRedirectURL(optional DOMString path); |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 interface Events { | 161 interface Events { |
| 162 // Fired when signin state changes for an account on the user's profile. | 162 // Fired when signin state changes for an account on the user's profile. |
| 163 static void onSignInChanged(AccountInfo account, boolean signedIn); | 163 static void onSignInChanged(AccountInfo account, boolean signedIn); |
| 164 }; | 164 }; |
| 165 }; | 165 }; |
| OLD | NEW |