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

Unified Diff: chrome/browser/resources/print_preview/common/search_box.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/print_preview/common/search_box.js
diff --git a/chrome/browser/resources/print_preview/common/search_box.js b/chrome/browser/resources/print_preview/common/search_box.js
index c94fd09f9b0793ec8d2bf9f8eb0a6c578add429a..d8db692974feaa4a278b237e4574edfbd98ab550 100644
--- a/chrome/browser/resources/print_preview/common/search_box.js
+++ b/chrome/browser/resources/print_preview/common/search_box.js
@@ -24,7 +24,7 @@ cr.define('print_preview', function() {
* Timeout used to control incremental search.
* @private {?number}
*/
- this.timeout_ = null;
+ this.timeout_ = null;
/**
* Input box where the query is entered.
@@ -37,9 +37,7 @@ cr.define('print_preview', function() {
* Enumeration of event types dispatched from the search box.
* @enum {string}
*/
- SearchBox.EventType = {
- SEARCH: 'print_preview.SearchBox.SEARCH'
- };
+ SearchBox.EventType = {SEARCH: 'print_preview.SearchBox.SEARCH'};
/**
* Delay in milliseconds before dispatching a SEARCH event.
@@ -64,18 +62,18 @@ cr.define('print_preview', function() {
/** @override */
createDom: function() {
- this.setElementInternal(this.cloneTemplateInternal(
- 'search-box-template'));
- this.input_ = assertInstanceof(this.getChildElement('.search-box-input'),
- HTMLInputElement);
+ this.setElementInternal(
+ this.cloneTemplateInternal('search-box-template'));
+ this.input_ = assertInstanceof(
+ this.getChildElement('.search-box-input'), HTMLInputElement);
this.input_.setAttribute('placeholder', this.searchBoxPlaceholderText_);
},
/** @override */
enterDocument: function() {
print_preview.Component.prototype.enterDocument.call(this);
- this.tracker.add(assert(this.input_), 'input',
- this.onInputInput_.bind(this));
+ this.tracker.add(
+ assert(this.input_), 'input', this.onInputInput_.bind(this));
},
/** @override */
@@ -124,7 +122,5 @@ cr.define('print_preview', function() {
};
// Export
- return {
- SearchBox: SearchBox
- };
+ return {SearchBox: SearchBox};
});

Powered by Google App Engine
This is Rietveld 408576698