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

Side by Side Diff: Source/devtools/front_end/InspectedPagePlaceholder.js

Issue 197823010: [DevTools] Add minimum size to WebInspector.View. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@splitdip2
Patch Set: fixed comments Created 6 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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.View} 7 * @extends {WebInspector.View}
8 */ 8 */
9 WebInspector.InspectedPagePlaceholder = function() 9 WebInspector.InspectedPagePlaceholder = function()
10 { 10 {
11 WebInspector.View.call(this); 11 WebInspector.View.call(this);
12 WebInspector.zoomManager.addEventListener(WebInspector.ZoomManager.Events.Zo omChanged, this._onZoomChanged, this); 12 WebInspector.zoomManager.addEventListener(WebInspector.ZoomManager.Events.Zo omChanged, this._onZoomChanged, this);
13 this._margins = { top: false, right: false, bottom: false, left: false }; 13 this._margins = { top: false, right: false, bottom: false, left: false };
14 this.setMinimumSize(WebInspector.InspectedPagePlaceholder.Constraints.Width, WebInspector.InspectedPagePlaceholder.Constraints.Height);
14 }; 15 };
15 16
16 WebInspector.InspectedPagePlaceholder.Constraints = { 17 WebInspector.InspectedPagePlaceholder.Constraints = {
17 Width: 50, 18 Width: 50,
18 Height: 50 19 Height: 50
19 }; 20 };
20 21
21 WebInspector.InspectedPagePlaceholder.MarginValue = 3; 22 WebInspector.InspectedPagePlaceholder.MarginValue = 3;
22 23
23 WebInspector.InspectedPagePlaceholder.prototype = { 24 WebInspector.InspectedPagePlaceholder.prototype = {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 top: Math.ceil(insets.top), 107 top: Math.ceil(insets.top),
107 left: Math.ceil(insets.left), 108 left: Math.ceil(insets.left),
108 right: Math.ceil(insets.right), 109 right: Math.ceil(insets.right),
109 bottom: Math.ceil(insets.bottom)}; 110 bottom: Math.ceil(insets.bottom)};
110 111
111 InspectorFrontendHost.setContentsResizingStrategy(roundedInsets, minSize ); 112 InspectorFrontendHost.setContentsResizingStrategy(roundedInsets, minSize );
112 }, 113 },
113 114
114 __proto__: WebInspector.View.prototype 115 __proto__: WebInspector.View.prototype
115 }; 116 };
OLDNEW
« no previous file with comments | « Source/devtools/front_end/HeapSnapshotView.js ('k') | Source/devtools/front_end/InspectorView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698