/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
namespace mozilla { namespace dom { class Document;
}
} // namespace mozilla
class nsRepeatService final {
public: typedefvoid (*Callback)(void* aData);
~nsRepeatService();
// Start dispatching timer events to the callback. There is no memory // management of aData here; it is the caller's responsibility to call // Stop() before aData's memory is released. // // aCallbackName is the label of the callback, used to pass to // InitWithNamedCallbackFunc. // // aDocument is used to get the event target in Start(). We need an event // target to init mRepeatTimer. void Start(Callback aCallback, void* aCallbackData,
mozilla::dom::Document* aDocument, const nsACString& aCallbackName,
uint32_t aInitialDelay = INITAL_REPEAT_DELAY); // Stop dispatching timer events to the callback. If the repeat service // is not currently configured with the given callback and data, this // is just ignored. void Stop(Callback aCallback, void* aData);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.