| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 cr.define('options', function() { | 5 cr.define('options', function() { |
| 6 var OptionsPage = options.OptionsPage; | 6 var OptionsPage = options.OptionsPage; |
| 7 var ArrayDataModel = cr.ui.ArrayDataModel; | 7 var ArrayDataModel = cr.ui.ArrayDataModel; |
| 8 var RepeatingButton = cr.ui.RepeatingButton; | 8 var RepeatingButton = cr.ui.RepeatingButton; |
| 9 | 9 |
| 10 // | 10 // |
| (...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1063 /** | 1063 /** |
| 1064 * Reports a local error (e.g., disk full) to the "create" overlay during | 1064 * Reports a local error (e.g., disk full) to the "create" overlay during |
| 1065 * profile creation. | 1065 * profile creation. |
| 1066 * @private | 1066 * @private |
| 1067 */ | 1067 */ |
| 1068 showCreateProfileLocalError_: function() { | 1068 showCreateProfileLocalError_: function() { |
| 1069 CreateProfileOverlay.onLocalError(); | 1069 CreateProfileOverlay.onLocalError(); |
| 1070 }, | 1070 }, |
| 1071 | 1071 |
| 1072 /** | 1072 /** |
| 1073 * Reports a remote error (e.g., a network error during limited-user |
| 1074 * registration) to the "create" overlay during profile creation. |
| 1075 * @private |
| 1076 */ |
| 1077 showCreateProfileRemoteError_: function() { |
| 1078 CreateProfileOverlay.onRemoteError(); |
| 1079 }, |
| 1080 |
| 1081 /** |
| 1073 * Reports successful profile creation to the "create" overlay. | 1082 * Reports successful profile creation to the "create" overlay. |
| 1074 * @param {Object} profileInfo An object of the form: | 1083 * @param {Object} profileInfo An object of the form: |
| 1075 * profileInfo = { | 1084 * profileInfo = { |
| 1076 * name: "Profile Name", | 1085 * name: "Profile Name", |
| 1077 * filePath: "/path/to/profile/data/on/disk" | 1086 * filePath: "/path/to/profile/data/on/disk" |
| 1078 * isManaged: (true|false), | 1087 * isManaged: (true|false), |
| 1079 * }; | 1088 * }; |
| 1080 * @private | 1089 * @private |
| 1081 */ | 1090 */ |
| 1082 showCreateProfileSuccess_: function(profileInfo) { | 1091 showCreateProfileSuccess_: function(profileInfo) { |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1457 'setPasswordGenerationSettingVisibility', | 1466 'setPasswordGenerationSettingVisibility', |
| 1458 'setProfilesInfo', | 1467 'setProfilesInfo', |
| 1459 'setSpokenFeedbackCheckboxState', | 1468 'setSpokenFeedbackCheckboxState', |
| 1460 'setThemesResetButtonEnabled', | 1469 'setThemesResetButtonEnabled', |
| 1461 'setVirtualKeyboardCheckboxState', | 1470 'setVirtualKeyboardCheckboxState', |
| 1462 'setupCloudPrintConnectorSection', | 1471 'setupCloudPrintConnectorSection', |
| 1463 'setupPageZoomSelector', | 1472 'setupPageZoomSelector', |
| 1464 'setupProxySettingsSection', | 1473 'setupProxySettingsSection', |
| 1465 'showBluetoothSettings', | 1474 'showBluetoothSettings', |
| 1466 'showCreateProfileLocalError', | 1475 'showCreateProfileLocalError', |
| 1476 'showCreateProfileRemoteError', |
| 1467 'showCreateProfileSuccess', | 1477 'showCreateProfileSuccess', |
| 1468 'showMouseControls', | 1478 'showMouseControls', |
| 1469 'showTouchpadControls', | 1479 'showTouchpadControls', |
| 1470 'updateAccountPicture', | 1480 'updateAccountPicture', |
| 1471 'updateAutoLaunchState', | 1481 'updateAutoLaunchState', |
| 1472 'updateDefaultBrowserState', | 1482 'updateDefaultBrowserState', |
| 1473 'updateInstantCheckboxState', | 1483 'updateInstantCheckboxState', |
| 1474 'updateSearchEngines', | 1484 'updateSearchEngines', |
| 1475 'updateStartupPages', | 1485 'updateStartupPages', |
| 1476 'updateSyncState', | 1486 'updateSyncState', |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1490 BrowserOptions.getLoggedInUsername = function() { | 1500 BrowserOptions.getLoggedInUsername = function() { |
| 1491 return BrowserOptions.getInstance().username_; | 1501 return BrowserOptions.getInstance().username_; |
| 1492 }; | 1502 }; |
| 1493 } | 1503 } |
| 1494 | 1504 |
| 1495 // Export | 1505 // Export |
| 1496 return { | 1506 return { |
| 1497 BrowserOptions: BrowserOptions | 1507 BrowserOptions: BrowserOptions |
| 1498 }; | 1508 }; |
| 1499 }); | 1509 }); |
| OLD | NEW |