| Index: chrome/browser/resources/print_preview/data/size.js
|
| diff --git a/chrome/browser/resources/print_preview/data/size.js b/chrome/browser/resources/print_preview/data/size.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ab114a8f3ed06e99fc55a7444a43a012625f030b
|
| --- /dev/null
|
| +++ b/chrome/browser/resources/print_preview/data/size.js
|
| @@ -0,0 +1,32 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +cr.define('print_preview', function() {
|
| + 'use strict';
|
| +
|
| + function Size(width, height) {
|
| + this.width_ = width;
|
| + this.height_ = height;
|
| + };
|
| +
|
| + Size.prototype = {
|
| + get width() {
|
| + return this.width_;
|
| + },
|
| +
|
| + get height() {
|
| + return this.height_;
|
| + },
|
| +
|
| + equals: function(other) {
|
| + return other != null &&
|
| + this.width_ == other.width_ &&
|
| + this.height_ == other.height_;
|
| + }
|
| + };
|
| +
|
| + return {
|
| + Size: Size
|
| + };
|
| +});
|
|
|