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 var HotwordSearchSettingIndicator = options.HotwordSearchSettingIndicator; | 9 var HotwordSearchSettingIndicator = options.HotwordSearchSettingIndicator; |
10 | 10 |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
241 $('profiles-create').onclick = function(event) { | 241 $('profiles-create').onclick = function(event) { |
242 ManageProfileOverlay.showCreateDialog(); | 242 ManageProfileOverlay.showCreateDialog(); |
243 }; | 243 }; |
244 if (OptionsPage.isSettingsApp()) { | 244 if (OptionsPage.isSettingsApp()) { |
245 $('profiles-app-list-switch').onclick = function(event) { | 245 $('profiles-app-list-switch').onclick = function(event) { |
246 var selectedProfile = self.getSelectedProfileItem_(); | 246 var selectedProfile = self.getSelectedProfileItem_(); |
247 chrome.send('switchAppListProfile', [selectedProfile.filePath]); | 247 chrome.send('switchAppListProfile', [selectedProfile.filePath]); |
248 }; | 248 }; |
249 } | 249 } |
250 $('profiles-manage').onclick = function(event) { | 250 $('profiles-manage').onclick = function(event) { |
251 chrome.send('refreshGaiaPicture'); | |
Evan Stade
2014/05/21 23:28:30
I still do not think this belongs here. It is too
noms (inactive)
2014/05/23 15:09:47
Done! There's no infinite loop anymore, so I'm now
| |
251 ManageProfileOverlay.showManageDialog(); | 252 ManageProfileOverlay.showManageDialog(); |
252 }; | 253 }; |
253 $('profiles-delete').onclick = function(event) { | 254 $('profiles-delete').onclick = function(event) { |
254 var selectedProfile = self.getSelectedProfileItem_(); | 255 var selectedProfile = self.getSelectedProfileItem_(); |
255 if (selectedProfile) | 256 if (selectedProfile) |
256 ManageProfileOverlay.showDeleteDialog(selectedProfile); | 257 ManageProfileOverlay.showDeleteDialog(selectedProfile); |
257 }; | 258 }; |
258 if (loadTimeData.getBoolean('profileIsManaged')) { | 259 if (loadTimeData.getBoolean('profileIsManaged')) { |
259 $('profiles-create').disabled = true; | 260 $('profiles-create').disabled = true; |
260 $('profiles-delete').disabled = true; | 261 $('profiles-delete').disabled = true; |
(...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1815 BrowserOptions.getLoggedInUsername = function() { | 1816 BrowserOptions.getLoggedInUsername = function() { |
1816 return BrowserOptions.getInstance().username_; | 1817 return BrowserOptions.getInstance().username_; |
1817 }; | 1818 }; |
1818 } | 1819 } |
1819 | 1820 |
1820 // Export | 1821 // Export |
1821 return { | 1822 return { |
1822 BrowserOptions: BrowserOptions | 1823 BrowserOptions: BrowserOptions |
1823 }; | 1824 }; |
1824 }); | 1825 }); |
OLD | NEW |