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

Side by Side Diff: Source/devtools/front_end/sdk/NetworkUISourceCodeProvider.js

Issue 272613002: DevTools: implemented scriptFailedToParse protocol event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « Source/devtools/front_end/sdk/DebuggerModel.js ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 WebInspector.NetworkUISourceCodeProvider.prototype = { 45 WebInspector.NetworkUISourceCodeProvider.prototype = {
46 /** 46 /**
47 * @param {!WebInspector.Target} target 47 * @param {!WebInspector.Target} target
48 */ 48 */
49 targetAdded: function(target) 49 targetAdded: function(target)
50 { 50 {
51 target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel .EventTypes.ResourceAdded, this._resourceAdded, this); 51 target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel .EventTypes.ResourceAdded, this._resourceAdded, this);
52 target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel .EventTypes.MainFrameNavigated, this._mainFrameNavigated, this); 52 target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel .EventTypes.MainFrameNavigated, this._mainFrameNavigated, this);
53 target.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events. ParsedScriptSource, this._parsedScriptSource, this); 53 target.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events. ParsedScriptSource, this._parsedScriptSource, this);
54 target.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events. FailedToParseScriptSource, this._parsedScriptSource, this);
54 target.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.Style SheetAdded, this._styleSheetAdded, this); 55 target.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.Style SheetAdded, this._styleSheetAdded, this);
55 }, 56 },
56 57
57 /** 58 /**
58 * @param {!WebInspector.Target} target 59 * @param {!WebInspector.Target} target
59 */ 60 */
60 targetRemoved: function(target) 61 targetRemoved: function(target)
61 { 62 {
62 // FIXME: add workspace cleanup here. 63 // FIXME: add workspace cleanup here.
63 target.resourceTreeModel.removeEventListener(WebInspector.ResourceTreeMo del.EventTypes.ResourceAdded, this._resourceAdded, this); 64 target.resourceTreeModel.removeEventListener(WebInspector.ResourceTreeMo del.EventTypes.ResourceAdded, this._resourceAdded, this);
64 target.resourceTreeModel.removeEventListener(WebInspector.ResourceTreeMo del.EventTypes.MainFrameNavigated, this._mainFrameNavigated, this); 65 target.resourceTreeModel.removeEventListener(WebInspector.ResourceTreeMo del.EventTypes.MainFrameNavigated, this._mainFrameNavigated, this);
65 target.debuggerModel.removeEventListener(WebInspector.DebuggerModel.Even ts.ParsedScriptSource, this._parsedScriptSource, this); 66 target.debuggerModel.removeEventListener(WebInspector.DebuggerModel.Even ts.ParsedScriptSource, this._parsedScriptSource, this);
67 target.debuggerModel.removeEventListener(WebInspector.DebuggerModel.Even ts.FailedToParseScriptSource, this._parsedScriptSource, this);
66 target.cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.St yleSheetAdded, this._styleSheetAdded, this); 68 target.cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.St yleSheetAdded, this._styleSheetAdded, this);
67 }, 69 },
68 70
69 /** 71 /**
70 * @param {!WebInspector.Target} target 72 * @param {!WebInspector.Target} target
71 */ 73 */
72 _populate: function(target) 74 _populate: function(target)
73 { 75 {
74 /** 76 /**
75 * @param {!WebInspector.ResourceTreeFrame} frame 77 * @param {!WebInspector.ResourceTreeFrame} frame
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 } 268 }
267 269
268 this._resource.searchInContent(query, caseSensitive, isRegex, callback); 270 this._resource.searchInContent(query, caseSensitive, isRegex, callback);
269 } 271 }
270 } 272 }
271 273
272 /** 274 /**
273 * @type {!WebInspector.NetworkWorkspaceBinding} 275 * @type {!WebInspector.NetworkWorkspaceBinding}
274 */ 276 */
275 WebInspector.networkWorkspaceBinding; 277 WebInspector.networkWorkspaceBinding;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sdk/DebuggerModel.js ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698