blob: b04294d23386a1d4bae56c2645f2113e609cdd1c [file] [log] [blame]
<!DOCTYPE html>
<!--
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.
-->
<link rel="import" href="/base/extension_registry.html">
<link rel="import" href="/ui/base/ui.html">
<script>
'use strict';
tr.exportTo('tr.ui.analysis', function() {
var ObjectInstanceView = tr.ui.b.define('object-instance-view');
ObjectInstanceView.prototype = {
__proto__: HTMLUnknownElement.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');
}
};
var options = new tr.b.ExtensionRegistryOptions(
tr.b.TYPE_BASED_REGISTRY_MODE);
options.mandatoryBaseClass = ObjectInstanceView;
options.defaultMetadata = {
showInTrackView: true
};
tr.b.decorateExtensionRegistry(ObjectInstanceView, options);
return {
ObjectInstanceView: ObjectInstanceView
};
});
</script>