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

Unified Diff: chrome/browser/resources/media_router/elements/media_router_header/media_router_header.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/media_router/elements/media_router_header/media_router_header.js
diff --git a/chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js b/chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js
index 599c99f86dc57d9289ff5809046e97d2eccde677..1c375cbb03a3e150dbb6a5715a519c1fd8a0bc87 100644
--- a/chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js
+++ b/chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js
@@ -99,8 +99,8 @@ Polymer({
attached: function() {
// isRTL() only works after i18n_template.js runs to set <html dir>.
// Set the back button icon based on text direction.
- this.arrowDropIcon_ = isRTL() ?
- 'media-router:arrow-forward' : 'media-router:arrow-back';
+ this.arrowDropIcon_ =
+ isRTL() ? 'media-router:arrow-forward' : 'media-router:arrow-back';
},
/**
@@ -110,7 +110,8 @@ Polymer({
*/
computeArrowDropIcon_: function(view) {
return view == media_router.MediaRouterView.CAST_MODE_LIST ?
- 'media-router:arrow-drop-up' : 'media-router:arrow-drop-down';
+ 'media-router:arrow-drop-up' :
+ 'media-router:arrow-drop-down';
},
/**
@@ -131,7 +132,7 @@ Polymer({
computeArrowDropTitle_: function(view) {
return view == media_router.MediaRouterView.CAST_MODE_LIST ?
this.i18n('viewDeviceListButtonTitle') :
- this.i18n('viewCastModeListButtonTitle');
+ this.i18n('viewCastModeListButtonTitle');
},
/**
@@ -205,8 +206,8 @@ Polymer({
this.$$('#header').style.height =
this.showEmail && !this.isEmptyOrWhitespace_(this.userEmail) ?
- this.headerWithEmailHeight_ + 'px' :
- this.headerWithoutEmailHeight_ + 'px';
+ this.headerWithEmailHeight_ + 'px' :
+ this.headerWithoutEmailHeight_ + 'px';
// Only fire if height actually changed.
if (currentHeight != this.offsetHeight) {
@@ -225,7 +226,8 @@ Polymer({
updateHeaderCursorStyle_: function(view) {
this.$$('#header-text').style.cursor =
view == media_router.MediaRouterView.SINK_LIST ||
- view == media_router.MediaRouterView.CAST_MODE_LIST ?
- 'pointer' : 'auto';
+ view == media_router.MediaRouterView.CAST_MODE_LIST ?
+ 'pointer' :
+ 'auto';
},
});

Powered by Google App Engine
This is Rietveld 408576698