Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js

Issue 2580513002: [DevTools] Consume ToolbarButton click. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698