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

Side by Side Diff: Source/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.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 // 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.SidebarPane} 7 * @extends {WebInspector.SidebarPane}
8 * @implements {WebInspector.TargetManager.Observer} 8 * @implements {WebInspector.TargetManager.Observer}
9 */ 9 */
10 WebInspector.EventListenerBreakpointsSidebarPane = function() 10 WebInspector.EventListenerBreakpointsSidebarPane = function()
11 { 11 {
12 WebInspector.SidebarPane.call(this, WebInspector.UIString("Event Listener Br eakpoints")); 12 WebInspector.SidebarPane.call(this, WebInspector.UIString("Event Listener Br eakpoints"));
13 this.registerRequiredCSS("components/breakpointsList.css"); 13 this.registerRequiredCSS("components/breakpointsList.css");
14 14
15 this._eventListenerBreakpointsSetting = WebInspector.settings.createLocalSet ting("eventListenerBreakpoints", []); 15 this._eventListenerBreakpointsSetting = WebInspector.settings.createSetting( "eventListenerBreakpoints", []);
16 16
17 this._categoriesTreeOutline = new TreeOutline(); 17 this._categoriesTreeOutline = new TreeOutline();
18 this._categoriesTreeOutline.element.tabIndex = 0; 18 this._categoriesTreeOutline.element.tabIndex = 0;
19 this._categoriesTreeOutline.element.classList.add("event-listener-breakpoint s"); 19 this._categoriesTreeOutline.element.classList.add("event-listener-breakpoint s");
20 this.bodyElement.appendChild(this._categoriesTreeOutline.element); 20 this.bodyElement.appendChild(this._categoriesTreeOutline.element);
21 21
22 this._categoryItems = []; 22 this._categoryItems = [];
23 // FIXME: uncomment following once inspector stops being drop targer in majo r ports. 23 // FIXME: uncomment following once inspector stops being drop targer in majo r ports.
24 // Otherwise, inspector page reacts on drop event and tries to load the even t data. 24 // Otherwise, inspector page reacts on drop event and tries to load the even t data.
25 // this._createCategory(WebInspector.UIString("Drag"), ["drag", "drop", "dra gstart", "dragend", "dragenter", "dragleave", "dragover"]); 25 // this._createCategory(WebInspector.UIString("Drag"), ["drag", "drop", "dra gstart", "dragend", "dragenter", "dragleave", "dragover"]);
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 var breakpoints = this._eventListenerBreakpointsSetting.get(); 339 var breakpoints = this._eventListenerBreakpointsSetting.get();
340 for (var i = 0; i < breakpoints.length; ++i) { 340 for (var i = 0; i < breakpoints.length; ++i) {
341 var breakpoint = breakpoints[i]; 341 var breakpoint = breakpoints[i];
342 if (breakpoint && typeof breakpoint.eventName === "string") 342 if (breakpoint && typeof breakpoint.eventName === "string")
343 this._setBreakpoint(breakpoint.eventName, breakpoint.targetNames , target); 343 this._setBreakpoint(breakpoint.eventName, breakpoint.targetNames , target);
344 } 344 }
345 }, 345 },
346 346
347 __proto__: WebInspector.SidebarPane.prototype 347 __proto__: WebInspector.SidebarPane.prototype
348 } 348 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sources/AdvancedSearchView.js ('k') | Source/devtools/front_end/sources/SourcesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698