mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 13:45:27 +00:00
e368dc9c85
This patch was generated by a script. Here's the source of the script for future reference: function convert() { echo "Converting $1 to $2..." find . ! -wholename "*nsprpub*" \ ! -wholename "*security/nss*" \ ! -wholename "*/.hg*" \ ! -wholename "obj-ff-dbg*" \ ! -name nsXPCOMCID.h \ ! -name prtypes.h \ -type f \ \( -iname "*.cpp" \ -o -iname "*.h" \ -o -iname "*.c" \ -o -iname "*.cc" \ -o -iname "*.idl" \ -o -iname "*.ipdl" \ -o -iname "*.ipdlh" \ -o -iname "*.mm" \) | \ xargs -n 1 sed -i -e "s/\b$1\b/$2/g" } convert PRInt8 int8_t convert PRUint8 uint8_t convert PRInt16 int16_t convert PRUint16 uint16_t convert PRInt32 int32_t convert PRUint32 uint32_t convert PRInt64 int64_t convert PRUint64 uint64_t convert PRIntn int convert PRUintn unsigned convert PRSize size_t convert PROffset32 int32_t convert PROffset64 int64_t convert PRPtrdiff ptrdiff_t convert PRFloat64 double
69 lines
1.9 KiB
C++
69 lines
1.9 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef NS_SMILTIMEVALUESPECPARAMS_H_
|
|
#define NS_SMILTIMEVALUESPECPARAMS_H_
|
|
|
|
#include "nsSMILTimeValue.h"
|
|
#include "nsAutoPtr.h"
|
|
#include "nsIAtom.h"
|
|
|
|
//----------------------------------------------------------------------
|
|
// nsSMILTimeValueSpecParams
|
|
//
|
|
// A simple data type for storing the result of parsing a single begin or end
|
|
// value (e.g. the '5s' in begin="5s; indefinite; a.begin+2s").
|
|
|
|
class nsSMILTimeValueSpecParams
|
|
{
|
|
public:
|
|
nsSMILTimeValueSpecParams()
|
|
:
|
|
mType(INDEFINITE),
|
|
mSyncBegin(false),
|
|
mRepeatIterationOrAccessKey(0)
|
|
{ }
|
|
|
|
// The type of value this specification describes
|
|
enum {
|
|
OFFSET,
|
|
SYNCBASE,
|
|
EVENT,
|
|
REPEAT,
|
|
ACCESSKEY,
|
|
WALLCLOCK,
|
|
INDEFINITE
|
|
} mType;
|
|
|
|
// A clock value that is added to:
|
|
// - type OFFSET: the document begin
|
|
// - type SYNCBASE: the timebase's begin or end time
|
|
// - type EVENT: the event time
|
|
// - type REPEAT: the repeat time
|
|
// - type ACCESSKEY: the keypress time
|
|
// It is not used for WALLCLOCK or INDEFINITE times
|
|
nsSMILTimeValue mOffset;
|
|
|
|
// The base element that this specification refers to.
|
|
// For SYNCBASE types, this is the timebase
|
|
// For EVENT and REPEAT types, this is the eventbase
|
|
nsRefPtr<nsIAtom> mDependentElemID;
|
|
|
|
// The event to respond to.
|
|
// Only used for EVENT types.
|
|
nsRefPtr<nsIAtom> mEventSymbol;
|
|
|
|
// Indicates if this specification refers to the begin or end of the dependent
|
|
// element.
|
|
// Only used for SYNCBASE types.
|
|
bool mSyncBegin;
|
|
|
|
// The repeat iteration (type=REPEAT) or access key (type=ACCESSKEY) to
|
|
// respond to.
|
|
uint32_t mRepeatIterationOrAccessKey;
|
|
};
|
|
|
|
#endif // NS_SMILTIMEVALUESPECPARAMS_H_
|