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

Unified Diff: components/sync_driver/resources/events.js

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 years, 4 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
« no previous file with comments | « components/sync_driver/resources/events.html ('k') | components/sync_driver/resources/index.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/resources/events.js
diff --git a/components/sync_driver/resources/events.js b/components/sync_driver/resources/events.js
deleted file mode 100644
index f18477d17b55ea9ae4b32e5b121768ea19f5074a..0000000000000000000000000000000000000000
--- a/components/sync_driver/resources/events.js
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-cr.define('chrome.sync.events_tab', function() {
- 'use strict';
-
- function toggleDisplay(event) {
- var originatingButton = event.target;
- if (originatingButton.className != 'toggle-button') {
- return;
- }
- var detailsNode = originatingButton.parentNode.getElementsByClassName(
- 'details')[0];
- var detailsColumn = detailsNode.parentNode;
- var detailsRow = detailsColumn.parentNode;
-
- if (!detailsRow.classList.contains('expanded')) {
- detailsRow.classList.toggle('expanded');
- detailsColumn.setAttribute('colspan', 4);
- detailsNode.removeAttribute('hidden');
- } else {
- detailsNode.setAttribute('hidden', '');
- detailsColumn.removeAttribute('colspan');
- detailsRow.classList.toggle('expanded');
- }
- };
-
- function displaySyncEvents() {
- var entries = chrome.sync.log.entries;
- var eventTemplateContext = {
- eventList: entries,
- };
- var context = new JsEvalContext(eventTemplateContext);
- jstProcess(context, $('sync-events'));
- };
-
- function onLoad() {
- $('sync-events').addEventListener('click', toggleDisplay);
- chrome.sync.log.addEventListener('append', function(event) {
- displaySyncEvents();
- });
- }
-
- return {
- onLoad: onLoad
- };
-});
-
-document.addEventListener(
- 'DOMContentLoaded', chrome.sync.events_tab.onLoad, false);
« no previous file with comments | « components/sync_driver/resources/events.html ('k') | components/sync_driver/resources/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698