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

Unified Diff: chrome/browser/resources/md_history/synced_device_card.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/synced_device_card.js
diff --git a/chrome/browser/resources/md_history/synced_device_card.js b/chrome/browser/resources/md_history/synced_device_card.js
index 91a41d3b49aefc35460bbad9e2116ebe945f9619..1c2e9f67947df24a8bd80757d3600b512e567233 100644
--- a/chrome/browser/resources/md_history/synced_device_card.js
+++ b/chrome/browser/resources/md_history/synced_device_card.js
@@ -6,12 +6,6 @@ Polymer({
is: 'history-synced-device-card',
properties: {
- // Name of the synced device.
- device: String,
-
- // When the device information was last updated.
- lastUpdateTime: String,
-
/**
* The list of tabs open for this device.
* @type {!Array<!ForeignSessionTab>}
@@ -22,6 +16,17 @@ Polymer({
observer: 'updateIcons_'
},
+ // Name of the synced device.
+ device: String,
+
+ // When the device information was last updated.
+ lastUpdateTime: String,
+
+ // Whether the card is open.
+ opened: Boolean,
+
+ searchTerm: String,
+
/**
* The indexes where a window separator should be shown. The use of a
* separate array here is necessary for window separators to appear
@@ -30,16 +35,13 @@ Polymer({
*/
separatorIndexes: Array,
- // Whether the card is open.
- opened: Boolean,
-
- searchTerm: String,
-
// Internal identifier for the device.
sessionTag: String,
},
- listeners: {'dom-change': 'notifyFocusUpdate_'},
+ listeners: {
+ 'dom-change': 'notifyFocusUpdate_',
+ },
/**
* Create FocusRows for this card. One is always made for the card heading and
@@ -70,7 +72,7 @@ Polymer({
* @private
*/
openTab_: function(e) {
- var tab = /** @type {ForeignSessionTab} */(e.model.tab);
+ var tab = /** @type {ForeignSessionTab} */ (e.model.tab);
var browserService = md_history.BrowserService.getInstance();
browserService.recordHistogram(
SYNCED_TABS_HISTOGRAM_NAME, SyncedTabsHistogram.LINK_CLICKED,
@@ -89,8 +91,7 @@ Polymer({
SyncedTabsHistogram.EXPAND_SESSION;
md_history.BrowserService.getInstance().recordHistogram(
- SYNCED_TABS_HISTOGRAM_NAME, histogramValue,
- SyncedTabsHistogram.LIMIT);
+ SYNCED_TABS_HISTOGRAM_NAME, histogramValue, SyncedTabsHistogram.LIMIT);
this.$.collapse.toggle();
this.$['dropdown-indicator'].icon =
@@ -151,7 +152,7 @@ Polymer({
onMenuButtonTap_: function(e) {
this.fire('toggle-menu', {
target: Polymer.dom(e).localTarget,
- tag: this.sessionTag
+ tag: this.sessionTag,
});
e.stopPropagation(); // Prevent iron-collapse.
},
« no previous file with comments | « chrome/browser/resources/md_history/side_bar.js ('k') | chrome/browser/resources/md_history/synced_device_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698