| Index: Source/devtools/front_end/HandlerRegistry.js
|
| diff --git a/Source/devtools/front_end/HandlerRegistry.js b/Source/devtools/front_end/HandlerRegistry.js
|
| index d8c4fffa58b8e3c49c4546a72d53feb1ec3ba7e4..e1ad731ac7590f40eb97faf8c0af31b224f55902 100644
|
| --- a/Source/devtools/front_end/HandlerRegistry.js
|
| +++ b/Source/devtools/front_end/HandlerRegistry.js
|
| @@ -278,6 +278,32 @@ WebInspector.HandlerRegistry.LinkHandler.prototype = {
|
| }
|
|
|
| /**
|
| + * @constructor
|
| + * @extends {WebInspector.UISettingDelegate}
|
| + */
|
| +WebInspector.HandlerRegistry.OpenAnchorLocationSettingDelegate = function()
|
| +{
|
| + WebInspector.UISettingDelegate.call(this);
|
| +}
|
| +
|
| +WebInspector.HandlerRegistry.OpenAnchorLocationSettingDelegate.prototype = {
|
| + /**
|
| + * @override
|
| + * @return {?Element}
|
| + */
|
| + settingElement: function()
|
| + {
|
| + if (!WebInspector.openAnchorLocationRegistry.handlerNames.length)
|
| + return null;
|
| +
|
| + var handlerSelector = new WebInspector.HandlerSelector(WebInspector.openAnchorLocationRegistry);
|
| + return WebInspector.SettingsUI.createCustomSetting(WebInspector.UIString("Open links in"), handlerSelector.element);
|
| + },
|
| +
|
| + __proto__: WebInspector.UISettingDelegate.prototype
|
| +}
|
| +
|
| +/**
|
| * @type {!WebInspector.HandlerRegistry}
|
| */
|
| WebInspector.openAnchorLocationRegistry;
|
|
|