| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 */ | 350 */ |
| 351 function diff_match_patch() { | 351 function diff_match_patch() { |
| 352 } | 352 } |
| 353 | 353 |
| 354 diff_match_patch.prototype = { | 354 diff_match_patch.prototype = { |
| 355 /** | 355 /** |
| 356 * @param {string} text1 | 356 * @param {string} text1 |
| 357 * @param {string} text2 | 357 * @param {string} text2 |
| 358 * @return {!Array.<!{0: number, 1: string}>} | 358 * @return {!Array.<!{0: number, 1: string}>} |
| 359 */ | 359 */ |
| 360 diff_main: function(text1, text2) {} | 360 diff_main: function(text1, text2) {}, |
| 361 |
| 362 /** |
| 363 * @param {!Array.<!{0: number, 1: string}>} diff |
| 364 */ |
| 365 diff_cleanupSemantic(diff) {} |
| 361 }; | 366 }; |
| 362 | 367 |
| 363 /** @constructor */ | 368 /** @constructor */ |
| 364 var Doc = function() {}; | 369 var Doc = function() {}; |
| 365 Doc.prototype = { | 370 Doc.prototype = { |
| 366 /** @type {number} */ | 371 /** @type {number} */ |
| 367 scrollLeft: 0, | 372 scrollLeft: 0, |
| 368 /** @type {number} */ | 373 /** @type {number} */ |
| 369 scrollTop: 0 | 374 scrollTop: 0 |
| 370 }; | 375 }; |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 /** @type {!Object} */ | 529 /** @type {!Object} */ |
| 525 CodeMirror.Pass; | 530 CodeMirror.Pass; |
| 526 CodeMirror.showHint = function(codeMirror, hintintFunction) {}; | 531 CodeMirror.showHint = function(codeMirror, hintintFunction) {}; |
| 527 CodeMirror.commands = {}; | 532 CodeMirror.commands = {}; |
| 528 CodeMirror.modes = {}; | 533 CodeMirror.modes = {}; |
| 529 CodeMirror.mimeModes = {}; | 534 CodeMirror.mimeModes = {}; |
| 530 CodeMirror.getMode = function(options, spec) {}; | 535 CodeMirror.getMode = function(options, spec) {}; |
| 531 CodeMirror.overlayMode = function(mode1, mode2, squashSpans) {}; | 536 CodeMirror.overlayMode = function(mode1, mode2, squashSpans) {}; |
| 532 CodeMirror.defineMode = function(modeName, modeConstructor) {}; | 537 CodeMirror.defineMode = function(modeName, modeConstructor) {}; |
| 533 CodeMirror.startState = function(mode) {}; | 538 CodeMirror.startState = function(mode) {}; |
| 539 CodeMirror.copyState = function(mode, state) {}; |
| 534 | 540 |
| 535 /** @typedef {{canceled: boolean, from: !CodeMirror.Pos, to: !CodeMirror.Pos, te
xt: string, origin: string, cancel: function()}} */ | 541 /** @typedef {{canceled: boolean, from: !CodeMirror.Pos, to: !CodeMirror.Pos, te
xt: string, origin: string, cancel: function()}} */ |
| 536 CodeMirror.BeforeChangeObject; | 542 CodeMirror.BeforeChangeObject; |
| 537 | 543 |
| 538 /** @typedef {{from: !CodeMirror.Pos, to: !CodeMirror.Pos, origin: string, text:
!Array.<string>, removed: !Array.<string>}} */ | 544 /** @typedef {{from: !CodeMirror.Pos, to: !CodeMirror.Pos, origin: string, text:
!Array.<string>, removed: !Array.<string>}} */ |
| 539 CodeMirror.ChangeObject; | 545 CodeMirror.ChangeObject; |
| 540 | 546 |
| 541 /** @constructor */ | 547 /** @constructor */ |
| 542 CodeMirror.Pos = function(line, ch) {}; | 548 CodeMirror.Pos = function(line, ch) {}; |
| 543 /** @type {number} */ | 549 /** @type {number} */ |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 CodeMirror.LineWidget.prototype = { | 604 CodeMirror.LineWidget.prototype = { |
| 599 clear: function() {} | 605 clear: function() {} |
| 600 }; | 606 }; |
| 601 | 607 |
| 602 /** @type {Object.<string, !Object.<string, string>>} */ | 608 /** @type {Object.<string, !Object.<string, string>>} */ |
| 603 CodeMirror.keyMap; | 609 CodeMirror.keyMap; |
| 604 | 610 |
| 605 /** @type {{scrollLeft: number, scrollTop: number}} */ | 611 /** @type {{scrollLeft: number, scrollTop: number}} */ |
| 606 CodeMirror.doc; | 612 CodeMirror.doc; |
| 607 | 613 |
| 614 /** |
| 615 * @param {string} mime |
| 616 * @param {string} mode |
| 617 */ |
| 618 CodeMirror.defineMIME = function(mime, mode) {}; |
| 619 |
| 608 /** @type {boolean} */ | 620 /** @type {boolean} */ |
| 609 window.dispatchStandaloneTestRunnerMessages; | 621 window.dispatchStandaloneTestRunnerMessages; |
| 610 | 622 |
| 611 /** | 623 /** |
| 612 * @param {Array.<Object>} keyframes | 624 * @param {Array.<Object>} keyframes |
| 613 * @param {number|Object} timing | 625 * @param {number|Object} timing |
| 614 * @return {Object} | 626 * @return {Object} |
| 615 */ | 627 */ |
| 616 Element.prototype.animate = function(keyframes, timing) {}; | 628 Element.prototype.animate = function(keyframes, timing) {}; |
| 617 | 629 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 782 var Terminal = function(params) {}; | 794 var Terminal = function(params) {}; |
| 783 | 795 |
| 784 Terminal.prototype = { | 796 Terminal.prototype = { |
| 785 fit: function() {}, | 797 fit: function() {}, |
| 786 linkify: function() {}, | 798 linkify: function() {}, |
| 787 /** @param {!Element} element */ | 799 /** @param {!Element} element */ |
| 788 open: function(element) {}, | 800 open: function(element) {}, |
| 789 /** @param {string} eventName * @param {!Function} handler */ | 801 /** @param {string} eventName * @param {!Function} handler */ |
| 790 on: function(eventName, handler) {} | 802 on: function(eventName, handler) {} |
| 791 }; | 803 }; |
| OLD | NEW |