| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 this._contextMenuHandler(contextMenu); | 738 this._contextMenuHandler(contextMenu); |
| 739 contextMenu.show(); | 739 contextMenu.show(); |
| 740 this._lastTriggerTime = Date.now(); | 740 this._lastTriggerTime = Date.now(); |
| 741 } | 741 } |
| 742 | 742 |
| 743 /** | 743 /** |
| 744 * @override | 744 * @override |
| 745 * @param {!Event} event | 745 * @param {!Event} event |
| 746 */ | 746 */ |
| 747 _clicked(event) { | 747 _clicked(event) { |
| 748 if (!this._triggerTimeout) | 748 if (this._triggerTimeout) |
| 749 return; | 749 clearTimeout(this._triggerTimeout); |
| 750 clearTimeout(this._triggerTimeout); | |
| 751 this._trigger(event); | 750 this._trigger(event); |
| 752 } | 751 } |
| 753 }; | 752 }; |
| 754 | 753 |
| 755 /** | 754 /** |
| 756 * @unrestricted | 755 * @unrestricted |
| 757 */ | 756 */ |
| 758 UI.ToolbarSettingToggle = class extends UI.ToolbarToggle { | 757 UI.ToolbarSettingToggle = class extends UI.ToolbarToggle { |
| 759 /** | 758 /** |
| 760 * @param {!Common.Setting} setting | 759 * @param {!Common.Setting} setting |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1054 /** | 1053 /** |
| 1055 * @param {!Common.Setting} setting | 1054 * @param {!Common.Setting} setting |
| 1056 * @param {string=} tooltip | 1055 * @param {string=} tooltip |
| 1057 * @param {string=} alternateTitle | 1056 * @param {string=} alternateTitle |
| 1058 */ | 1057 */ |
| 1059 constructor(setting, tooltip, alternateTitle) { | 1058 constructor(setting, tooltip, alternateTitle) { |
| 1060 super(alternateTitle || setting.title() || '', tooltip); | 1059 super(alternateTitle || setting.title() || '', tooltip); |
| 1061 UI.SettingsUI.bindCheckbox(this.inputElement, setting); | 1060 UI.SettingsUI.bindCheckbox(this.inputElement, setting); |
| 1062 } | 1061 } |
| 1063 }; | 1062 }; |
| OLD | NEW |