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

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

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 years, 2 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/DeviceModeModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
index 8a4ada9a71243febea059befc1c80fbd93e107d3..4fd2a24980f375c64ddf1fe59ea6ed910d19e5e8 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
@@ -62,14 +62,14 @@ WebInspector.DeviceModeModel = function(updateCallback)
/** @type {?function()} */
this._onTargetAvailable = null;
WebInspector.targetManager.observeTargets(this, WebInspector.Target.Capability.Browser);
-}
+};
/** @enum {string} */
WebInspector.DeviceModeModel.Type = {
None: "None",
Responsive: "Responsive",
Device: "Device"
-}
+};
/** @enum {string} */
WebInspector.DeviceModeModel.UA = {
@@ -77,7 +77,7 @@ WebInspector.DeviceModeModel.UA = {
MobileNoTouch: WebInspector.UIString("Mobile (no touch)"),
Desktop: WebInspector.UIString("Desktop"),
DesktopTouch: WebInspector.UIString("Desktop (touch)")
-}
+};
WebInspector.DeviceModeModel.MinDeviceSize = 50;
WebInspector.DeviceModeModel.MaxDeviceSize = 9999;
@@ -91,7 +91,7 @@ WebInspector.DeviceModeModel.deviceSizeValidator = function(value)
if (/^[\d]+$/.test(value) && value >= WebInspector.DeviceModeModel.MinDeviceSize && value <= WebInspector.DeviceModeModel.MaxDeviceSize)
return true;
return false;
-}
+};
/**
* @param {string} value
@@ -102,7 +102,7 @@ WebInspector.DeviceModeModel.deviceScaleFactorValidator = function(value)
if (!value || (/^[\d]+(\.\d+)?|\.\d+$/.test(value) && value >= 0 && value <= 10))
return true;
return false;
-}
+};
WebInspector.DeviceModeModel._defaultMobileUserAgent = "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Mobile Safari/537.36";
WebInspector.DeviceModeModel._defaultMobileUserAgent = WebInspector.MultitargetNetworkManager.patchUserAgentWithChromeVersion(WebInspector.DeviceModeModel._defaultMobileUserAgent);
@@ -636,4 +636,4 @@ WebInspector.DeviceModeModel.prototype = {
{
WebInspector.MultitargetTouchModel.instance().setTouchEnabled(touchEnabled, mobile);
}
-}
+};

Powered by Google App Engine
This is Rietveld 408576698