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

Side by Side Diff: Source/devtools/front_end/components_lazy/FilmStripView.js

Issue 1356363002: [DevTools] Remove relativeToElement from Dialog. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/devtools/front_end/devices/DevicesDialog.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.HBox} 7 * @extends {WebInspector.HBox}
8 */ 8 */
9 WebInspector.FilmStripView = function() 9 WebInspector.FilmStripView = function()
10 { 10 {
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 var footerElement = this._contentElement.createChild("div", "filmstrip-dialo g-footer"); 237 var footerElement = this._contentElement.createChild("div", "filmstrip-dialo g-footer");
238 footerElement.createChild("div", "flex-auto"); 238 footerElement.createChild("div", "flex-auto");
239 var prevButton = createTextButton("\u25C0", this._onPrevFrame.bind(this), un defined, WebInspector.UIString("Previous frame")); 239 var prevButton = createTextButton("\u25C0", this._onPrevFrame.bind(this), un defined, WebInspector.UIString("Previous frame"));
240 footerElement.appendChild(prevButton); 240 footerElement.appendChild(prevButton);
241 this._timeLabel = footerElement.createChild("div", "filmstrip-dialog-label") ; 241 this._timeLabel = footerElement.createChild("div", "filmstrip-dialog-label") ;
242 var nextButton = createTextButton("\u25B6", this._onNextFrame.bind(this), un defined, WebInspector.UIString("Next frame")); 242 var nextButton = createTextButton("\u25B6", this._onNextFrame.bind(this), un defined, WebInspector.UIString("Next frame"));
243 footerElement.appendChild(nextButton); 243 footerElement.appendChild(nextButton);
244 footerElement.createChild("div", "flex-auto"); 244 footerElement.createChild("div", "flex-auto");
245 245
246 this._contentElement.addEventListener("keydown", this._keyDown.bind(this), f alse); 246 this._contentElement.addEventListener("keydown", this._keyDown.bind(this), f alse);
247 this._render().then(WebInspector.Dialog.show.bind(null, null, this)); 247 this._render().then(WebInspector.Dialog.show.bind(null, this));
248 } 248 }
249 249
250 WebInspector.FilmStripView.DialogDelegate.prototype = { 250 WebInspector.FilmStripView.DialogDelegate.prototype = {
251 /** 251 /**
252 * @override 252 * @override
253 */ 253 */
254 focus: function() 254 focus: function()
255 { 255 {
256 this._contentElement.focus(); 256 this._contentElement.focus();
257 }, 257 },
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 */ 317 */
318 _render: function() 318 _render: function()
319 { 319 {
320 var frame = this._frames[this._index]; 320 var frame = this._frames[this._index];
321 this._timeLabel.textContent = Number.millisToString(frame.timestamp - th is._zeroTime); 321 this._timeLabel.textContent = Number.millisToString(frame.timestamp - th is._zeroTime);
322 return frame.imageDataPromise().then(WebInspector.FilmStripView._setImag eData.bind(null, this._imageElement)); 322 return frame.imageDataPromise().then(WebInspector.FilmStripView._setImag eData.bind(null, this._imageElement));
323 }, 323 },
324 324
325 __proto__: WebInspector.DialogDelegate.prototype 325 __proto__: WebInspector.DialogDelegate.prototype
326 } 326 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/devices/DevicesDialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698