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

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

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 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 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.exportPath('print_preview'); 5 cr.exportPath('print_preview');
6 6
7 /** 7 /**
8 * @enum {number} 8 * @enum {number}
9 * @private 9 * @private
10 */ 10 */
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 * @private {print_preview.Invitation} 63 * @private {print_preview.Invitation}
64 */ 64 */
65 this.invitationInProgress_ = null; 65 this.invitationInProgress_ = null;
66 } 66 }
67 67
68 /** 68 /**
69 * Event types dispatched by the data store. 69 * Event types dispatched by the data store.
70 * @enum {string} 70 * @enum {string}
71 */ 71 */
72 InvitationStore.EventType = { 72 InvitationStore.EventType = {
73 INVITATION_PROCESSED: 73 INVITATION_PROCESSED: 'print_preview.InvitationStore.INVITATION_PROCESSED',
74 'print_preview.InvitationStore.INVITATION_PROCESSED',
75 INVITATION_SEARCH_DONE: 74 INVITATION_SEARCH_DONE:
76 'print_preview.InvitationStore.INVITATION_SEARCH_DONE' 75 'print_preview.InvitationStore.INVITATION_SEARCH_DONE'
77 }; 76 };
78 77
79 InvitationStore.prototype = { 78 InvitationStore.prototype = {
80 __proto__: cr.EventTarget.prototype, 79 __proto__: cr.EventTarget.prototype,
81 80
82 /** 81 /**
83 * @return {print_preview.Invitation} Currently processed invitation or 82 * @return {print_preview.Invitation} Currently processed invitation or
84 * {@code null}. 83 * {@code null}.
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 */ 213 */
215 onCloudPrintProcessInviteFailed_: function(event) { 214 onCloudPrintProcessInviteFailed_: function(event) {
216 this.invitationProcessed_(event.invitation); 215 this.invitationProcessed_(event.invitation);
217 // TODO: Display an error. 216 // TODO: Display an error.
218 cr.dispatchSimpleEvent( 217 cr.dispatchSimpleEvent(
219 this, InvitationStore.EventType.INVITATION_PROCESSED); 218 this, InvitationStore.EventType.INVITATION_PROCESSED);
220 } 219 }
221 }; 220 };
222 221
223 // Export 222 // Export
224 return { 223 return {InvitationStore: InvitationStore};
225 InvitationStore: InvitationStore
226 };
227 }); 224 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698