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: Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js

Issue 1088093002: Revert of DevTools: allow storing devtools preferences on the browser side. [blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 21 matching lines...) Expand all
32 * @constructor 32 * @constructor
33 * @extends {WebInspector.SidebarPane} 33 * @extends {WebInspector.SidebarPane}
34 */ 34 */
35 WebInspector.WatchExpressionsSidebarPane = function() 35 WebInspector.WatchExpressionsSidebarPane = function()
36 { 36 {
37 WebInspector.SidebarPane.call(this, WebInspector.UIString("Watch")); 37 WebInspector.SidebarPane.call(this, WebInspector.UIString("Watch"));
38 38
39 this._requiresUpdate = true; 39 this._requiresUpdate = true;
40 /** @type {!Array.<!WebInspector.WatchExpression>} */ 40 /** @type {!Array.<!WebInspector.WatchExpression>} */
41 this._watchExpressions = []; 41 this._watchExpressions = [];
42 this._watchExpressionsSetting = WebInspector.settings.createLocalSetting("wa tchExpressions", []); 42 this._watchExpressionsSetting = WebInspector.settings.createSetting("watchEx pressions", []);
43 43
44 this.registerRequiredCSS("components/objectValue.css"); 44 this.registerRequiredCSS("components/objectValue.css");
45 this.bodyElement.classList.add("vbox", "watch-expressions"); 45 this.bodyElement.classList.add("vbox", "watch-expressions");
46 this.bodyElement.addEventListener("contextmenu", this._contextMenu.bind(this ), false); 46 this.bodyElement.addEventListener("contextmenu", this._contextMenu.bind(this ), false);
47 47
48 var refreshButton = this.titleElement.createChild("button", "pane-title-butt on refresh"); 48 var refreshButton = this.titleElement.createChild("button", "pane-title-butt on refresh");
49 refreshButton.addEventListener("click", this._refreshButtonClicked.bind(this ), false); 49 refreshButton.addEventListener("click", this._refreshButtonClicked.bind(this ), false);
50 refreshButton.title = WebInspector.UIString("Refresh"); 50 refreshButton.title = WebInspector.UIString("Refresh");
51 51
52 var addButton = this.titleElement.createChild("button", "pane-title-button a dd"); 52 var addButton = this.titleElement.createChild("button", "pane-title-button a dd");
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 contextMenu.appendApplicableItems(this._result); 425 contextMenu.appendApplicableItems(this._result);
426 }, 426 },
427 427
428 _copyValueButtonClicked: function() 428 _copyValueButtonClicked: function()
429 { 429 {
430 InspectorFrontendHost.copyText(this._valueElement.textContent); 430 InspectorFrontendHost.copyText(this._valueElement.textContent);
431 }, 431 },
432 432
433 __proto__: WebInspector.Object.prototype 433 __proto__: WebInspector.Object.prototype
434 } 434 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698