dom/smil/nsSMILTimeValueSpecParams.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #ifndef NS_SMILTIMEVALUESPECPARAMS_H_
     7 #define NS_SMILTIMEVALUESPECPARAMS_H_
     9 #include "nsSMILTimeValue.h"
    10 #include "nsAutoPtr.h"
    11 #include "nsIAtom.h"
    13 //----------------------------------------------------------------------
    14 // nsSMILTimeValueSpecParams
    15 //
    16 // A simple data type for storing the result of parsing a single begin or end
    17 // value (e.g. the '5s' in begin="5s; indefinite; a.begin+2s").
    19 class nsSMILTimeValueSpecParams
    20 {
    21 public:
    22   nsSMILTimeValueSpecParams()
    23   :
    24     mType(INDEFINITE),
    25     mSyncBegin(false),
    26     mRepeatIterationOrAccessKey(0)
    27   { }
    29   // The type of value this specification describes
    30   enum {
    31     OFFSET,
    32     SYNCBASE,
    33     EVENT,
    34     REPEAT,
    35     ACCESSKEY,
    36     WALLCLOCK,
    37     INDEFINITE
    38   } mType;
    40   // A clock value that is added to:
    41   // - type OFFSET: the document begin
    42   // - type SYNCBASE: the timebase's begin or end time
    43   // - type EVENT: the event time
    44   // - type REPEAT: the repeat time
    45   // - type ACCESSKEY: the keypress time
    46   // It is not used for WALLCLOCK or INDEFINITE times
    47   nsSMILTimeValue   mOffset;
    49   // The base element that this specification refers to.
    50   // For SYNCBASE types, this is the timebase
    51   // For EVENT and REPEAT types, this is the eventbase
    52   nsRefPtr<nsIAtom> mDependentElemID;
    54   // The event to respond to.
    55   // Only used for EVENT types.
    56   nsRefPtr<nsIAtom> mEventSymbol;
    58   // Indicates if this specification refers to the begin or end of the dependent
    59   // element.
    60   // Only used for SYNCBASE types.
    61   bool              mSyncBegin;
    63   // The repeat iteration (type=REPEAT) or access key (type=ACCESSKEY) to
    64   // respond to.
    65   uint32_t          mRepeatIterationOrAccessKey;
    66 };
    68 #endif // NS_SMILTIMEVALUESPECPARAMS_H_

mercurial