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

Side by Side Diff: Source/devtools/front_end/sources/XHRBreakpointsSidebarPane.js

Issue 1085253003: Revert of 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 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.BreakpointsSidebarPaneBase} 7 * @extends {WebInspector.BreakpointsSidebarPaneBase}
8 * @implements {WebInspector.TargetManager.Observer} 8 * @implements {WebInspector.TargetManager.Observer}
9 */ 9 */
10 WebInspector.XHRBreakpointsSidebarPane = function() 10 WebInspector.XHRBreakpointsSidebarPane = function()
11 { 11 {
12 WebInspector.BreakpointsSidebarPaneBase.call(this, WebInspector.UIString("XH R Breakpoints")); 12 WebInspector.BreakpointsSidebarPaneBase.call(this, WebInspector.UIString("XH R Breakpoints"));
13 this._xhrBreakpointsSetting = WebInspector.settings.createSetting("xhrBreakp oints", []); 13 this._xhrBreakpointsSetting = WebInspector.settings.createLocalSetting("xhrB reakpoints", []);
14 14
15 /** @type {!Map.<string, !Element>} */ 15 /** @type {!Map.<string, !Element>} */
16 this._breakpointElements = new Map(); 16 this._breakpointElements = new Map();
17 17
18 var addButton = this.titleElement.createChild("button", "pane-title-button a dd"); 18 var addButton = this.titleElement.createChild("button", "pane-title-button a dd");
19 addButton.title = WebInspector.UIString("Add XHR breakpoint"); 19 addButton.title = WebInspector.UIString("Add XHR breakpoint");
20 addButton.addEventListener("click", this._addButtonClicked.bind(this), false ); 20 addButton.addEventListener("click", this._addButtonClicked.bind(this), false );
21 21
22 this.emptyElement.addEventListener("contextmenu", this._emptyElementContextM enu.bind(this), true); 22 this.emptyElement.addEventListener("contextmenu", this._emptyElementContextM enu.bind(this), true);
23 23
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 var breakpoints = this._xhrBreakpointsSetting.get(); 250 var breakpoints = this._xhrBreakpointsSetting.get();
251 for (var i = 0; i < breakpoints.length; ++i) { 251 for (var i = 0; i < breakpoints.length; ++i) {
252 var breakpoint = breakpoints[i]; 252 var breakpoint = breakpoints[i];
253 if (breakpoint && typeof breakpoint.url === "string") 253 if (breakpoint && typeof breakpoint.url === "string")
254 this._setBreakpoint(breakpoint.url, breakpoint.enabled, target); 254 this._setBreakpoint(breakpoint.url, breakpoint.enabled, target);
255 } 255 }
256 }, 256 },
257 257
258 __proto__: WebInspector.BreakpointsSidebarPaneBase.prototype 258 __proto__: WebInspector.BreakpointsSidebarPaneBase.prototype
259 } 259 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js ('k') | Source/devtools/front_end/ui/SplitView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698