| 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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 /** | 600 /** |
| 601 * @unrestricted | 601 * @unrestricted |
| 602 */ | 602 */ |
| 603 WebInspector.EventListener = class extends WebInspector.SDKObject { | 603 WebInspector.EventListener = class extends WebInspector.SDKObject { |
| 604 /** | 604 /** |
| 605 * @param {!WebInspector.Target} target | 605 * @param {!WebInspector.Target} target |
| 606 * @param {!WebInspector.RemoteObject} eventTarget | 606 * @param {!WebInspector.RemoteObject} eventTarget |
| 607 * @param {string} type | 607 * @param {string} type |
| 608 * @param {boolean} useCapture | 608 * @param {boolean} useCapture |
| 609 * @param {boolean} passive | 609 * @param {boolean} passive |
| 610 * @param {boolean} once |
| 610 * @param {?WebInspector.RemoteObject} handler | 611 * @param {?WebInspector.RemoteObject} handler |
| 611 * @param {?WebInspector.RemoteObject} originalHandler | 612 * @param {?WebInspector.RemoteObject} originalHandler |
| 612 * @param {!WebInspector.DebuggerModel.Location} location | 613 * @param {!WebInspector.DebuggerModel.Location} location |
| 613 * @param {?WebInspector.RemoteObject} removeFunction | 614 * @param {?WebInspector.RemoteObject} removeFunction |
| 614 * @param {string=} listenerType | 615 * @param {string=} listenerType |
| 615 */ | 616 */ |
| 616 constructor( | 617 constructor( |
| 617 target, | 618 target, |
| 618 eventTarget, | 619 eventTarget, |
| 619 type, | 620 type, |
| 620 useCapture, | 621 useCapture, |
| 621 passive, | 622 passive, |
| 623 once, |
| 622 handler, | 624 handler, |
| 623 originalHandler, | 625 originalHandler, |
| 624 location, | 626 location, |
| 625 removeFunction, | 627 removeFunction, |
| 626 listenerType) { | 628 listenerType) { |
| 627 super(target); | 629 super(target); |
| 628 this._eventTarget = eventTarget; | 630 this._eventTarget = eventTarget; |
| 629 this._type = type; | 631 this._type = type; |
| 630 this._useCapture = useCapture; | 632 this._useCapture = useCapture; |
| 631 this._passive = passive; | 633 this._passive = passive; |
| 634 this._once = once; |
| 632 this._handler = handler; | 635 this._handler = handler; |
| 633 this._originalHandler = originalHandler || handler; | 636 this._originalHandler = originalHandler || handler; |
| 634 this._location = location; | 637 this._location = location; |
| 635 var script = location.script(); | 638 var script = location.script(); |
| 636 this._sourceURL = script ? script.contentURL() : ''; | 639 this._sourceURL = script ? script.contentURL() : ''; |
| 637 this._removeFunction = removeFunction; | 640 this._removeFunction = removeFunction; |
| 638 this._listenerType = listenerType || 'normal'; | 641 this._listenerType = listenerType || 'normal'; |
| 639 } | 642 } |
| 640 | 643 |
| 641 /** | 644 /** |
| (...skipping 11 matching lines...) Expand all Loading... |
| 653 } | 656 } |
| 654 | 657 |
| 655 /** | 658 /** |
| 656 * @return {boolean} | 659 * @return {boolean} |
| 657 */ | 660 */ |
| 658 passive() { | 661 passive() { |
| 659 return this._passive; | 662 return this._passive; |
| 660 } | 663 } |
| 661 | 664 |
| 662 /** | 665 /** |
| 666 * @return {boolean} |
| 667 */ |
| 668 once() { |
| 669 return this._once; |
| 670 } |
| 671 |
| 672 /** |
| 663 * @return {?WebInspector.RemoteObject} | 673 * @return {?WebInspector.RemoteObject} |
| 664 */ | 674 */ |
| 665 handler() { | 675 handler() { |
| 666 return this._handler; | 676 return this._handler; |
| 667 } | 677 } |
| 668 | 678 |
| 669 /** | 679 /** |
| 670 * @return {!WebInspector.DebuggerModel.Location} | 680 * @return {!WebInspector.DebuggerModel.Location} |
| 671 */ | 681 */ |
| 672 location() { | 682 location() { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 this._type === 'wheel'; | 793 this._type === 'wheel'; |
| 784 } | 794 } |
| 785 | 795 |
| 786 /** | 796 /** |
| 787 * @return {boolean} | 797 * @return {boolean} |
| 788 */ | 798 */ |
| 789 isNormalListenerType() { | 799 isNormalListenerType() { |
| 790 return this._listenerType === 'normal'; | 800 return this._listenerType === 'normal'; |
| 791 } | 801 } |
| 792 }; | 802 }; |
| OLD | NEW |