Index: third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js |
index 2290fec752dd86e8bb5c170cfec0cbb0403fd882..b0dc5da2ea8d5803cfd2e846705cf77ea226b052 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js |
@@ -787,6 +787,33 @@ WebInspector.DebuggerModel.prototype = { |
this._breakpointResolvedEventTarget.removeEventListener(breakpointId, listener, thisObject); |
}, |
+ /** |
+ * @param {!Array<string>} patterns |
+ * @return {!Promise<boolean>} |
+ */ |
+ setBlackboxPatterns: function(patterns) |
+ { |
+ return new Promise(setBlackboxPatterns.bind(this)); |
dgozman
2016/04/20 02:06:40
Let's use lushnikov's wisdom!
|
+ |
+ /** |
+ * @param {function(?)} fulfill |
+ * @param {function(*)} reject |
+ * @this {WebInspector.DebuggerModel} |
+ */ |
+ function setBlackboxPatterns(fulfill, reject) |
+ { |
+ this._agent.setBlackboxPatterns(patterns, callback); |
+ /** |
+ * @param {?Protocol.Error} error |
+ */ |
+ function callback(error) |
+ { |
+ if (error) |
+ console.error(error); |
+ fulfill(!error); |
+ } |
+ } |
+ }, |
/** |
* @param {!WebInspector.Event} event |