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

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

Issue 2157713002: DevTools: introduce View: a named widget with the toolbar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcean Created 4 years, 5 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 d7d4cf9db7c6ac0b63be1d98d5c4b02c89baaa36..d6e7dcd64923e78e3a01f269e14df5197b99de14 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.VBoxWithToolbarItems}
+ * @extends {WebInspector.View}
* @constructor
* @param {string} mimeType
* @param {!WebInspector.ContentProvider} contentProvider
*/
WebInspector.ImageView = function(mimeType, contentProvider)
{
- WebInspector.VBoxWithToolbarItems.call(this);
+ WebInspector.View.call(this, WebInspector.UIString("Image"));
this.registerRequiredCSS("source_frame/imageView.css");
this.element.classList.add("image-view");
this._url = contentProvider.contentURL();
@@ -136,5 +136,5 @@ WebInspector.ImageView.prototype = {
InspectorFrontendHost.openInNewTab(this._url);
},
- __proto__: WebInspector.VBoxWithToolbarItems.prototype
+ __proto__: WebInspector.View.prototype
}

Powered by Google App Engine
This is Rietveld 408576698