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

Unified Diff: third_party/WebKit/Source/devtools/front_end/source_frame/ImageView.js

Issue 2217783002: DevTools: use view locations in the elements and sources sidebars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/source_frame/ImageView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/source_frame/ImageView.js b/third_party/WebKit/Source/devtools/front_end/source_frame/ImageView.js
index d6e7dcd64923e78e3a01f269e14df5197b99de14..48530cbb4ba41fb0c30780b1b0100663a4a02c1e 100644
--- a/third_party/WebKit/Source/devtools/front_end/source_frame/ImageView.js
+++ b/third_party/WebKit/Source/devtools/front_end/source_frame/ImageView.js
@@ -27,14 +27,14 @@
*/
/**
- * @extends {WebInspector.View}
+ * @extends {WebInspector.SimpleView}
* @constructor
* @param {string} mimeType
* @param {!WebInspector.ContentProvider} contentProvider
*/
WebInspector.ImageView = function(mimeType, contentProvider)
{
- WebInspector.View.call(this, WebInspector.UIString("Image"));
+ WebInspector.SimpleView.call(this, WebInspector.UIString("Image"));
this.registerRequiredCSS("source_frame/imageView.css");
this.element.classList.add("image-view");
this._url = contentProvider.contentURL();
@@ -51,7 +51,7 @@ WebInspector.ImageView.prototype = {
* @override
* @return {!Array<!WebInspector.ToolbarItem>}
*/
- toolbarItems: function()
+ syncToolbarItems: function()
{
return [this._sizeLabel, new WebInspector.ToolbarSeparator(), this._dimensionsLabel, new WebInspector.ToolbarSeparator(), this._mimeTypeLabel];
},
@@ -136,5 +136,5 @@ WebInspector.ImageView.prototype = {
InspectorFrontendHost.openInNewTab(this._url);
},
- __proto__: WebInspector.View.prototype
+ __proto__: WebInspector.SimpleView.prototype
}

Powered by Google App Engine
This is Rietveld 408576698