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

Side by Side Diff: chrome/browser/resources/print_preview/search/cloud_destination_list.js

Issue 2760753002: [CUPS] Implement the local CUPS printer setup waiting UI. (Closed)
Patch Set: . Created 3 years, 9 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
OLDNEW
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 * Sub-class of a destination list that shows cloud-based destinations. 9 * Sub-class of a destination list that shows cloud-based destinations.
10 * @param {!cr.EventTarget} eventTarget Event target to pass to destination 10 * @param {!cr.EventTarget} eventTarget Event target to pass to destination
11 * items for dispatching SELECT events. 11 * items for dispatching SELECT events.
12 * @param {!print_preview.DestinationStore} Data store containing all the
13 * destinations.
12 * @constructor 14 * @constructor
13 * @extends {print_preview.DestinationList} 15 * @extends {print_preview.DestinationList}
14 */ 16 */
15 function CloudDestinationList(eventTarget) { 17 function CloudDestinationList(eventTarget, destinationStore) {
16 print_preview.DestinationList.call( 18 print_preview.DestinationList.call(
17 this, 19 this,
18 eventTarget, 20 eventTarget,
21 destinationStore,
19 loadTimeData.getString('cloudDestinationsTitle'), 22 loadTimeData.getString('cloudDestinationsTitle'),
20 loadTimeData.getString('manage')); 23 loadTimeData.getString('manage'));
21 }; 24 };
22 25
23 CloudDestinationList.prototype = { 26 CloudDestinationList.prototype = {
24 __proto__: print_preview.DestinationList.prototype, 27 __proto__: print_preview.DestinationList.prototype,
25 28
26 /** @override */ 29 /** @override */
27 updateDestinations: function(destinations) { 30 updateDestinations: function(destinations) {
28 // Change the action link from "Manage..." to "Setup..." if user only has 31 // Change the action link from "Manage..." to "Setup..." if user only has
(...skipping 11 matching lines...) Expand all
40 } 43 }
41 print_preview.DestinationList.prototype.updateDestinations.call( 44 print_preview.DestinationList.prototype.updateDestinations.call(
42 this, destinations); 45 this, destinations);
43 } 46 }
44 }; 47 };
45 48
46 return { 49 return {
47 CloudDestinationList: CloudDestinationList 50 CloudDestinationList: CloudDestinationList
48 }; 51 };
49 }); 52 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698