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

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

Issue 552883002: Compile chrome://settings, part 4: 149 proper errors left (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@H_options_errors_2
Patch Set: reannotate createItem() Created 6 years, 3 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 (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 /** @const */ var Page = cr.ui.pageManager.Page; 6 /** @const */ var Page = cr.ui.pageManager.Page;
7 /** @const */ var PageManager = cr.ui.pageManager.PageManager; 7 /** @const */ var PageManager = cr.ui.pageManager.PageManager;
8 8
9 /** 9 /**
10 * Encapsulated handling of a search bubble. 10 * Encapsulated handling of a search bubble.
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 !page.associatedSection.hidden && 534 !page.associatedSection.hidden &&
535 page.pageDiv != undefined) { 535 page.pageDiv != undefined) {
536 pages.push(page); 536 pages.push(page);
537 } 537 }
538 } 538 }
539 return pages; 539 return pages;
540 }, 540 },
541 541
542 /** 542 /**
543 * A function to handle key press events. 543 * A function to handle key press events.
544 * @return {Event} a keydown event. 544 * @param {Event} event A keydown event.
545 * @private 545 * @private
546 */ 546 */
547 keyDownEventHandler_: function(event) { 547 keyDownEventHandler_: function(event) {
548 /** @const */ var ESCAPE_KEY_CODE = 27; 548 /** @const */ var ESCAPE_KEY_CODE = 27;
549 /** @const */ var FORWARD_SLASH_KEY_CODE = 191; 549 /** @const */ var FORWARD_SLASH_KEY_CODE = 191;
550 550
551 switch (event.keyCode) { 551 switch (event.keyCode) {
552 case ESCAPE_KEY_CODE: 552 case ESCAPE_KEY_CODE:
553 if (event.target == this.searchField) { 553 if (event.target == this.searchField) {
554 this.setSearchText_(''); 554 this.setSearchText_('');
(...skipping 23 matching lines...) Expand all
578 // Trim beginning and ending whitespace. 578 // Trim beginning and ending whitespace.
579 return text.replace(/^\s+|\s+$/g, ''); 579 return text.replace(/^\s+|\s+$/g, '');
580 }; 580 };
581 581
582 // Export 582 // Export
583 return { 583 return {
584 SearchPage: SearchPage 584 SearchPage: SearchPage
585 }; 585 };
586 586
587 }); 587 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698