| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 /** | 123 /** |
| 124 * @param {number=} positionX | 124 * @param {number=} positionX |
| 125 * @param {number=} positionY | 125 * @param {number=} positionY |
| 126 */ | 126 */ |
| 127 setPosition(positionX, positionY) { | 127 setPosition(positionX, positionY) { |
| 128 this._defaultPositionX = positionX; | 128 this._defaultPositionX = positionX; |
| 129 this._defaultPositionY = positionY; | 129 this._defaultPositionY = positionY; |
| 130 } | 130 } |
| 131 | 131 |
| 132 /** | 132 /** |
| 133 * @param {!Size} size | 133 * @param {!UI.Size} size |
| 134 */ | 134 */ |
| 135 setMaxSize(size) { | 135 setMaxSize(size) { |
| 136 this._maxSize = size; | 136 this._maxSize = size; |
| 137 } | 137 } |
| 138 | 138 |
| 139 /** | 139 /** |
| 140 * @param {boolean} wraps | 140 * @param {boolean} wraps |
| 141 */ | 141 */ |
| 142 setWrapsContent(wraps) { | 142 setWrapsContent(wraps) { |
| 143 this.element.classList.toggle('wraps-content', wraps); | 143 this.element.classList.toggle('wraps-content', wraps); |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 } | 241 } |
| 242 } | 242 } |
| 243 }; | 243 }; |
| 244 | 244 |
| 245 | 245 |
| 246 /** @type {?Element} */ | 246 /** @type {?Element} */ |
| 247 UI.Dialog._previousFocusedElement = null; | 247 UI.Dialog._previousFocusedElement = null; |
| 248 | 248 |
| 249 /** @type {?UI.Widget} */ | 249 /** @type {?UI.Widget} */ |
| 250 UI.Dialog._modalHostView = null; | 250 UI.Dialog._modalHostView = null; |
| OLD | NEW |