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: tools/cc-frame-viewer/src/analysis_view.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/src/analysis_view.css ('k') | tools/cc-frame-viewer/src/analysis_view_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cc-frame-viewer/src/analysis_view.js
diff --git a/tools/cc-frame-viewer/src/analysis_view.js b/tools/cc-frame-viewer/src/analysis_view.js
deleted file mode 100644
index 59e356b649b9e8320fb9b25fc4a8e2c090fd4e0b..0000000000000000000000000000000000000000
--- a/tools/cc-frame-viewer/src/analysis_view.js
+++ /dev/null
@@ -1,66 +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.require('tile_view');
-base.require('ui');
-base.require('ui.list_and_associated_view');
-
-base.requireStylesheet('analysis_view');
-
-base.exportTo('ccfv', function() {
- var TileView = ccfv.TileView;
-
- var AnalysisView = ui.define('x-analysis-view');
-
- AnalysisView.prototype = {
- __proto__: HTMLUnknownElement.prototype,
-
- decorate: function() {
- this.selection_ = undefined;
- this.updateChildren_();
- },
-
- set selection(selection) {
- if (this.selection_)
- this.selection_.deactivate();
- this.selection_ = selection;
- if (this.selection_)
- this.selection_.activate();
- this.updateChildren_();
- },
-
- get selection() {
- return this.selection_;
- },
-
- updateChildren_: function() {
- if (!this.selection_) {
- this.textContent = 'Select something';
- return;
- }
- if (this.selection_.tiles) {
- this.updateChildrenGivenTiles_(this.selection_.tiles);
- return;
- }
- throw new Error('I am confused about what you selected');
- },
-
- updateChildrenGivenTiles_: function(tiles) {
- this.textContent = '';
- var tileListEl = new ui.ListAndAssociatedView();
- tileListEl.view = new TileView();
- tileListEl.viewProperty = 'tile';
- tileListEl.list = tiles;
- tileListEl.listProperty = 'title';
- this.appendChild(tileListEl);
- },
- };
-
- return {
- AnalysisView: AnalysisView
- }
-});
-
« no previous file with comments | « tools/cc-frame-viewer/src/analysis_view.css ('k') | tools/cc-frame-viewer/src/analysis_view_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698