Commit a9352c05 authored by apavlov@chromium.org's avatar apavlov@chromium.org

DevTools: Remove unused frontend code

R=eustas

Review URL: https://codereview.chromium.org/732013002

git-svn-id: svn://svn.chromium.org/blink/trunk@185429 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 18a6149f
......@@ -222,7 +222,6 @@
'front_end/ui/panelEnablerView.css',
'front_end/ui/pieChart.css',
'front_end/ui/ActionRegistry.js',
'front_end/ui/Checkbox.js',
'front_end/ui/CompletionDictionary.js',
'front_end/ui/Context.js',
'front_end/ui/ContextMenu.js',
......
......@@ -1129,31 +1129,6 @@ WebInspector.DeferredLayerTree.prototype = {
}
};
/**
* @constructor
* @extends {WebInspector.DeferredLayerTree}
* @param {?WebInspector.Target} target
* @param {!Array.<!LayerTreeAgent.Layer>} layers
*/
WebInspector.DeferredAgentLayerTree = function(target, layers)
{
WebInspector.DeferredLayerTree.call(this, target);
this._layers = layers;
}
WebInspector.DeferredAgentLayerTree.prototype = {
/**
* @param {function(!WebInspector.LayerTreeBase)} callback
*/
resolve: function(callback)
{
var result = new WebInspector.AgentLayerTree(this._target);
result.setLayers(this._layers, callback.bind(null, result));
},
__proto__: WebInspector.DeferredLayerTree.prototype
};
/**
* @constructor
* @implements {LayerTreeAgent.Dispatcher}
......
......@@ -153,13 +153,9 @@ WebInspector.IdentityFormatter.prototype = {
}
/**
* @constructor
* @typedef {{original: !Array.<number>, formatted: !Array.<number>}}
*/
WebInspector.FormatterMappingPayload = function()
{
this.original = [];
this.formatted = [];
}
WebInspector.FormatterMappingPayload;
/**
* @interface
......
......@@ -378,45 +378,6 @@ WebInspector.DeferredTracingLayerTree.prototype = {
};
/**
* @constructor
* @param {!Array.<!WebInspector.TimelineFrame>} frames
*/
WebInspector.FrameStatistics = function(frames)
{
this.frameCount = frames.length;
this.minDuration = Infinity;
this.maxDuration = 0;
this.timeByCategory = {};
this.startOffset = frames[0].startTimeOffset;
var lastFrame = frames[this.frameCount - 1];
this.endOffset = lastFrame.startTimeOffset + lastFrame.duration;
var totalDuration = 0;
var sumOfSquares = 0;
for (var i = 0; i < this.frameCount; ++i) {
var duration = frames[i].duration;
totalDuration += duration;
sumOfSquares += duration * duration;
this.minDuration = Math.min(this.minDuration, duration);
this.maxDuration = Math.max(this.maxDuration, duration);
WebInspector.FrameStatistics._aggregateTimeByCategory(this.timeByCategory, frames[i].timeByCategory);
}
this.average = totalDuration / this.frameCount;
var variance = sumOfSquares / this.frameCount - this.average * this.average;
this.stddev = Math.sqrt(variance);
}
/**
* @param {!Object} total
* @param {!Object} addend
*/
WebInspector.FrameStatistics._aggregateTimeByCategory = function(total, addend)
{
for (var category in addend)
total[category] = (total[category] || 0) + addend[category];
}
/**
* @constructor
* @param {number} startTime
......
/*
* Copyright (C) 2010 Google Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**
* @constructor
* @param {string} label
* @param {string} className
* @param {string=} tooltip
*/
WebInspector.Checkbox = function(label, className, tooltip)
{
this.element = createElementWithClass("label", className);
this._inputElement = this.element.createChild("input");
this._inputElement.type = "checkbox";
this.element.createTextChild(label);
if (tooltip)
this.element.title = tooltip;
}
WebInspector.Checkbox.prototype = {
set checked(checked)
{
this._inputElement.checked = checked;
},
get checked()
{
return this._inputElement.checked;
},
addEventListener: function(listener)
{
function listenerWrapper(event)
{
if (listener)
listener(event);
event.consume();
return true;
}
this._inputElement.addEventListener("click", listenerWrapper, false);
this.element.addEventListener("click", listenerWrapper, false);
}
}
......@@ -9,7 +9,6 @@
"treeoutline.js",
"ActionRegistry.js",
"ShortcutRegistry.js",
"Checkbox.js",
"CompletionDictionary.js",
"Context.js",
"ContextMenu.js",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment