Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: chrome/browser/resources/print_preview/data/capabilities_holder.js

Issue 10108001: Refactor print preview web ui (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Whitespace Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 /**
9 * Mutable reference to a capabilities object.
10 * @constructor
11 */
12 function CapabilitiesHolder() {
13 /**
14 * Reference to the capabilities object.
15 * @type {print_preview.ChromiumCapabilities}
16 * @private
17 */
18 this.capabilities_ = null;
19 };
20
21 CapabilitiesHolder.prototype = {
22 /**
23 * @return {print_preview.ChromiumCapabilities} The instance held by the
24 * holder.
25 */
26 get: function() {
27 return this.capabilities_;
28 },
29
30 /**
31 * @param {!print_preview.ChromiumCapabilities} New instance to put into the
32 * holder.
33 */
34 set: function(capabilities) {
35 this.capabilities_ = capabilities;
36 }
37 };
38
39 // Export
40 return {
41 CapabilitiesHolder: CapabilitiesHolder
42 };
43 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698