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

Unified Diff: chrome/browser/resources/options/deletable_item_list.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/options/deletable_item_list.js
diff --git a/chrome/browser/resources/options/deletable_item_list.js b/chrome/browser/resources/options/deletable_item_list.js
index 57b684bfe3ad5a1dd3ed00ebda6f35e63b39bd1c..068c0d5beda6df6bedc9017f2712034831430890 100644
--- a/chrome/browser/resources/options/deletable_item_list.js
+++ b/chrome/browser/resources/options/deletable_item_list.js
@@ -52,20 +52,20 @@ cr.define('options', function() {
this.classList.add('deletable-item');
- this.contentElement_ = /** @type {HTMLElement} */(
- this.ownerDocument.createElement('div'));
+ this.contentElement_ =
+ /** @type {HTMLElement} */ (this.ownerDocument.createElement('div'));
this.appendChild(this.contentElement_);
- this.closeButtonElement_ = /** @type {HTMLElement} */(
+ this.closeButtonElement_ = /** @type {HTMLElement} */ (
this.ownerDocument.createElement('button'));
this.closeButtonElement_.className =
'raw-button row-delete-button custom-appearance';
- this.closeButtonElement_.addEventListener('mousedown',
- this.handleMouseDownUpOnClose_);
- this.closeButtonElement_.addEventListener('mouseup',
- this.handleMouseDownUpOnClose_);
- this.closeButtonElement_.addEventListener('focus',
- this.handleFocus.bind(this));
+ this.closeButtonElement_.addEventListener(
+ 'mousedown', this.handleMouseDownUpOnClose_);
+ this.closeButtonElement_.addEventListener(
+ 'mouseup', this.handleMouseDownUpOnClose_);
+ this.closeButtonElement_.addEventListener(
+ 'focus', this.handleFocus.bind(this));
this.closeButtonElement_.tabIndex = -1;
this.closeButtonElement_.title =
loadTimeData.getString('deletableItemDeleteButtonTitle');
@@ -161,7 +161,7 @@ cr.define('options', function() {
var target = e.target;
if (target.classList.contains('row-delete-button')) {
var listItem = this.getListItemAncestor(
- /** @type {HTMLElement} */(target));
+ /** @type {HTMLElement} */ (target));
var idx = this.getIndexOfListItem(listItem);
this.deleteItemAtIndex(idx);
}
@@ -203,8 +203,7 @@ cr.define('options', function() {
* implementing.
* @param {number} index The index of the item that is being deleted.
*/
- deleteItemAtIndex: function(index) {
- },
+ deleteItemAtIndex: function(index) {},
};
return {

Powered by Google App Engine
This is Rietveld 408576698