Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / chrome / browser / resources / print_preview / data / capabilities_holder.js
blobd22bfe974bc0a990b84e4d8deebed3467f127e40
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() {
6 'use strict';
8 /**
9 * Mutable reference to a CDD object.
10 * @constructor
12 function CapabilitiesHolder() {
13 /**
14 * Reference to the capabilities object.
15 * @type {?print_preview.Cdd}
16 * @private
18 this.capabilities_ = null;
21 CapabilitiesHolder.prototype = {
22 /** @return {?print_preview.Cdd} The instance held by the holder. */
23 get: function() {
24 return this.capabilities_;
27 /**
28 * @param {!print_preview.Cdd} capabilities New instance to put into the
29 * holder.
31 set: function(capabilities) {
32 this.capabilities_ = capabilities;
36 // Export
37 return {
38 CapabilitiesHolder: CapabilitiesHolder
40 });