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

Unified Diff: chrome/browser/resources/md_history/side_bar.js

Issue 2578013002: [MD History] clang-format all javascript. (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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_history/side_bar.js
diff --git a/chrome/browser/resources/md_history/side_bar.js b/chrome/browser/resources/md_history/side_bar.js
index a0a82aee324c0fb8280ad8daaa6dba28f291b7ae..9f4492213ecc06d61602f9cdd276102f5258b0b0 100644
--- a/chrome/browser/resources/md_history/side_bar.js
+++ b/chrome/browser/resources/md_history/side_bar.js
@@ -8,12 +8,18 @@ Polymer({
behaviors: [Polymer.IronA11yKeysBehavior],
properties: {
- selectedPage: {type: String, notify: true},
-
- showFooter: Boolean,
+ selectedPage: {
+ type: String,
+ notify: true,
+ },
// If true, the sidebar is contained within an app-drawer.
- drawer: {type: Boolean, reflectToAttribute: true},
+ drawer: {
+ type: Boolean,
+ reflectToAttribute: true,
+ },
+
+ showFooter: Boolean,
},
keyBindings: {
@@ -24,9 +30,7 @@ Polymer({
* @param {CustomEvent} e
* @private
*/
- onSpacePressed_: function(e) {
- e.detail.keyboardEvent.path[0].click();
- },
+ onSpacePressed_: function(e) { e.detail.keyboardEvent.path[0].click(); },
/**
* @private
@@ -42,7 +46,7 @@ Polymer({
var browserService = md_history.BrowserService.getInstance();
browserService.recordAction('InitClearBrowsingData');
browserService.openClearBrowsingData();
- /** @type {PaperRippleElement} */(this.$['cbd-ripple']).upAction();
+ /** @type {PaperRippleElement} */ (this.$['cbd-ripple']).upAction();
e.preventDefault();
},
@@ -51,7 +55,5 @@ Polymer({
* accessibility purposes, taps are handled separately by <iron-selector>.
* @private
*/
- onItemClick_: function(e) {
- e.preventDefault();
- },
+ onItemClick_: function(e) { e.preventDefault(); },
});
« no previous file with comments | « chrome/browser/resources/md_history/searched_label.js ('k') | chrome/browser/resources/md_history/synced_device_card.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698