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

Unified Diff: chrome/browser/resources/print_preview/previewarea/margin_control.js

Issue 2862203002: Print Preview: Fix data/ errors (Closed)
Patch Set: Fix destination resolver Created 3 years, 7 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: chrome/browser/resources/print_preview/previewarea/margin_control.js
diff --git a/chrome/browser/resources/print_preview/previewarea/margin_control.js b/chrome/browser/resources/print_preview/previewarea/margin_control.js
index 7620de7ca4cfa76a93f10d8ff6286702b77aa77e..07d2dcc6ad8f75d7a99a814c7cfd5e231d8906a1 100644
--- a/chrome/browser/resources/print_preview/previewarea/margin_control.js
+++ b/chrome/browser/resources/print_preview/previewarea/margin_control.js
@@ -7,7 +7,7 @@ cr.define('print_preview', function() {
/**
* Draggable control for setting a page margin.
- * @param {!print_preview.ticket_items.CustomMargins.Orientation} orientation
+ * @param {!print_preview.ticket_items.CustomMarginsOrientation} orientation
* Orientation of the margin control that determines where the margin
* textbox will be placed.
* @constructor
@@ -18,7 +18,7 @@ cr.define('print_preview', function() {
/**
* Determines where the margin textbox will be placed.
- * @type {!print_preview.ticket_items.CustomMargins.Orientation}
+ * @type {!print_preview.ticket_items.CustomMarginsOrientation}
* @private
*/
this.orientation_ = orientation;
@@ -150,7 +150,7 @@ cr.define('print_preview', function() {
},
/**
- * @return {!print_preview.ticket_items.CustomMargins.Orientation}
+ * @return {!print_preview.ticket_items.CustomMarginsOrientation}
* Orientation of the margin control.
*/
getOrientation: function() {
@@ -220,7 +220,7 @@ cr.define('print_preview', function() {
setPositionInPts: function(posInPts) {
this.positionInPts_ = posInPts;
var orientationEnum =
- print_preview.ticket_items.CustomMargins.Orientation;
+ print_preview.ticket_items.CustomMarginsOrientation;
var x = this.translateTransform_.x;
var y = this.translateTransform_.y;
var width = null, height = null;
@@ -271,7 +271,7 @@ cr.define('print_preview', function() {
convertPixelsToPts: function(pixels) {
var pts;
var orientationEnum =
- print_preview.ticket_items.CustomMargins.Orientation;
+ print_preview.ticket_items.CustomMarginsOrientation;
if (this.orientation_ == orientationEnum.TOP) {
pts = pixels - this.translateTransform_.y + MarginControl.RADIUS_;
pts /= this.scaleTransform_;

Powered by Google App Engine
This is Rietveld 408576698