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

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

Issue 2518233004: MD Settings: Move settings-advanced-page into settings-basic-page (Closed)
Patch Set: rebase Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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('settings', function() { 5 cr.define('settings', function() {
6 /** @const {string} */ 6 /** @const {string} */
7 var WRAPPER_CSS_CLASS = 'search-highlight-wrapper'; 7 var WRAPPER_CSS_CLASS = 'search-highlight-wrapper';
8 8
9 /** @const {string} */ 9 /** @const {string} */
10 var ORIGINAL_CONTENT_CSS_CLASS = 'search-highlight-original-content'; 10 var ORIGINAL_CONTENT_CSS_CLASS = 'search-highlight-original-content';
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 } 355 }
356 356
357 return Promise.resolve(); 357 return Promise.resolve();
358 }, 358 },
359 359
360 /** 360 /**
361 * @param {boolean} visible 361 * @param {boolean} visible
362 * @private 362 * @private
363 */ 363 */
364 setSectionsVisibility_: function(visible) { 364 setSectionsVisibility_: function(visible) {
365 var sections = Polymer.dom( 365 var sections = this.node.querySelectorAll('settings-section');
366 this.node.root).querySelectorAll('settings-section'); 366
367 for (var i = 0; i < sections.length; i++) 367 for (var i = 0; i < sections.length; i++)
368 sections[i].hiddenBySearch = !visible; 368 sections[i].hiddenBySearch = !visible;
369 }, 369 },
370 }; 370 };
371 371
372 /** 372 /**
373 * @constructor 373 * @constructor
374 */ 374 */
375 function TaskQueue() { 375 function TaskQueue() {
376 /** 376 /**
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 function setSearchManagerForTesting(searchManager) { 606 function setSearchManagerForTesting(searchManager) {
607 SearchManagerImpl.instance_ = searchManager; 607 SearchManagerImpl.instance_ = searchManager;
608 } 608 }
609 609
610 return { 610 return {
611 getSearchManager: getSearchManager, 611 getSearchManager: getSearchManager,
612 setSearchManagerForTesting: setSearchManagerForTesting, 612 setSearchManagerForTesting: setSearchManagerForTesting,
613 SearchRequest: SearchRequest, 613 SearchRequest: SearchRequest,
614 }; 614 };
615 }); 615 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698