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

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: fixed assert 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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 !page.associatedSection.hidden && 544 !page.associatedSection.hidden &&
545 page.pageDiv != undefined) { 545 page.pageDiv != undefined) {
546 pages.push(page); 546 pages.push(page);
547 } 547 }
548 } 548 }
549 return pages; 549 return pages;
550 }, 550 },
551 551
552 /** 552 /**
553 * A function to handle key press events. 553 * A function to handle key press events.
554 * @return {Event} a keydown event. 554 * @param {Event} event A keydown event.
555 * @private 555 * @private
556 */ 556 */
557 keyDownEventHandler_: function(event) { 557 keyDownEventHandler_: function(event) {
558 /** @const */ var ESCAPE_KEY_CODE = 27; 558 /** @const */ var ESCAPE_KEY_CODE = 27;
559 /** @const */ var FORWARD_SLASH_KEY_CODE = 191; 559 /** @const */ var FORWARD_SLASH_KEY_CODE = 191;
560 560
561 switch (event.keyCode) { 561 switch (event.keyCode) {
562 case ESCAPE_KEY_CODE: 562 case ESCAPE_KEY_CODE:
563 if (event.target == this.searchField) { 563 if (event.target == this.searchField) {
564 this.setSearchText_(''); 564 this.setSearchText_('');
(...skipping 23 matching lines...) Expand all
588 // Trim beginning and ending whitespace. 588 // Trim beginning and ending whitespace.
589 return text.replace(/^\s+|\s+$/g, ''); 589 return text.replace(/^\s+|\s+$/g, '');
590 }; 590 };
591 591
592 // Export 592 // Export
593 return { 593 return {
594 SearchPage: SearchPage 594 SearchPage: SearchPage
595 }; 595 };
596 596
597 }); 597 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698