| 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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 this.element.appendChild(dropdownArrowIcon); | 508 this.element.appendChild(dropdownArrowIcon); |
| 509 if (width) | 509 if (width) |
| 510 this.element.style.width = width + 'px'; | 510 this.element.style.width = width + 'px'; |
| 511 } | 511 } |
| 512 | 512 |
| 513 /** | 513 /** |
| 514 * @param {!Event} event | 514 * @param {!Event} event |
| 515 */ | 515 */ |
| 516 _clicked(event) { | 516 _clicked(event) { |
| 517 this.dispatchEventToListeners(UI.ToolbarButton.Events.Click, event); | 517 this.dispatchEventToListeners(UI.ToolbarButton.Events.Click, event); |
| 518 event.consume(); |
| 518 } | 519 } |
| 519 | 520 |
| 520 /** | 521 /** |
| 521 * @param {!Event} event | 522 * @param {!Event} event |
| 522 */ | 523 */ |
| 523 _mouseDown(event) { | 524 _mouseDown(event) { |
| 524 this.dispatchEventToListeners(UI.ToolbarButton.Events.MouseDown, event); | 525 this.dispatchEventToListeners(UI.ToolbarButton.Events.MouseDown, event); |
| 525 } | 526 } |
| 526 | 527 |
| 527 /** | 528 /** |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 return this.inputElement.checked; | 905 return this.inputElement.checked; |
| 905 } | 906 } |
| 906 | 907 |
| 907 /** | 908 /** |
| 908 * @param {boolean} value | 909 * @param {boolean} value |
| 909 */ | 910 */ |
| 910 setChecked(value) { | 911 setChecked(value) { |
| 911 this.inputElement.checked = value; | 912 this.inputElement.checked = value; |
| 912 } | 913 } |
| 913 }; | 914 }; |
| OLD | NEW |