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.
5 cr
.define('print_preview', function() {
9 * Mutable reference to a CDD object.
12 function CapabilitiesHolder() {
14 * Reference to the capabilities object.
15 * @type {print_preview.Cdd}
18 this.capabilities_
= null;
21 CapabilitiesHolder
.prototype = {
22 /** @return {print_preview.Cdd} The instance held by the holder. */
24 return this.capabilities_
;
27 /** @param {!print_preview.Cdd} New instance to put into the holder. */
28 set: function(capabilities
) {
29 this.capabilities_
= capabilities
;
35 CapabilitiesHolder
: CapabilitiesHolder