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

Side by Side Diff: chrome/browser/resources/settings/search_page/search_page.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'settings-search-page' is the settings page containing search settings. 7 * 'settings-search-page' is the settings page containing search settings.
8 */ 8 */
9 Polymer({ 9 Polymer({
10 is: 'settings-search-page', 10 is: 'settings-search-page',
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 'hotword-info-update', this.hotwordInfoUpdate_.bind(this)); 63 'hotword-info-update', this.hotwordInfoUpdate_.bind(this));
64 this.browserProxy_.getHotwordInfo().then(function(hotwordInfo) { 64 this.browserProxy_.getHotwordInfo().then(function(hotwordInfo) {
65 this.hotwordInfoUpdate_(hotwordInfo); 65 this.hotwordInfoUpdate_(hotwordInfo);
66 }.bind(this)); 66 }.bind(this));
67 67
68 // Google Now cards in the launcher 68 // Google Now cards in the launcher
69 cr.addWebUIListener( 69 cr.addWebUIListener(
70 'google-now-availability-changed', 70 'google-now-availability-changed',
71 this.googleNowAvailabilityUpdate_.bind(this)); 71 this.googleNowAvailabilityUpdate_.bind(this));
72 this.browserProxy_.getGoogleNowAvailability().then(function(available) { 72 this.browserProxy_.getGoogleNowAvailability().then(function(available) {
73 this.googleNowAvailabilityUpdate_(available); 73 this.googleNowAvailabilityUpdate_(available);
74 }.bind(this)); 74 }.bind(this));
75 }, 75 },
76 76
77 /** @private */ 77 /** @private */
78 onChange_: function() { 78 onChange_: function() {
79 var select = /** @type {!HTMLSelectElement} */ (this.$$('select')); 79 var select = /** @type {!HTMLSelectElement} */ (this.$$('select'));
80 var searchEngine = this.searchEngines_[select.selectedIndex]; 80 var searchEngine = this.searchEngines_[select.selectedIndex];
81 this.browserProxy_.setDefaultSearchEngine(searchEngine.modelIndex); 81 this.browserProxy_.setDefaultSearchEngine(searchEngine.modelIndex);
82 }, 82 },
83 83
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 }, 160 },
161 161
162 /** 162 /**
163 * @param {Event} event 163 * @param {Event} event
164 * @private 164 * @private
165 */ 165 */
166 doNothing_: function(event) { 166 doNothing_: function(event) {
167 event.stopPropagation(); 167 event.stopPropagation();
168 } 168 }
169 }); 169 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698