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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js

Issue 2217783002: DevTools: use view locations in the elements and sources sidebars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) IBM Corp. 2009 All rights reserved. 2 * Copyright (C) IBM Corp. 2009 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
(...skipping 12 matching lines...) Expand all
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
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.View} 33 * @extends {WebInspector.SimpleView}
34 */ 34 */
35 WebInspector.WatchExpressionsSidebarPane = function() 35 WebInspector.WatchExpressionsSidebarPane = function()
36 { 36 {
37 WebInspector.View.call(this, WebInspector.UIString("Watch")); 37 WebInspector.SimpleView.call(this, WebInspector.UIString("Watch"));
38 this.registerRequiredCSS("components/objectValue.css"); 38 this.registerRequiredCSS("components/objectValue.css");
39 39
40 this._requiresUpdate = true; 40 this._requiresUpdate = true;
41 /** @type {!Array.<!WebInspector.WatchExpression>} */ 41 /** @type {!Array.<!WebInspector.WatchExpression>} */
42 this._watchExpressions = []; 42 this._watchExpressions = [];
43 this._watchExpressionsSetting = WebInspector.settings.createLocalSetting("wa tchExpressions", []); 43 this._watchExpressionsSetting = WebInspector.settings.createLocalSetting("wa tchExpressions", []);
44 44
45 var addButton = new WebInspector.ToolbarButton(WebInspector.UIString("Add ex pression"), "add-toolbar-item"); 45 var addButton = new WebInspector.ToolbarButton(WebInspector.UIString("Add ex pression"), "add-toolbar-item");
46 addButton.addEventListener("click", this._addButtonClicked.bind(this)); 46 addButton.addEventListener("click", this._addButtonClicked.bind(this));
47 this.addToolbarItem(addButton); 47 this.addToolbarItem(addButton);
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 watchExpression._populateContextMenu(contextMenu, event); 206 watchExpression._populateContextMenu(contextMenu, event);
207 }, 207 },
208 208
209 _deleteAllButtonClicked: function() 209 _deleteAllButtonClicked: function()
210 { 210 {
211 this._watchExpressions = []; 211 this._watchExpressions = [];
212 this._saveExpressions(); 212 this._saveExpressions();
213 this._rebuildWatchExpressions(); 213 this._rebuildWatchExpressions();
214 }, 214 },
215 215
216 __proto__: WebInspector.View.prototype 216 __proto__: WebInspector.SimpleView.prototype
217 } 217 }
218 218
219 /** 219 /**
220 * @constructor 220 * @constructor
221 * @extends {WebInspector.Object} 221 * @extends {WebInspector.Object}
222 * @param {?string} expression 222 * @param {?string} expression
223 * @param {!WebInspector.ObjectPropertiesSectionExpandController} expandControll er 223 * @param {!WebInspector.ObjectPropertiesSectionExpandController} expandControll er
224 * @param {!WebInspector.Linkifier} linkifier 224 * @param {!WebInspector.Linkifier} linkifier
225 */ 225 */
226 WebInspector.WatchExpression = function(expression, expandController, linkifier) 226 WebInspector.WatchExpression = function(expression, expandController, linkifier)
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 contextMenu.appendApplicableItems(this._result); 436 contextMenu.appendApplicableItems(this._result);
437 }, 437 },
438 438
439 _copyValueButtonClicked: function() 439 _copyValueButtonClicked: function()
440 { 440 {
441 InspectorFrontendHost.copyText(this._valueElement.textContent); 441 InspectorFrontendHost.copyText(this._valueElement.textContent);
442 }, 442 },
443 443
444 __proto__: WebInspector.Object.prototype 444 __proto__: WebInspector.Object.prototype
445 } 445 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698