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

Unified Diff: Source/devtools/front_end/emulation/InspectedPagePlaceholder.js

Issue 1113813002: [DevTools] Rename View to Widget. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 8 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: Source/devtools/front_end/emulation/InspectedPagePlaceholder.js
diff --git a/Source/devtools/front_end/emulation/InspectedPagePlaceholder.js b/Source/devtools/front_end/emulation/InspectedPagePlaceholder.js
index cde9950a129e9a34662093114d0a4c23d09dd56d..77a94e657b802b5b80ee0bde59caf7f3d073592f 100644
--- a/Source/devtools/front_end/emulation/InspectedPagePlaceholder.js
+++ b/Source/devtools/front_end/emulation/InspectedPagePlaceholder.js
@@ -4,11 +4,11 @@
/**
* @constructor
- * @extends {WebInspector.View}
+ * @extends {WebInspector.Widget}
*/
WebInspector.InspectedPagePlaceholder = function()
{
- WebInspector.View.call(this);
+ WebInspector.Widget.call(this);
this.element.classList.add("inspected-page-placeholder");
WebInspector.zoomManager.addEventListener(WebInspector.ZoomManager.Events.ZoomChanged, this._scheduleUpdate, this);
this._margins = { top: 0, right: 0, bottom: 0, left: 0 };
@@ -28,18 +28,18 @@ WebInspector.InspectedPagePlaceholder.prototype = {
if (this._useMargins) {
var adjacent = { top: true, right: true, bottom: true, left: true };
- var view = this;
- while (view.parentView()) {
- var parent = view.parentView();
- // This view assumes it's always inside the main split view element, not a sidebar.
- // Every parent which is not a split view, must be of the same size as this view.
- if (parent instanceof WebInspector.SplitView) {
+ var widget = this;
+ while (widget.parentWidget()) {
+ var parent = widget.parentWidget();
+ // This view assumes it's always inside the main split widget element, not a sidebar.
+ // Every parent which is not a split widget, must be of the same size as this widget.
+ if (parent instanceof WebInspector.SplitWidget) {
var side = parent.sidebarSide();
if (adjacent[side] && !parent.hasCustomResizer() && parent.isResizable())
margins[side] = WebInspector.InspectedPagePlaceholder.MarginValue;
adjacent[side] = false;
}
- view = parent;
+ widget = parent;
}
}
@@ -98,5 +98,5 @@ WebInspector.InspectedPagePlaceholder.prototype = {
this.dispatchEventToListeners(WebInspector.InspectedPagePlaceholder.Events.Update, bounds);
},
- __proto__: WebInspector.View.prototype
+ __proto__: WebInspector.Widget.prototype
};
« no previous file with comments | « Source/devtools/front_end/elements/elementsPanel.css ('k') | Source/devtools/front_end/emulation/MediaQueryInspector.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698