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

Unified Diff: chrome/browser/resources/sync_internals/sync_events.html

Issue 6531038: [Sync] Split up about:sync html files to be more manageable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed john's comments Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/sync_internals/sync_events.html
diff --git a/chrome/browser/resources/sync_internals/sync_events.html b/chrome/browser/resources/sync_internals/sync_events.html
new file mode 100644
index 0000000000000000000000000000000000000000..feb4117c5234710d7e0cdd631031ca437367c08e
--- /dev/null
+++ b/chrome/browser/resources/sync_internals/sync_events.html
@@ -0,0 +1,61 @@
+<script>
+(function() {
+function onLoad() {
+ // TODO(akalin): Do something with these notifications.
+ chrome.sync.onChangesApplied.addListener(function (modelType, changes) {
+ console.log('onChangesApplied: ' + modelType + ': ' +
+ JSON.stringify(changes));
+ });
+
+ chrome.sync.onChangesComplete.addListener(function (modelType) {
+ console.log('onChangesComplete: ' + modelType);
+ });
+
+ chrome.sync.onSyncCycleCompleted.addListener(function (snapshot) {
+ console.log('onSyncCycleCompleted: ' + JSON.stringify(snapshot));
+ });
+
+ chrome.sync.onAuthError.addListener(function (authError) {
+ console.log('onAuthError: ' + JSON.stringify(authError));
+ });
+
+ chrome.sync.onUpdatedToken.addListener(function (token) {
+ console.log('onUpdatedToken: ' + token);
+ });
+
+ chrome.sync.onPassphraseRequired.addListener(function (forDecryption) {
+ console.log('onPassphraseRequired: ' + forDecryption);
+ });
+
+ chrome.sync.onPassphraseAccepted.addListener(function (bootstrapToken) {
+ console.log('onPassphraseAccepted: ' + bootstrapToken);
+ });
+
+ chrome.sync.onInitializationComplete.addListener(function () {
+ console.log('onInitializationComplete');
+ });
+
+ chrome.sync.onPaused.addListener(function () {
+ console.log('onPaused');
+ });
+
+ chrome.sync.onResumed.addListener(function () {
+ console.log('onResumed');
+ });
+
+ chrome.sync.onStopSyncingPermanently.addListener(function () {
+ console.log('onStopSyncingPermanently');
+ });
+
+ chrome.sync.onClearServerDataSucceeded.addListener(function () {
+ console.log('onClearServerDataSucceeded');
+ });
+
+ chrome.sync.onClearServerDataFailed.addListener(function () {
+ console.log('onClearServerDataFailed');
+ });
+}
+
+document.addEventListener("DOMContentLoaded", onLoad, false);
+})();
+</script>
« no previous file with comments | « chrome/browser/resources/sync_internals/notifications.html ('k') | chrome/browser/resources/sync_internals/sync_index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698