| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 * @interface | 489 * @interface |
| 490 */ | 490 */ |
| 491 Components.Linkifier.LinkHandler = function() {}; | 491 Components.Linkifier.LinkHandler = function() {}; |
| 492 | 492 |
| 493 Components.Linkifier.LinkHandler.prototype = { | 493 Components.Linkifier.LinkHandler.prototype = { |
| 494 /** | 494 /** |
| 495 * @param {string} url | 495 * @param {string} url |
| 496 * @param {number=} lineNumber | 496 * @param {number=} lineNumber |
| 497 * @return {boolean} | 497 * @return {boolean} |
| 498 */ | 498 */ |
| 499 handleLink: function(url, lineNumber) {} | 499 handleLink(url, lineNumber) {} |
| 500 }; | 500 }; |
| 501 | 501 |
| 502 /** | 502 /** |
| 503 * @extends {Common.EventTarget} | 503 * @extends {Common.EventTarget} |
| 504 * @interface | 504 * @interface |
| 505 */ | 505 */ |
| 506 Components.LinkDecorator = function() {}; | 506 Components.LinkDecorator = function() {}; |
| 507 | 507 |
| 508 Components.LinkDecorator.prototype = { | 508 Components.LinkDecorator.prototype = { |
| 509 /** | 509 /** |
| 510 * @param {!Workspace.UISourceCode} uiSourceCode | 510 * @param {!Workspace.UISourceCode} uiSourceCode |
| 511 * @return {?UI.Icon} | 511 * @return {?UI.Icon} |
| 512 */ | 512 */ |
| 513 linkIcon: function(uiSourceCode) {} | 513 linkIcon(uiSourceCode) {} |
| 514 }; | 514 }; |
| 515 | 515 |
| 516 Components.LinkDecorator.Events = { | 516 Components.LinkDecorator.Events = { |
| 517 LinkIconChanged: Symbol('LinkIconChanged') | 517 LinkIconChanged: Symbol('LinkIconChanged') |
| 518 }; | 518 }; |
| 519 | 519 |
| 520 /** | 520 /** |
| 521 * @param {string} string | 521 * @param {string} string |
| 522 * @param {function(string,string,number=,number=):!Node} linkifier | 522 * @param {function(string,string,number=,number=):!Node} linkifier |
| 523 * @return {!DocumentFragment} | 523 * @return {!DocumentFragment} |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 | 609 |
| 610 /** | 610 /** |
| 611 * @param {!SDK.NetworkRequest} request | 611 * @param {!SDK.NetworkRequest} request |
| 612 * @return {!Element} | 612 * @return {!Element} |
| 613 */ | 613 */ |
| 614 Components.linkifyRequestAsNode = function(request) { | 614 Components.linkifyRequestAsNode = function(request) { |
| 615 var anchor = UI.createExternalLink(request.url); | 615 var anchor = UI.createExternalLink(request.url); |
| 616 anchor.requestId = request.requestId; | 616 anchor.requestId = request.requestId; |
| 617 return anchor; | 617 return anchor; |
| 618 }; | 618 }; |
| OLD | NEW |