| 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 /** | 186 /** |
| 187 * @param {string} actionId | 187 * @param {string} actionId |
| 188 * @return {!UI.ToolbarToggle} | 188 * @return {!UI.ToolbarToggle} |
| 189 */ | 189 */ |
| 190 static createActionButtonForId(actionId) { | 190 static createActionButtonForId(actionId) { |
| 191 const action = UI.actionRegistry.action(actionId); | 191 const action = UI.actionRegistry.action(actionId); |
| 192 return UI.Toolbar.createActionButton(/** @type {!UI.Action} */ (action)); | 192 return UI.Toolbar.createActionButton(/** @type {!UI.Action} */ (action)); |
| 193 } | 193 } |
| 194 | 194 |
| 195 /** | 195 /** |
| 196 * @return {!Element} |
| 197 */ |
| 198 gripElementForResize() { |
| 199 return this._contentElement; |
| 200 } |
| 201 |
| 202 /** |
| 196 * @param {boolean=} reverse | 203 * @param {boolean=} reverse |
| 197 * @param {boolean=} growVertically | 204 * @param {boolean=} growVertically |
| 198 */ | 205 */ |
| 199 makeWrappable(reverse, growVertically) { | 206 makeWrappable(reverse, growVertically) { |
| 200 this._contentElement.classList.add('wrappable'); | 207 this._contentElement.classList.add('wrappable'); |
| 201 this._reverse = !!reverse; | 208 this._reverse = !!reverse; |
| 202 if (reverse) | 209 if (reverse) |
| 203 this._contentElement.classList.add('wrappable-reverse'); | 210 this._contentElement.classList.add('wrappable-reverse'); |
| 204 if (growVertically) | 211 if (growVertically) |
| 205 this._contentElement.classList.add('toolbar-grow-vertical'); | 212 this._contentElement.classList.add('toolbar-grow-vertical'); |
| (...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1061 /** | 1068 /** |
| 1062 * @param {!Common.Setting} setting | 1069 * @param {!Common.Setting} setting |
| 1063 * @param {string=} tooltip | 1070 * @param {string=} tooltip |
| 1064 * @param {string=} alternateTitle | 1071 * @param {string=} alternateTitle |
| 1065 */ | 1072 */ |
| 1066 constructor(setting, tooltip, alternateTitle) { | 1073 constructor(setting, tooltip, alternateTitle) { |
| 1067 super(alternateTitle || setting.title() || '', tooltip); | 1074 super(alternateTitle || setting.title() || '', tooltip); |
| 1068 UI.SettingsUI.bindCheckbox(this.inputElement, setting); | 1075 UI.SettingsUI.bindCheckbox(this.inputElement, setting); |
| 1069 } | 1076 } |
| 1070 }; | 1077 }; |
| OLD | NEW |