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

Unified Diff: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js

Issue 2626143004: DevTools: move from Common module - Geometry and CSSShadowModel (Closed)
Patch Set: minimize test diff Created 3 years, 11 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/emulation/DeviceModeView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
index ce6aef2fe18dd3a2b95a5b1b6cb15d2951cdaedd..e554590f7ba4a7bd9af511f32418a3ecd1fc4bf2 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
@@ -132,7 +132,7 @@ Emulation.DeviceModeView = class extends UI.VBox {
*/
_onResizeStart(event) {
this._slowPositionStart = null;
- /** @type {!Size} */
+ /** @type {!UI.Size} */
this._resizeStart = this._model.screenRect().size();
}
@@ -182,7 +182,7 @@ Emulation.DeviceModeView = class extends UI.VBox {
_updateUI() {
/**
* @param {!Element} element
- * @param {!Common.Rect} rect
+ * @param {!UI.Rect} rect
*/
function applyRect(element, rect) {
element.style.left = rect.left + 'px';
@@ -310,8 +310,8 @@ Emulation.DeviceModeView = class extends UI.VBox {
_contentAreaResized() {
var zoomFactor = UI.zoomManager.zoomFactor();
var rect = this._contentArea.getBoundingClientRect();
- var availableSize = new Size(Math.max(rect.width * zoomFactor, 1), Math.max(rect.height * zoomFactor, 1));
- var preferredSize = new Size(
+ var availableSize = new UI.Size(Math.max(rect.width * zoomFactor, 1), Math.max(rect.height * zoomFactor, 1));
+ var preferredSize = new UI.Size(
Math.max((rect.width - 2 * this._handleWidth) * zoomFactor, 1),
Math.max((rect.height - this._handleHeight) * zoomFactor, 1));
this._model.setAvailableSize(availableSize, preferredSize);
@@ -367,7 +367,7 @@ Emulation.DeviceModeView = class extends UI.VBox {
var zoomFactor = UI.zoomManager.zoomFactor();
var rect = this._contentArea.getBoundingClientRect();
- var availableSize = new Size(Math.max(rect.width * zoomFactor, 1), Math.max(rect.height * zoomFactor, 1));
+ var availableSize = new UI.Size(Math.max(rect.width * zoomFactor, 1), Math.max(rect.height * zoomFactor, 1));
var outlineVisible = this._model.deviceOutlineSetting().get();
if (availableSize.width < this._model.screenRect().width ||
@@ -421,7 +421,7 @@ Emulation.DeviceModeView = class extends UI.VBox {
/**
* @param {string} src
- * @param {!Common.Rect} rect
+ * @param {!UI.Rect} rect
* @return {!Promise<undefined>}
*/
function paintImage(src, rect) {

Powered by Google App Engine
This is Rietveld 408576698