| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 makeBlueOnHover: function() | 66 makeBlueOnHover: function() |
| 67 { | 67 { |
| 68 this._contentElement.classList.add("toolbar-blue-on-hover"); | 68 this._contentElement.classList.add("toolbar-blue-on-hover"); |
| 69 }, | 69 }, |
| 70 | 70 |
| 71 makeToggledGray: function() | 71 makeToggledGray: function() |
| 72 { | 72 { |
| 73 this._contentElement.classList.add("toolbar-toggled-gray"); | 73 this._contentElement.classList.add("toolbar-toggled-gray"); |
| 74 }, | 74 }, |
| 75 | 75 |
| 76 renderAsLinks: function() |
| 77 { |
| 78 this._contentElement.classList.add("toolbar-render-as-links"); |
| 79 }, |
| 80 |
| 76 /** | 81 /** |
| 77 * @param {boolean} enabled | 82 * @param {boolean} enabled |
| 78 */ | 83 */ |
| 79 setEnabled: function(enabled) | 84 setEnabled: function(enabled) |
| 80 { | 85 { |
| 81 for (var item of this._items) | 86 for (var item of this._items) |
| 82 item.setEnabled(enabled); | 87 item.setEnabled(enabled); |
| 83 }, | 88 }, |
| 84 | 89 |
| 85 /** | 90 /** |
| (...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 /** | 975 /** |
| 971 * @return {!Promise} | 976 * @return {!Promise} |
| 972 */ | 977 */ |
| 973 onLoad: function() | 978 onLoad: function() |
| 974 { | 979 { |
| 975 return this._promise; | 980 return this._promise; |
| 976 }, | 981 }, |
| 977 | 982 |
| 978 __proto__: WebInspector.Toolbar.prototype | 983 __proto__: WebInspector.Toolbar.prototype |
| 979 } | 984 } |
| OLD | NEW |