Chromium Code Reviews| 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 Page = cr.ui.pageManager.Page; | 7 var Page = cr.ui.pageManager.Page; |
| 8 var PageManager = cr.ui.pageManager.PageManager; | 8 var PageManager = cr.ui.pageManager.PageManager; |
| 9 var ArrayDataModel = cr.ui.ArrayDataModel; | 9 var ArrayDataModel = cr.ui.ArrayDataModel; |
| 10 var RepeatingButton = cr.ui.RepeatingButton; | 10 var RepeatingButton = cr.ui.RepeatingButton; |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 213 chrome.send('requestHotwordAvailable'); | 213 chrome.send('requestHotwordAvailable'); |
| 214 | 214 |
| 215 if ($('set-wallpaper')) { | 215 if ($('set-wallpaper')) { |
| 216 $('set-wallpaper').onclick = function(event) { | 216 $('set-wallpaper').onclick = function(event) { |
| 217 chrome.send('openWallpaperManager'); | 217 chrome.send('openWallpaperManager'); |
| 218 chrome.send('coreOptionsUserMetricsAction', | 218 chrome.send('coreOptionsUserMetricsAction', |
| 219 ['Options_OpenWallpaperManager']); | 219 ['Options_OpenWallpaperManager']); |
| 220 }; | 220 }; |
| 221 } | 221 } |
| 222 | 222 |
| 223 // Control the hotword-always-on pref with the Hotword Audio | |
| 224 // Verification app. | |
| 225 $('hotword-always-on-search-checkbox').customChangeHandler = | |
| 226 function(event) { | |
| 227 if (($('hotword-always-on-search-checkbox').checked)) { | |
| 228 $('hotword-always-on-search-checkbox').checked = false; | |
|
rpetterson
2014/09/11 20:14:17
Does setting checked to false actually update the
kcarattini
2014/09/12 01:02:07
My understanding is that this function is called a
| |
| 229 chrome.send('launchHotwordAudioVerificationApp', [Boolean(false)]); | |
| 230 return true; | |
| 231 } else { | |
| 232 return false; | |
| 233 } | |
| 234 }; | |
| 235 | |
| 223 $('themes-gallery').onclick = function(event) { | 236 $('themes-gallery').onclick = function(event) { |
| 224 window.open(loadTimeData.getString('themesGalleryURL')); | 237 window.open(loadTimeData.getString('themesGalleryURL')); |
| 225 chrome.send('coreOptionsUserMetricsAction', | 238 chrome.send('coreOptionsUserMetricsAction', |
| 226 ['Options_ThemesGallery']); | 239 ['Options_ThemesGallery']); |
| 227 }; | 240 }; |
| 228 $('themes-reset').onclick = function(event) { | 241 $('themes-reset').onclick = function(event) { |
| 229 chrome.send('themesReset'); | 242 chrome.send('themesReset'); |
| 230 }; | 243 }; |
| 231 | 244 |
| 232 if (loadTimeData.getBoolean('profileIsSupervised')) { | 245 if (loadTimeData.getBoolean('profileIsSupervised')) { |
| (...skipping 1741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1974 BrowserOptions.getLoggedInUsername = function() { | 1987 BrowserOptions.getLoggedInUsername = function() { |
| 1975 return BrowserOptions.getInstance().username_; | 1988 return BrowserOptions.getInstance().username_; |
| 1976 }; | 1989 }; |
| 1977 } | 1990 } |
| 1978 | 1991 |
| 1979 // Export | 1992 // Export |
| 1980 return { | 1993 return { |
| 1981 BrowserOptions: BrowserOptions | 1994 BrowserOptions: BrowserOptions |
| 1982 }; | 1995 }; |
| 1983 }); | 1996 }); |
| OLD | NEW |