Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Side by Side Diff: chrome/browser/resources/options/browser_options.js

Issue 158143002: Fine tuned availability of hotword plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 this.showSectionWithAnimation_(section, container); 870 this.showSectionWithAnimation_(section, container);
871 else 871 else
872 this.hideSectionWithAnimation_(section, container); 872 this.hideSectionWithAnimation_(section, container);
873 } else { 873 } else {
874 section.hidden = !event.value.value; 874 section.hidden = !event.value.value;
875 this.onShowHomeButtonChangedCalled_ = true; 875 this.onShowHomeButtonChangedCalled_ = true;
876 } 876 }
877 }, 877 },
878 878
879 /** 879 /**
880 * Activates the option about the hotword in the app-list.
881 * @private
882 */
883 showAppListHotword_: function() {
884 $('hotword-app-list').hidden = false;
885 },
886
887 /**
880 * Activates the Hotword section from the System settings page. 888 * Activates the Hotword section from the System settings page.
881 * @private 889 * @private
882 */ 890 */
883 showHotwordSection_: function() { 891 showHotwordSection_: function() {
884 $('hotword-search').hidden = false; 892 $('hotword-search').hidden = false;
885 }, 893 },
886 894
887 /** 895 /**
888 * Event listener for the 'homepage is NTP' preference. Updates the label 896 * Event listener for the 'homepage is NTP' preference. Updates the label
889 * next to the 'Change' button. 897 * next to the 'Change' button.
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
1574 'setSpokenFeedbackCheckboxState', 1582 'setSpokenFeedbackCheckboxState',
1575 'setThemesResetButtonEnabled', 1583 'setThemesResetButtonEnabled',
1576 'setVirtualKeyboardCheckboxState', 1584 'setVirtualKeyboardCheckboxState',
1577 'setupCloudPrintConnectorSection', 1585 'setupCloudPrintConnectorSection',
1578 'setupPageZoomSelector', 1586 'setupPageZoomSelector',
1579 'setupProxySettingsSection', 1587 'setupProxySettingsSection',
1580 'showBluetoothSettings', 1588 'showBluetoothSettings',
1581 'showCreateProfileError', 1589 'showCreateProfileError',
1582 'showCreateProfileSuccess', 1590 'showCreateProfileSuccess',
1583 'showCreateProfileWarning', 1591 'showCreateProfileWarning',
1592 'showAppListHotword',
1584 'showHotwordSection', 1593 'showHotwordSection',
1585 'showManagedUserImportError', 1594 'showManagedUserImportError',
1586 'showManagedUserImportSuccess', 1595 'showManagedUserImportSuccess',
1587 'showMouseControls', 1596 'showMouseControls',
1588 'showTouchpadControls', 1597 'showTouchpadControls',
1589 'updateAccountPicture', 1598 'updateAccountPicture',
1590 'updateAutoLaunchState', 1599 'updateAutoLaunchState',
1591 'updateDefaultBrowserState', 1600 'updateDefaultBrowserState',
1592 'updateManagesSupervisedUsers', 1601 'updateManagesSupervisedUsers',
1593 'updateSearchEngines', 1602 'updateSearchEngines',
(...skipping 15 matching lines...) Expand all
1609 BrowserOptions.getLoggedInUsername = function() { 1618 BrowserOptions.getLoggedInUsername = function() {
1610 return BrowserOptions.getInstance().username_; 1619 return BrowserOptions.getInstance().username_;
1611 }; 1620 };
1612 } 1621 }
1613 1622
1614 // Export 1623 // Export
1615 return { 1624 return {
1616 BrowserOptions: BrowserOptions 1625 BrowserOptions: BrowserOptions
1617 }; 1626 };
1618 }); 1627 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698