Demo/bin/Debug/front_end/timeline/LayerViewHost.js

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*
 * Copyright 2015 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.
 */

/**
 * @interface
 */
WebInspector.LayerView = function()
{
}

WebInspector.LayerView.prototype = {
    /**
     * @param {?WebInspector.LayerView.Selection} selection
     */
    hoverObject: function(selection) { },

    /**
     * @param {?WebInspector.LayerView.Selection} selection
     */
    selectObject: function(selection) { },

    /**
     * @param {?WebInspector.LayerTreeBase} layerTree
     */
    setLayerTree: function(layerTree) { }
}


/**
 * @constructor
 * @param {!WebInspector.LayerView.Selection.Type} type
 * @param {!WebInspector.Layer} layer
 */
WebInspector.LayerView.Selection = function(type, layer)
{
    this._type = type;
    this._layer = layer;
}

/**
 * @enum {string}
 */
WebInspector.LayerView.Selection.Type = {
    Layer: "Layer",
    ScrollRect: "ScrollRect",
    Tile: "Tile",
}

WebInspector.LayerView.Selection.prototype = {
    /**
     * @return {!WebInspector.LayerView.Selection.Type}
     */
    type: function()
    {
        return this._type;
    },

后面还有 215 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。