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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.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/network/RequestPreviewView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js b/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
index 61e2137d40792383e7d7e1630e23f6393512eb7f..1a4f90811e064009d25b906eb56849a91c2ee317 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
@@ -68,9 +68,9 @@ WebInspector.RequestPreviewView.prototype = {
function handlePreviewView(view) {
this._previewView = view;
this._previewView.show(this.element);
- if (this._previewView instanceof WebInspector.VBoxWithToolbarItems) {
+ if (this._previewView instanceof WebInspector.View) {
var toolbar = new WebInspector.Toolbar("network-item-preview-toolbar", this.element);
- for (var item of /** @type {!WebInspector.VBoxWithToolbarItems} */ (this._previewView).toolbarItems())
+ for (var item of /** @type {!WebInspector.View} */ (this._previewView).toolbarItems())
toolbar.appendToolbarItem(item);
}
this.innerView = this._previewView;

Powered by Google App Engine
This is Rietveld 408576698