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

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

Issue 1186083003: [DevTools] Move network throttling to network panel. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merged in device mode Created 5 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
« no previous file with comments | « Source/devtools/front_end/sdk/NetworkManager.js ('k') | 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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 715
716 /** 716 /**
717 * @return {number} 717 * @return {number}
718 */ 718 */
719 size: function() 719 size: function()
720 { 720 {
721 return this._selectElement.childElementCount; 721 return this._selectElement.childElementCount;
722 }, 722 },
723 723
724 /** 724 /**
725 * @return {!Array.<!Element>}
726 */
727 options: function()
728 {
729 return Array.prototype.slice.call(this._selectElement.children, 0);
730 },
731
732 /**
725 * @param {!Element} option 733 * @param {!Element} option
726 */ 734 */
727 addOption: function(option) 735 addOption: function(option)
728 { 736 {
729 this._selectElement.appendChild(option); 737 this._selectElement.appendChild(option);
730 }, 738 },
731 739
732 /** 740 /**
733 * @param {string} label 741 * @param {string} label
734 * @param {string=} title 742 * @param {string=} title
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 for (var i = 0; i < items.length; ++i) { 1027 for (var i = 0; i < items.length; ++i) {
1020 var item = items[i]; 1028 var item = items[i];
1021 if (item) 1029 if (item)
1022 this.appendToolbarItem(item); 1030 this.appendToolbarItem(item);
1023 } 1031 }
1024 } 1032 }
1025 }, 1033 },
1026 1034
1027 __proto__: WebInspector.Toolbar.prototype 1035 __proto__: WebInspector.Toolbar.prototype
1028 } 1036 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sdk/NetworkManager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698