diff options
Diffstat (limited to 'chromium/third_party/trace-viewer/src/tracing/analysis/object_instance_view.js')
-rw-r--r-- | chromium/third_party/trace-viewer/src/tracing/analysis/object_instance_view.js | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/chromium/third_party/trace-viewer/src/tracing/analysis/object_instance_view.js b/chromium/third_party/trace-viewer/src/tracing/analysis/object_instance_view.js deleted file mode 100644 index 39315788c6a..00000000000 --- a/chromium/third_party/trace-viewer/src/tracing/analysis/object_instance_view.js +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) 2013 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('ui'); - -base.exportTo('tracing.analysis', function() { - var ObjectInstanceView = ui.define('object-instance-view'); - - ObjectInstanceView.prototype = { - __proto__: HTMLDivElement.prototype, - - decorate: function() { - this.objectInstance_ = undefined; - }, - - get requiresTallView() { - return true; - }, - - set modelEvent(obj) { - this.objectInstance = obj; - }, - - get modelEvent() { - return this.objectInstance; - }, - - get objectInstance() { - return this.objectInstance_; - }, - - set objectInstance(i) { - this.objectInstance_ = i; - this.updateContents(); - }, - - updateContents: function() { - throw new Error('Not implemented'); - } - }; - - ObjectInstanceView.typeNameToViewInfoMap = {}; - ObjectInstanceView.register = function(typeName, - viewConstructor, - opt_options) { - if (ObjectInstanceView.typeNameToViewInfoMap[typeName]) - throw new Error('Handler already registerd for ' + typeName); - var options = opt_options || { - showInTrackView: true - }; - ObjectInstanceView.typeNameToViewInfoMap[typeName] = { - constructor: viewConstructor, - options: options - }; - }; - - ObjectInstanceView.unregister = function(typeName) { - if (ObjectInstanceView.typeNameToViewInfoMap[typeName] === undefined) - throw new Error(typeName + ' not registered'); - delete ObjectInstanceView.typeNameToViewInfoMap[typeName]; - }; - - ObjectInstanceView.getViewInfo = function(typeName) { - return ObjectInstanceView.typeNameToViewInfoMap[typeName]; - }; - - - return { - ObjectInstanceView: ObjectInstanceView - }; -}); |