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

Unified Diff: third_party/WebKit/Source/devtools/front_end/emulation/SensorsView.js

Issue 1992383002: DevTools: add eslint as presubmit hook (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 7 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: third_party/WebKit/Source/devtools/front_end/emulation/SensorsView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/SensorsView.js b/third_party/WebKit/Source/devtools/front_end/emulation/SensorsView.js
index a944b761f53b050307c778e32f60715b53792947..cdf5ed07ee9f0d9948c87ce60c489eed5f2a9a57 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/SensorsView.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/SensorsView.js
@@ -253,7 +253,7 @@ WebInspector.SensorsView.prototype = {
*/
function roundAngle(angle)
{
- return Math.round(angle*10000)/10000;
+ return Math.round(angle * 10000) / 10000;
}
if (modificationSource != WebInspector.SensorsView.DeviceOrientationModificationSource.UserInput) {
@@ -341,7 +341,7 @@ WebInspector.SensorsView.prototype = {
var axis, angle;
if (event.shiftKey) {
axis = new WebInspector.Geometry.Vector(0, 0, -1);
- angle = (this._mouseDownVector.x - mouseMoveVector.x)*WebInspector.SensorsView.ShiftDragOrientationSpeed;
+ angle = (this._mouseDownVector.x - mouseMoveVector.x) * WebInspector.SensorsView.ShiftDragOrientationSpeed;
} else {
axis = WebInspector.Geometry.crossProduct(this._mouseDownVector, mouseMoveVector);
angle = WebInspector.Geometry.calculateAngle(this._mouseDownVector, mouseMoveVector);

Powered by Google App Engine
This is Rietveld 408576698