1<!DOCTYPE html> 2<!-- 3Copyright (c) 2015 The Chromium Authors. All rights reserved. 4Use of this source code is governed by a BSD-style license that can be 5found in the LICENSE file. 6--> 7 8<link rel="import" href="/tracing/base/base.html"> 9 10<script> 11'use strict'; 12 13tr.exportTo('tr.model', function() { 14 15 /** 16 * Indicates how much of a compound-event is selected [if any]. 17 * 18 * The CompoundEventSelectionState enum is used with events that are 19 * directly selectable, but also have associated events, too, that can be 20 * selected. In this situation, there are a variety of different 21 * selected states other than just "yes, no". This enum encodes those 22 * various possible states. 23 */ 24 var CompoundEventSelectionState = { 25 // Basic bit states. 26 NOT_SELECTED: 0, 27 EVENT_SELECTED: 0x1, 28 SOME_ASSOCIATED_EVENTS_SELECTED: 0x2, 29 ALL_ASSOCIATED_EVENTS_SELECTED: 0x4, 30 31 // Common combinations. 32 EVENT_AND_SOME_ASSOCIATED_SELECTED: 0x1 | 0x2, 33 EVENT_AND_ALL_ASSOCIATED_SELECTED: 0x1 | 0x4 34 }; 35 36 return { 37 CompoundEventSelectionState: CompoundEventSelectionState 38 }; 39}); 40</script> 41