Home | History | Annotate | Download | only in sync_internals

Lines Matching defs:chrome

5 var chrome = chrome || {};
6 // TODO(akalin): Add mocking code for e.g. chrome.send() so that we
7 // can test this without rebuilding chrome.
8 chrome.sync = chrome.sync || {};
66 chrome.sync.onSyncServiceStateChanged = new Event();
69 chrome.sync.onSyncNotificationStateChange = new Event();
70 chrome.sync.onSyncIncomingNotification = new Event();
73 chrome.sync.onChangesApplied = new Event();
74 chrome.sync.onChangesComplete = new Event();
75 chrome.sync.onSyncCycleCompleted = new Event();
76 chrome.sync.onAuthError = new Event();
77 chrome.sync.onUpdatedToken = new Event();
78 chrome.sync.onPassphraseRequired = new Event();
79 chrome.sync.onPassphraseAccepted = new Event();
80 chrome.sync.onEncryptionComplete = new Event();
81 chrome.sync.onMigrationNeededForTypes = new Event();
82 chrome.sync.onInitializationComplete = new Event();
83 chrome.sync.onPaused = new Event();
84 chrome.sync.onResumed = new Event();
85 chrome.sync.onStopSyncingPermanently = new Event();
86 chrome.sync.onClearServerDataSucceeded = new Event();
87 chrome.sync.onClearServerDataFailed = new Event();
99 chrome.send(this.name_, args);
112 chrome.sync.getAboutInfo_ = new AsyncFunction('getAboutInfo');
113 chrome.sync.getAboutInfo = function(callback) {
114 chrome.sync.getAboutInfo_.call(callback);
118 chrome.sync.getNotificationState_ =
120 chrome.sync.getNotificationState = function(callback) {
121 chrome.sync.getNotificationState_.call(callback);
124 chrome.sync.getNotificationInfo_ =
126 chrome.sync.getNotificationInfo = function(callback) {
127 chrome.sync.getNotificationInfo_.call(callback);
131 chrome.sync.getRootNode_ = new AsyncFunction('getRootNode');
132 chrome.sync.getRootNode = function(callback) {
133 chrome.sync.getRootNode_.call(callback);
136 chrome.sync.getNodeById_ = new AsyncFunction('getNodeById');
137 chrome.sync.getNodeById = function(id, callback) {
138 chrome.sync.getNodeById_.call(id, callback);
148 chrome.sync.onSyncServiceStateChanged.dispatch_();
154 chrome.sync.onSyncNotificationStateChange.dispatch_(notificationsEnabled);
158 chrome.sync.onSyncIncomingNotification.dispatch_(changedTypes);
164 chrome.sync.onChangesApplied.dispatch_(modelType, changes);
168 chrome.sync.onChangesComplete.dispatch_(modelType);
172 chrome.sync.onSyncCycleCompleted.dispatch_(snapshot);
176 chrome.sync.onAuthError.dispatch_(authError);
180 chrome.sync.onUpdatedToken.dispatch_(token);
184 chrome.sync.onPassphraseRequired.dispatch_(forDecryption);
188 chrome.sync.onPassphraseAccepted.dispatch_(bootstrapToken);
192 chrome.sync.onEncryptionComplete.dispatch_(encrypted_types);
196 chrome.sync.onMigrationNeededForTypes.dispatch_(model_types);
200 chrome.sync.onInitializationComplete.dispatch_();
204 chrome.sync.onPaused.dispatch_();
208 chrome.sync.onResumed.dispatch_();
212 chrome.sync.onStopSyncingPermanently.dispatch_();
216 chrome.sync.onClearServerDataSucceeded();
220 chrome.sync.onClearServerDataFailed();
226 chrome.sync.getAboutInfo_.handleReply(aboutInfo);
230 chrome.sync.getNotificationState_.handleReply(notificationState);
234 chrome.sync.getRootNode_.handleReply(rootNode);
238 chrome.sync.getNodeById_.handleReply(node);
242 chrome.sync.getNotificationInfo_.handleReply(notificationInfo);