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

Side by Side Diff: Source/devtools/front_end/ui/StatusBarButton.js

Issue 283063003: DevTools: Implement extension-based status bar buttons (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated patch Created 6 years, 6 months 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 | Annotate | Revision Log
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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 break; 427 break;
428 } 428 }
429 } 429 }
430 } 430 }
431 }, 431 },
432 432
433 __proto__: WebInspector.StatusBarItem.prototype 433 __proto__: WebInspector.StatusBarItem.prototype
434 } 434 }
435 435
436 /** 436 /**
437 * @interface
438 */
439 WebInspector.StatusBarButton.Provider = function()
440 {
441 }
442
443 WebInspector.StatusBarButton.Provider.prototype = {
444 /**
445 * @return {?WebInspector.StatusBarButton}
446 */
447 button: function() {}
448 }
449
450 /**
437 * @constructor 451 * @constructor
438 * @extends {WebInspector.StatusBarItem} 452 * @extends {WebInspector.StatusBarItem}
439 * @param {?function(!Event)} changeHandler 453 * @param {?function(!Event)} changeHandler
440 * @param {string=} className 454 * @param {string=} className
441 */ 455 */
442 WebInspector.StatusBarComboBox = function(changeHandler, className) 456 WebInspector.StatusBarComboBox = function(changeHandler, className)
443 { 457 {
444 WebInspector.StatusBarItem.call(this, "span"); 458 WebInspector.StatusBarItem.call(this, "span");
445 this.element.className = "status-bar-select-container"; 459 this.element.className = "status-bar-select-container";
446 460
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 var options = []; 689 var options = [];
676 for (var index = 0; index < this._states.length; index++) { 690 for (var index = 0; index < this._states.length; index++) {
677 if (this._states[index] !== this.state && this._states[index] !== th is._currentState) 691 if (this._states[index] !== this.state && this._states[index] !== th is._currentState)
678 options.push(this._buttons[index]); 692 options.push(this._buttons[index]);
679 } 693 }
680 return options; 694 return options;
681 }, 695 },
682 696
683 __proto__: WebInspector.StatusBarButton.prototype 697 __proto__: WebInspector.StatusBarButton.prototype
684 } 698 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698