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

Unified Diff: chrome/browser/resources/settings/people_page/camera.js

Issue 2946563002: Run clang-format on .js files in c/b/r/settings (Closed)
Patch Set: dschuyler@ review 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/settings/people_page/camera.js
diff --git a/chrome/browser/resources/settings/people_page/camera.js b/chrome/browser/resources/settings/people_page/camera.js
index ce25918758c058ee147874f3ea0dfd43c5274d34..f8a53b45ee2952d2db923f8451a621f57cefa132 100644
--- a/chrome/browser/resources/settings/people_page/camera.js
+++ b/chrome/browser/resources/settings/people_page/camera.js
@@ -13,10 +13,7 @@
* Dimensions for camera capture.
* @const
*/
-var CAPTURE_SIZE = {
- height: 480,
- width: 480
-};
+var CAPTURE_SIZE = {height: 480, width: 480};
Polymer({
is: 'settings-camera',
@@ -153,8 +150,8 @@ Polymer({
this.isFlipped_ = !this.isFlipped_;
this.$.userImageStreamCrop.classList.toggle('flip-x', this.isFlipped_);
- var flipMessageId = this.isFlipped_ ?
- 'photoFlippedAccessibleText' : 'photoFlippedBackAccessibleText';
+ var flipMessageId = this.isFlipped_ ? 'photoFlippedAccessibleText' :
+ 'photoFlippedBackAccessibleText';
announceAccessibleMessage(loadTimeData.getString(flipMessageId));
},
@@ -169,8 +166,8 @@ Polymer({
var width = video.videoWidth;
var height = video.videoHeight;
if (width < CAPTURE_SIZE.width || height < CAPTURE_SIZE.height) {
- console.error('Video capture size too small: ' +
- width + 'x' + height + '!');
+ console.error(
+ 'Video capture size too small: ' + width + 'x' + height + '!');
}
var src = {};
if (width / CAPTURE_SIZE.width > height / CAPTURE_SIZE.height) {
@@ -184,8 +181,9 @@ Polymer({
}
src.x = (width - src.width) / 2;
src.y = (height - src.height) / 2;
- ctx.drawImage(video, src.x, src.y, src.width, src.height,
- 0, 0, CAPTURE_SIZE.width, CAPTURE_SIZE.height);
+ ctx.drawImage(
+ video, src.x, src.y, src.width, src.height, 0, 0, CAPTURE_SIZE.width,
+ CAPTURE_SIZE.height);
},
/**

Powered by Google App Engine
This is Rietveld 408576698