| Index: Source/devtools/front_end/main/Main.js
|
| diff --git a/Source/devtools/front_end/main/Main.js b/Source/devtools/front_end/main/Main.js
|
| index 11f3e64dc3694ccafeef047e2e8bdb0f805e05be..49c7588214c519dbb9a2160ba1dda5a26ab717c0 100644
|
| --- a/Source/devtools/front_end/main/Main.js
|
| +++ b/Source/devtools/front_end/main/Main.js
|
| @@ -370,6 +370,7 @@ WebInspector.Main.prototype = {
|
| WebInspector.actionRegistry = new WebInspector.ActionRegistry();
|
| WebInspector.shortcutRegistry = new WebInspector.ShortcutRegistry(WebInspector.actionRegistry);
|
| this._registerForwardedShortcuts();
|
| + this._registerMessageSinkListener();
|
|
|
| WebInspector.inspectorView = new WebInspector.InspectorView();
|
|
|
| @@ -431,6 +432,21 @@ WebInspector.Main.prototype = {
|
| InspectorFrontendHost.setWhitelistedShortcuts(JSON.stringify(actionKeys));
|
| },
|
|
|
| + _registerMessageSinkListener: function()
|
| + {
|
| + WebInspector.messageSink.addEventListener(WebInspector.MessageSink.Events.MessageAdded, messageAdded);
|
| +
|
| + /**
|
| + * @param {!WebInspector.Event} event
|
| + */
|
| + function messageAdded(event)
|
| + {
|
| + var message = /** @type {!WebInspector.MessageSink.Message} */ (event.data);
|
| + if (message.show)
|
| + WebInspector.actionRegistry.execute("console.show");
|
| + }
|
| + },
|
| +
|
| _documentClick: function(event)
|
| {
|
| var anchor = event.target.enclosingNodeOrSelfWithNodeName("a");
|
|
|