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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui_lazy/OverviewGrid.js

Issue 2530893003: [DevTools] Remove support for string event types. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/common/Object.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) 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
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
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 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/common/Object.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698