Commit 59387703 authored by yurys@chromium.org's avatar yurys@chromium.org

DevTools: Nuke Timeline extension api

Timeline extension API is removed from DevTools front-end.

BUG=403684
R=pfeldman@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180350 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 1333b4a5
......@@ -67,12 +67,6 @@ RUNNING TEST: extension_testAPI
removeListener : <function>
}
}
timeline : {
onEventRecorded : {
addListener : <function>
removeListener : <function>
}
}
}
All tests done.
......@@ -66,7 +66,6 @@ function defineCommonExtensionSymbols(apiPrivate)
PanelSearch: "panel-search-",
ResourceAdded: "resource-added",
ResourceContentCommitted: "resource-content-committed",
TimelineEventRecorded: "timeline-event-recorded",
ViewShown: "view-shown-",
ViewHidden: "view-hidden-"
};
......@@ -189,7 +188,6 @@ function InspectorExtensionAPI()
this.panels = new Panels();
this.network = new Network();
defineDeprecatedProperty(this, "webInspector", "resources", "network");
this.timeline = new Timeline();
this.console = new ConsoleAPI();
}
......@@ -442,7 +440,6 @@ var ExtensionSidebarPane = declareInterfaceClass(ExtensionSidebarPaneImpl);
var PanelWithSidebar = declareInterfaceClass(PanelWithSidebarImpl);
var Request = declareInterfaceClass(RequestImpl);
var Resource = declareInterfaceClass(ResourceImpl);
var Timeline = declareInterfaceClass(TimelineImpl);
/**
* @constructor
......@@ -837,14 +834,6 @@ ResourceImpl.prototype = {
}
}
/**
* @constructor
*/
function TimelineImpl()
{
this.onEventRecorded = new EventSink(events.TimelineEventRecorded);
}
var keyboardEventRequestQueue = [];
var forwardTimer = null;
......
......@@ -692,31 +692,6 @@ WebInspector.ExtensionServer.prototype = {
this._notifySourceFrameSelectionChanged);
this._registerResourceContentCommittedHandler(this._notifyUISourceCodeContentCommitted);
/**
* @this {WebInspector.ExtensionServer}
*/
function onTimelineSubscriptionStarted()
{
var mainTarget = WebInspector.targetManager.mainTarget();
mainTarget.timelineManager.addEventListener(WebInspector.TimelineManager.EventTypes.TimelineEventRecorded,
this._notifyTimelineEventRecorded, this);
mainTarget.timelineManager.start();
}
/**
* @this {WebInspector.ExtensionServer}
*/
function onTimelineSubscriptionStopped()
{
var mainTarget = WebInspector.targetManager.mainTarget();
mainTarget.timelineManager.stop(function() {});
mainTarget.timelineManager.removeEventListener(WebInspector.TimelineManager.EventTypes.TimelineEventRecorded,
this._notifyTimelineEventRecorded, this);
}
this._registerSubscriptionHandler(WebInspector.extensionAPI.Events.TimelineEventRecorded,
onTimelineSubscriptionStarted.bind(this), onTimelineSubscriptionStopped.bind(this));
WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.InspectedURLChanged,
this._inspectedURLChanged, this);
......@@ -776,11 +751,6 @@ WebInspector.ExtensionServer.prototype = {
this._postNotification(WebInspector.extensionAPI.Events.PanelObjectSelected + "elements");
},
_notifyTimelineEventRecorded: function(event)
{
this._postNotification(WebInspector.extensionAPI.Events.TimelineEventRecorded, event.data);
},
/**
* @param {!Array.<!ExtensionDescriptor>} extensionInfos
*/
......
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