OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 cr.define('print_preview', function() { |
| 6 'use strict'; |
| 7 |
| 8 function Size(width, height) { |
| 9 this.width_ = width; |
| 10 this.height_ = height; |
| 11 }; |
| 12 |
| 13 Size.prototype = { |
| 14 get width() { |
| 15 return this.width_; |
| 16 }, |
| 17 |
| 18 get height() { |
| 19 return this.height_; |
| 20 }, |
| 21 |
| 22 equals: function(other) { |
| 23 return other != null && |
| 24 this.width_ == other.width_ && |
| 25 this.height_ == other.height_; |
| 26 } |
| 27 }; |
| 28 |
| 29 return { |
| 30 Size: Size |
| 31 }; |
| 32 }); |
OLD | NEW |