| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 /** | 94 /** |
| 95 * @param {number} left | 95 * @param {number} left |
| 96 * @param {number} right | 96 * @param {number} right |
| 97 */ | 97 */ |
| 98 setWindow(left, right) { | 98 setWindow(left, right) { |
| 99 this._window._setWindow(left, right); | 99 this._window._setWindow(left, right); |
| 100 } | 100 } |
| 101 | 101 |
| 102 /** | 102 /** |
| 103 * @param {string} eventType | 103 * @param {symbol} eventType |
| 104 * @param {function(!Common.Event)} listener | 104 * @param {function(!Common.Event)} listener |
| 105 * @param {!Object=} thisObject | 105 * @param {!Object=} thisObject |
| 106 * @return {!Common.EventTarget.EventDescriptor} | 106 * @return {!Common.EventTarget.EventDescriptor} |
| 107 */ | 107 */ |
| 108 addEventListener(eventType, listener, thisObject) { | 108 addEventListener(eventType, listener, thisObject) { |
| 109 return this._window.addEventListener(eventType, listener, thisObject); | 109 return this._window.addEventListener(eventType, listener, thisObject); |
| 110 } | 110 } |
| 111 | 111 |
| 112 /** | 112 /** |
| 113 * @param {number} zoomFactor | 113 * @param {number} zoomFactor |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 position = Math.max(0, Math.min(position, this._width)); | 434 position = Math.max(0, Math.min(position, this._width)); |
| 435 if (position < this._startPosition) { | 435 if (position < this._startPosition) { |
| 436 this._windowSelector.style.left = position + 'px'; | 436 this._windowSelector.style.left = position + 'px'; |
| 437 this._windowSelector.style.right = this._width - this._startPosition + 'px
'; | 437 this._windowSelector.style.right = this._width - this._startPosition + 'px
'; |
| 438 } else { | 438 } else { |
| 439 this._windowSelector.style.left = this._startPosition + 'px'; | 439 this._windowSelector.style.left = this._startPosition + 'px'; |
| 440 this._windowSelector.style.right = this._width - position + 'px'; | 440 this._windowSelector.style.right = this._width - position + 'px'; |
| 441 } | 441 } |
| 442 } | 442 } |
| 443 }; | 443 }; |
| OLD | NEW |