| Index: third_party/WebKit/Source/devtools/front_end/main/Main.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/main/Main.js b/third_party/WebKit/Source/devtools/front_end/main/Main.js
|
| index 8c8748bfb858a998fbaaa0c822000a21fe0a9695..eaa5c05ceae1b06b0456bc8e3410d89e168613d5 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
|
| @@ -973,6 +973,23 @@ WebInspector.Main.InspectedNodeRevealer.prototype = {
|
| }
|
| }
|
|
|
| +/**
|
| + * @param {string} method
|
| + * @param {?Object} params
|
| + * @return {!Promise}
|
| + */
|
| +WebInspector.sendOverProtocol = function(method, params)
|
| +{
|
| + var connection = WebInspector.targetManager.mainTarget().connection();
|
| + return new Promise((resolve, reject) => {
|
| + connection.sendRawMessageForTesting(method, params, (err, result) => {
|
| + if (err)
|
| + return reject(err);
|
| + return resolve(result);
|
| + });
|
| + });
|
| +}
|
| +
|
| /**
|
| * @constructor
|
| * @extends {WebInspector.VBox}
|
|
|