Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / devtools / front_end / HandlerRegistry.js
index 6e0f45f..3ecb48a 100644 (file)
@@ -242,6 +242,26 @@ WebInspector.HandlerRegistry.ContextMenuProvider.prototype = {
 }
 
 /**
+ * @constructor
+ * @implements {WebInspector.Linkifier.LinkHandler}
+ */
+WebInspector.HandlerRegistry.LinkHandler = function()
+{
+}
+
+WebInspector.HandlerRegistry.LinkHandler.prototype = {
+    /**
+     * @param {string} url
+     * @param {number=} lineNumber
+     * @return {boolean}
+     */
+    handleLink: function(url, lineNumber)
+    {
+        return WebInspector.openAnchorLocationRegistry.dispatch({ url: url, lineNumber: lineNumber});
+    }
+}
+
+/**
  * @type {!WebInspector.HandlerRegistry}
  */
 WebInspector.openAnchorLocationRegistry;