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

Side by Side Diff: Source/devtools/front_end/DartPanel.js

Issue 104433004: Enable VM service inside Dartium Renderer processes (Closed) Base URL: svn://svn.chromium.org/multivm/branches/1650/blink
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
11 * copyright notice, this list of conditions and the following disclaimer 11 * copyright notice, this list of conditions and the following disclaimer
12 * in the documentation and/or other materials provided with the 12 * in the documentation and/or other materials provided with the
(...skipping 14 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 /** 31 /**
32 * @constructor 32 * @constructor
33 * @extends {WebInspector.Panel} 33 * @extends {WebInspector.Panel}
34 * @param {string} id 34 * @param {string} id
35 * @param {string} pageURL 35 * @param {string} pageURL
36 */ 36 */
37 WebInspector.ExtensionPanel = function(id, pageURL) 37 WebInspector.DartPanel = function(id, pageURL)
38 { 38 {
39 WebInspector.Panel.call(this, id); 39 WebInspector.Panel.call(this, id);
40 this.setHideOnDetach(); 40 this.setHideOnDetach();
41 this._statusBarItems = []; 41 this._statusBarItems = [];
42 var extensionView = new WebInspector.ExtensionView(id, pageURL, "extension p anel"); 42 var extensionView = new WebInspector.DartView(id, pageURL, "extension panel" );
43 extensionView.show(this.element); 43 extensionView.show(this.element);
44 this.setDefaultFocusedElement(extensionView.defaultFocusedElement()); 44 this.setDefaultFocusedElement(extensionView.defaultFocusedElement());
45 } 45 }
46 46
47 WebInspector.ExtensionPanel.prototype = { 47 WebInspector.DartPanel.prototype = {
48 defaultFocusedElement: function() 48 defaultFocusedElement: function()
49 { 49 {
50 return WebInspector.View.prototype.defaultFocusedElement.call(this); 50 return WebInspector.View.prototype.defaultFocusedElement.call(this);
51 }, 51 },
52 52
53 get statusBarItems() 53 get statusBarItems()
54 { 54 {
55 return this._statusBarItems; 55 return this._statusBarItems;
56 }, 56 },
57 57
58 /** 58 /**
59 * @param {Element} element 59 * @param {Element} element
60 */ 60 */
61 addStatusBarItem: function(element) 61 addStatusBarItem: function(element)
62 { 62 {
63 this._statusBarItems.push(element); 63 this._statusBarItems.push(element);
64 }, 64 },
65 65
66 searchCanceled: function(startingNewSearch) 66 searchCanceled: function(startingNewSearch)
67 { 67 {
68 WebInspector.extensionServer.notifySearchAction(this.name, WebInspector. extensionAPI.panels.SearchAction.CancelSearch); 68 // WebInspector.extensionServer.notifySearchAction(this.name, WebInspecto r.extensionAPI.panels.SearchAction.CancelSearch);
69 WebInspector.Panel.prototype.searchCanceled.apply(this, arguments); 69 WebInspector.Panel.prototype.searchCanceled.apply(this, arguments);
70 }, 70 },
71 71
72 /** 72 /**
73 * @param {string} query 73 * @param {string} query
74 * @param {boolean} shouldJump 74 * @param {boolean} shouldJump
75 */ 75 */
76 performSearch: function(query, shouldJump) 76 performSearch: function(query, shouldJump)
77 { 77 {
78 WebInspector.extensionServer.notifySearchAction(this.name, WebInspector. extensionAPI.panels.SearchAction.PerformSearch, query); 78 // WebInspector.extensionServer.notifySearchAction(this.name, WebInspecto r.extensionAPI.panels.SearchAction.PerformSearch, query);
79 }, 79 },
80 80
81 jumpToNextSearchResult: function() 81 jumpToNextSearchResult: function()
82 { 82 {
83 WebInspector.extensionServer.notifySearchAction(this.name, WebInspector. extensionAPI.panels.SearchAction.NextSearchResult); 83 // WebInspector.extensionServer.notifySearchAction(this.name, WebInspecto r.extensionAPI.panels.SearchAction.NextSearchResult);
84 WebInspector.Panel.prototype.jumpToNextSearchResult.call(this); 84 WebInspector.Panel.prototype.jumpToNextSearchResult.call(this);
85 }, 85 },
86 86
87 jumpToPreviousSearchResult: function() 87 jumpToPreviousSearchResult: function()
88 { 88 {
89 WebInspector.extensionServer.notifySearchAction(this.name, WebInspector. extensionAPI.panels.SearchAction.PreviousSearchResult); 89 // WebInspector.extensionServer.notifySearchAction(this.name, WebInspecto r.extensionAPI.panels.SearchAction.PreviousSearchResult);
90 WebInspector.Panel.prototype.jumpToPreviousSearchResult.call(this); 90 WebInspector.Panel.prototype.jumpToPreviousSearchResult.call(this);
91 }, 91 },
92 92
93 __proto__: WebInspector.Panel.prototype 93 __proto__: WebInspector.Panel.prototype
94 } 94 }
95 95
96 /** 96 /**
97 * @constructor 97 * @constructor
98 * @param {string} id 98 * @param {string} id
99 * @param {string} iconURL 99 * @param {string} iconURL
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 if (!title) 238 if (!title)
239 section.headerElement.addStyleClass("hidden"); 239 section.headerElement.addStyleClass("hidden");
240 section.expanded = true; 240 section.expanded = true;
241 section.editable = false; 241 section.editable = false;
242 this._objectPropertiesView.element.appendChild(section.element); 242 this._objectPropertiesView.element.appendChild(section.element);
243 callback(); 243 callback();
244 }, 244 },
245 245
246 __proto__: WebInspector.SidebarPane.prototype 246 __proto__: WebInspector.SidebarPane.prototype
247 } 247 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698