Demo/bin/Debug/front_end/emulation/EmulatedDevices.js
(开头部分) 19KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @constructor
*/
WebInspector.EmulatedDevice = function()
{
/** @type {string} */
this.title = "";
/** @type {string} */
this.type = WebInspector.EmulatedDevice.Type.Unknown;
/** @type {!WebInspector.EmulatedDevice.Orientation} */
this.vertical = {width: 0, height: 0, outlineInsets: null, outlineImages: null};
/** @type {!WebInspector.EmulatedDevice.Orientation} */
this.horizontal = {width: 0, height: 0, outlineInsets: null, outlineImages: null};
/** @type {number} */
this.deviceScaleFactor = 1;
/** @type {!Array.<string>} */
this.capabilities = [WebInspector.EmulatedDevice.Capability.Touch, WebInspector.EmulatedDevice.Capability.Mobile];
/** @type {string} */
this.userAgent = "";
/** @type {!Array.<!WebInspector.EmulatedDevice.Mode>} */
this.modes = [];
/** @type {string} */
this._show = WebInspector.EmulatedDevice._Show.Default;
/** @type {boolean} */
this._showByDefault = true;
/** @type {?Runtime.Extension} */
this._extension = null;
}
/** @typedef {!{title: string, orientation: string, insets: !Insets, images: ?WebInspector.EmulatedDevice.Images}} */
WebInspector.EmulatedDevice.Mode;
/** @typedef {!{width: number, height: number, outlineInsets: ?Insets, outlineImages: ?WebInspector.EmulatedDevice.Images}} */
WebInspector.EmulatedDevice.Orientation;
WebInspector.EmulatedDevice.Horizontal = "horizontal";
WebInspector.EmulatedDevice.Vertical = "vertical";
WebInspector.EmulatedDevice.Type = {
Phone: "phone",
Tablet: "tablet",
Notebook: "notebook",
Desktop: "desktop",
Unknown: "unknown"
}
WebInspector.EmulatedDevice.Capability = {
Touch: "touch",
Mobile: "mobile"
}
WebInspector.EmulatedDevice._Show = {
Always: "Always",
Default: "Default",
后面还有 515 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。