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

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

Issue 1113813002: [DevTools] Rename View to Widget. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 7 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
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 /** 80 /**
81 * @constructor 81 * @constructor
82 * @extends {WebInspector.DialogDelegate} 82 * @extends {WebInspector.DialogDelegate}
83 * @param {!WebInspector.FilmStripModel.Frame} filmStripFrame 83 * @param {!WebInspector.FilmStripModel.Frame} filmStripFrame
84 * @param {number=} zeroTime 84 * @param {number=} zeroTime
85 */ 85 */
86 WebInspector.FilmStripView.DialogDelegate = function(filmStripFrame, zeroTime) 86 WebInspector.FilmStripView.DialogDelegate = function(filmStripFrame, zeroTime)
87 { 87 {
88 WebInspector.DialogDelegate.call(this); 88 WebInspector.DialogDelegate.call(this);
89 var shadowRoot = this.element.createShadowRoot(); 89 var shadowRoot = this.element.createShadowRoot();
90 shadowRoot.appendChild(WebInspector.View.createStyleElement("components_lazy /filmStripDialog.css")); 90 shadowRoot.appendChild(WebInspector.Widget.createStyleElement("components_la zy/filmStripDialog.css"));
91 this._contentElement = shadowRoot.createChild("div", "filmstrip-dialog"); 91 this._contentElement = shadowRoot.createChild("div", "filmstrip-dialog");
92 this._contentElement.tabIndex = 0; 92 this._contentElement.tabIndex = 0;
93 93
94 this._frames = filmStripFrame.model().frames(); 94 this._frames = filmStripFrame.model().frames();
95 this._index = filmStripFrame.index; 95 this._index = filmStripFrame.index;
96 this._zeroTime = zeroTime || filmStripFrame.model().zeroTime(); 96 this._zeroTime = zeroTime || filmStripFrame.model().zeroTime();
97 97
98 this._imageElement = this._contentElement.createChild("img"); 98 this._imageElement = this._contentElement.createChild("img");
99 var footerElement = this._contentElement.createChild("div", "filmstrip-dialo g-footer"); 99 var footerElement = this._contentElement.createChild("div", "filmstrip-dialo g-footer");
100 footerElement.createChild("div", "flex-auto"); 100 footerElement.createChild("div", "flex-auto");
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 _render: function() 179 _render: function()
180 { 180 {
181 var frame = this._frames[this._index]; 181 var frame = this._frames[this._index];
182 this._imageElement.src = "data:image/jpg;base64," + frame.imageData; 182 this._imageElement.src = "data:image/jpg;base64," + frame.imageData;
183 this._timeLabel.textContent = Number.millisToString(frame.timestamp - th is._zeroTime); 183 this._timeLabel.textContent = Number.millisToString(frame.timestamp - th is._zeroTime);
184 }, 184 },
185 185
186 __proto__: WebInspector.DialogDelegate.prototype 186 __proto__: WebInspector.DialogDelegate.prototype
187 } 187 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/components/ShortcutsScreen.js ('k') | Source/devtools/front_end/console/ConsoleView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698