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

Unified Diff: chrome_linux/resources/inspector/devtools_extension_api.js

Issue 85333005: Update reference builds to Chrome 32.0.1700.19 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/reference_builds/
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « chrome_linux/resources/inspector/devtools.html ('k') | chrome_linux/resources/inspector/elementsPanel.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_linux/resources/inspector/devtools_extension_api.js
===================================================================
--- chrome_linux/resources/inspector/devtools_extension_api.js (revision 237140)
+++ chrome_linux/resources/inspector/devtools_extension_api.js (working copy)
@@ -61,7 +61,7 @@
AuditStarted: "audit-started-",
ButtonClicked: "button-clicked-",
ConsoleMessageAdded: "console-message-added",
- ElementsPanelObjectSelected: "panel-objectSelected-elements",
+ PanelObjectSelected: "panel-objectSelected-",
NetworkRequestFinished: "network-request-finished",
OpenResource: "open-resource",
PanelSearch: "panel-search-",
@@ -274,7 +274,8 @@
function Panels()
{
var panels = {
- elements: new ElementsPanel()
+ elements: new ElementsPanel(),
+ sources: new SourcesPanel(),
};
function panelGetter(name)
@@ -344,7 +345,10 @@
function dispatchShowEvent(message)
{
var frameIndex = message.arguments[0];
- this._fire(window.parent.frames[frameIndex]);
+ if (typeof frameIndex === "number")
+ this._fire(window.parent.frames[frameIndex]);
+ else
+ this._fire();
}
this.onShown = new EventSink(events.ViewShown + id, dispatchShowEvent);
this.onHidden = new EventSink(events.ViewHidden + id);
@@ -353,9 +357,10 @@
/**
* @constructor
*/
-function PanelWithSidebarImpl(id)
+function PanelWithSidebarImpl(hostPanelName)
{
- this._id = id;
+ this._hostPanelName = hostPanelName;
+ this.onSelectionChanged = new EventSink(events.PanelObjectSelected + hostPanelName);
}
PanelWithSidebarImpl.prototype = {
@@ -364,7 +369,7 @@
var id = "extension-sidebar-" + extensionServer.nextObjectId();
var request = {
command: commands.CreateSidebarPane,
- panel: this._id,
+ panel: this._hostPanelName,
id: id,
title: title
};
@@ -384,13 +389,20 @@
*/
function ElementsPanel()
{
- var id = "elements";
- PanelWithSidebar.call(this, id);
- this.onSelectionChanged = new EventSink(events.ElementsPanelObjectSelected);
+ PanelWithSidebar.call(this, "elements");
}
/**
* @constructor
+ * @extends {PanelWithSidebar}
+ */
+function SourcesPanel()
+{
+ PanelWithSidebar.call(this, "sources");
+}
+
+/**
+ * @constructor
* @extends {ExtensionViewImpl}
*/
function ExtensionPanelImpl(id)
« no previous file with comments | « chrome_linux/resources/inspector/devtools.html ('k') | chrome_linux/resources/inspector/elementsPanel.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698