| Index: Source/devtools/front_end/DartPanel.js
|
| diff --git a/Source/devtools/front_end/ExtensionPanel.js b/Source/devtools/front_end/DartPanel.js
|
| similarity index 90%
|
| copy from Source/devtools/front_end/ExtensionPanel.js
|
| copy to Source/devtools/front_end/DartPanel.js
|
| index ce8513bc19626d64b60523b382c4447f28af8b1f..66c5d7de5e3dbed4588c15b0fe6dd511b866bc1b 100644
|
| --- a/Source/devtools/front_end/ExtensionPanel.js
|
| +++ b/Source/devtools/front_end/DartPanel.js
|
| @@ -1,5 +1,5 @@
|
| /*
|
| - * Copyright (C) 2012 Google Inc. All rights reserved.
|
| + * Copyright (C) 2013 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
|
| @@ -34,17 +34,17 @@
|
| * @param {string} id
|
| * @param {string} pageURL
|
| */
|
| -WebInspector.ExtensionPanel = function(id, pageURL)
|
| +WebInspector.DartPanel = function(id, pageURL)
|
| {
|
| WebInspector.Panel.call(this, id);
|
| this.setHideOnDetach();
|
| this._statusBarItems = [];
|
| - var extensionView = new WebInspector.ExtensionView(id, pageURL, "extension panel");
|
| + var extensionView = new WebInspector.DartView(id, pageURL, "extension panel");
|
| extensionView.show(this.element);
|
| this.setDefaultFocusedElement(extensionView.defaultFocusedElement());
|
| }
|
|
|
| -WebInspector.ExtensionPanel.prototype = {
|
| +WebInspector.DartPanel.prototype = {
|
| defaultFocusedElement: function()
|
| {
|
| return WebInspector.View.prototype.defaultFocusedElement.call(this);
|
| @@ -65,7 +65,7 @@ WebInspector.ExtensionPanel.prototype = {
|
|
|
| searchCanceled: function(startingNewSearch)
|
| {
|
| - WebInspector.extensionServer.notifySearchAction(this.name, WebInspector.extensionAPI.panels.SearchAction.CancelSearch);
|
| +// WebInspector.extensionServer.notifySearchAction(this.name, WebInspector.extensionAPI.panels.SearchAction.CancelSearch);
|
| WebInspector.Panel.prototype.searchCanceled.apply(this, arguments);
|
| },
|
|
|
| @@ -75,18 +75,18 @@ WebInspector.ExtensionPanel.prototype = {
|
| */
|
| performSearch: function(query, shouldJump)
|
| {
|
| - WebInspector.extensionServer.notifySearchAction(this.name, WebInspector.extensionAPI.panels.SearchAction.PerformSearch, query);
|
| +// WebInspector.extensionServer.notifySearchAction(this.name, WebInspector.extensionAPI.panels.SearchAction.PerformSearch, query);
|
| },
|
|
|
| jumpToNextSearchResult: function()
|
| {
|
| - WebInspector.extensionServer.notifySearchAction(this.name, WebInspector.extensionAPI.panels.SearchAction.NextSearchResult);
|
| +// WebInspector.extensionServer.notifySearchAction(this.name, WebInspector.extensionAPI.panels.SearchAction.NextSearchResult);
|
| WebInspector.Panel.prototype.jumpToNextSearchResult.call(this);
|
| },
|
|
|
| jumpToPreviousSearchResult: function()
|
| {
|
| - WebInspector.extensionServer.notifySearchAction(this.name, WebInspector.extensionAPI.panels.SearchAction.PreviousSearchResult);
|
| +// WebInspector.extensionServer.notifySearchAction(this.name, WebInspector.extensionAPI.panels.SearchAction.PreviousSearchResult);
|
| WebInspector.Panel.prototype.jumpToPreviousSearchResult.call(this);
|
| },
|
|
|
|
|