| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 cr.define('print_preview', function() { | 5 cr.define('print_preview', function() { |
| 6 'use strict'; | 6 'use strict'; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * Creates a Margins object that holds four margin values in points. | 9 * Creates a Margins object that holds four margin values in points. |
| 10 * @param {number} top The top margin in pts. | 10 * @param {number} top The top margin in pts. |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 clone_: function() { | 100 clone_: function() { |
| 101 var clone = {}; | 101 var clone = {}; |
| 102 for (var o in this.value_) { | 102 for (var o in this.value_) { |
| 103 clone[o] = this.value_[o]; | 103 clone[o] = this.value_[o]; |
| 104 } | 104 } |
| 105 return clone; | 105 return clone; |
| 106 } | 106 } |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 // Export | 109 // Export |
| 110 return { | 110 return {Margins: Margins}; |
| 111 Margins: Margins | |
| 112 }; | |
| 113 }); | 111 }); |
| OLD | NEW |