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

Unified Diff: chrome/browser/resources/chromeos/first_run/first_run.js

Issue 2944703004: Run clang-format on .js files in c/b/r/chromeos (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/chromeos/first_run/first_run.js
diff --git a/chrome/browser/resources/chromeos/first_run/first_run.js b/chrome/browser/resources/chromeos/first_run/first_run.js
index e22c495f65705b0a97145254b5a78fbd9b9e7cf4..4598b43082c74cd4c3a7ac511b6722ddf4c4ef15 100644
--- a/chrome/browser/resources/chromeos/first_run/first_run.js
+++ b/chrome/browser/resources/chromeos/first_run/first_run.js
@@ -30,7 +30,8 @@ function changeVisibility(
return;
}
var transitionDuration = (opt_transitionDuration === undefined) ?
- cr.FirstRun.getDefaultTransitionDuration() : opt_transitionDuration;
+ cr.FirstRun.getDefaultTransitionDuration() :
+ opt_transitionDuration;
var style = element.style;
var oldDurationValue = style.getPropertyValue('transition-duration');
style.setProperty('transition-duration', transitionDuration + 'ms');
@@ -170,8 +171,8 @@ cr.define('cr.FirstRun', function() {
*/
removeHoles: function(opt_onHolesRemoved) {
var mask = this.mask_;
- var holes = Array.prototype.slice.call(
- mask.getElementsByClassName('hole'));
+ var holes =
+ Array.prototype.slice.call(mask.getElementsByClassName('hole'));
var holesLeft = holes.length;
if (!holesLeft) {
if (opt_onHolesRemoved)
@@ -179,8 +180,8 @@ cr.define('cr.FirstRun', function() {
return;
}
holes.forEach(function(hole) {
- changeVisibility(hole, false, this.getDefaultTransitionDuration(),
- function() {
+ changeVisibility(
+ hole, false, this.getDefaultTransitionDuration(), function() {
mask.removeChild(hole);
--holesLeft;
if (!holesLeft && opt_onHolesRemoved)
@@ -251,7 +252,8 @@ cr.define('cr.FirstRun', function() {
* changed.
*/
setBackgroundVisible: function(visible, opt_onCompletion) {
- changeVisibility(this.backgroundContainer_, visible,
+ changeVisibility(
+ this.backgroundContainer_, visible,
this.getBackgroundTransitionDuration(), opt_onCompletion);
},
« no previous file with comments | « chrome/browser/resources/chromeos/first_run/app/background.js ('k') | chrome/browser/resources/chromeos/first_run/step.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698