blob: bf6903146177de684e38534b160f7e351a9b2cbb [file] [log] [blame]
<!DOCTYPE html>
<!--
Copyright (c) 2015 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/base.html">
<script>
'use strict';
tr.exportTo('tr.ui.tracks', function() {
/**
* EventToTrackMap provides a mapping mechanism between events and the
* tracks those events belong on.
* @constructor
*/
function EventToTrackMap() {}
EventToTrackMap.prototype = {
addEvent: function(event, track) {
if (!track)
throw new Error('Must provide a track.');
this[event.guid] = track;
}
};
return {
EventToTrackMap: EventToTrackMap
};
});
</script>