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

Unified Diff: tools/cc-frame-viewer/app/viewer.js

Issue 15736032: Remove old cc-frame-viewer now that it is upstreamed into trace_viewer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « tools/cc-frame-viewer/app/viewer.html ('k') | tools/cc-frame-viewer/build/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cc-frame-viewer/app/viewer.js
diff --git a/tools/cc-frame-viewer/app/viewer.js b/tools/cc-frame-viewer/app/viewer.js
deleted file mode 100644
index e6e1e87badaf2bf9b4c8754c877f2981a71a7636..0000000000000000000000000000000000000000
--- a/tools/cc-frame-viewer/app/viewer.js
+++ /dev/null
@@ -1,55 +0,0 @@
-/* Copyright (c) 2012 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.
- */
-'use strict';
-
-base.exportTo('ccfv', function() {
- function assert(bool) {
- if (bool)
- return;
- throw new Error("Expected true");
- }
-
- chromeapp.addEventListener('launch', init);
- chrome.app.window.current().onClosed.addListener(onClosed);
- chrome.app.window.current().focus();
-
- var viewerEl;
- function init(launch_event) {
- viewerEl = document.querySelector('#viewer')
- window.g_viewerEl = viewerEl;
-
- var num_args = launch_event.args[0]
- chromeapp.sendEvent('load', 'please', onLoadResult, onLoadError);
- }
-
- function onLoadResult(res) {
- var trace = JSON.parse(res);
-
- window.g_lastResult = trace;
- var model = new ccfv.Model();
- try {
- model.initFromTraceEvents(trace);
- } catch(e) {
- onLoadError(e);
- return;
- }
- window.g_model = model;
-
- var modelViewEl = new ccfv.ModelView();
- modelViewEl.model = model;
- window.g_modelViewEl = modelViewEl;
-
- viewerEl.appendChild(modelViewEl);
- }
-
- function onLoadError(err) {
- viewerEl.textContent = 'error loading: ' + err;
- }
-
- function onClosed() {
- chromeapp.exit(1);
- }
-
-});
« no previous file with comments | « tools/cc-frame-viewer/app/viewer.html ('k') | tools/cc-frame-viewer/build/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698