OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 * Printer sharing invitation data object. | 9 * Printer sharing invitation data object. |
10 * @param {string} sender Text identifying invitation sender. | 10 * @param {string} sender Text identifying invitation sender. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 * JSON representation of the ACL entry this invitation was sent to. | 42 * JSON representation of the ACL entry this invitation was sent to. |
43 * @private {!Object} | 43 * @private {!Object} |
44 */ | 44 */ |
45 this.aclEntry_ = aclEntry; | 45 this.aclEntry_ = aclEntry; |
46 | 46 |
47 /** | 47 /** |
48 * Account this invitation is sent for. | 48 * Account this invitation is sent for. |
49 * @private {string} | 49 * @private {string} |
50 */ | 50 */ |
51 this.account_ = account; | 51 this.account_ = account; |
52 }; | 52 } |
53 | 53 |
54 Invitation.prototype = { | 54 Invitation.prototype = { |
55 /** @return {string} Text identifying invitation sender. */ | 55 /** @return {string} Text identifying invitation sender. */ |
56 get sender() { | 56 get sender() { |
57 return this.sender_; | 57 return this.sender_; |
58 }, | 58 }, |
59 | 59 |
60 /** @return {string} Text identifying invitation receiver. */ | 60 /** @return {string} Text identifying invitation receiver. */ |
61 get receiver() { | 61 get receiver() { |
62 return this.receiver_; | 62 return this.receiver_; |
(...skipping 21 matching lines...) Expand all Loading... |
84 get account() { | 84 get account() { |
85 return this.account_; | 85 return this.account_; |
86 } | 86 } |
87 }; | 87 }; |
88 | 88 |
89 // Export | 89 // Export |
90 return { | 90 return { |
91 Invitation: Invitation | 91 Invitation: Invitation |
92 }; | 92 }; |
93 }); | 93 }); |
OLD | NEW |