webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
WebCore::DeferrableOneShotTimer Class Reference

#include <Timer.h>

Inheritance diagram for WebCore::DeferrableOneShotTimer:
WebCore::TimerBase WebCore::TimerBase

Public Member Functions

template<typename TimerFiredClass >
 DeferrableOneShotTimer (TimerFiredClass &object, void(TimerFiredClass::*function)(), std::chrono::milliseconds delay)
 
 DeferrableOneShotTimer (std::function< void()> function, std::chrono::milliseconds delay)
 
void restart ()
 
void stop ()
 
template<typename TimerFiredClass >
 DeferrableOneShotTimer (TimerFiredClass &object, void(TimerFiredClass::*function)(), std::chrono::milliseconds delay)
 
 DeferrableOneShotTimer (std::function< void()> function, std::chrono::milliseconds delay)
 
void restart ()
 
void stop ()
 

Additional Inherited Members

- Protected Member Functions inherited from WebCore::TimerBase
WEBCORE_EXPORT TimerBase ()
 
virtual WEBCORE_EXPORT ~TimerBase ()
 
WEBCORE_EXPORT void start (double nextFireInterval, double repeatInterval)
 
void startRepeating (double repeatInterval)
 
void startRepeating (std::chrono::milliseconds repeatInterval)
 
void startRepeating (Seconds repeatInterval)
 
void startOneShot (double interval)
 
void startOneShot (std::chrono::milliseconds interval)
 
void startOneShot (Seconds interval)
 
WEBCORE_EXPORT void stop ()
 
bool isActive () const
 
double nextFireInterval () const
 
double nextUnalignedFireInterval () const
 
double repeatInterval () const
 
std::chrono::milliseconds repeatIntervalMS () const
 
void augmentFireInterval (double delta)
 
void augmentFireInterval (std::chrono::milliseconds delta)
 
void augmentFireInterval (Seconds delta)
 
void augmentRepeatInterval (double delta)
 
void augmentRepeatInterval (std::chrono::milliseconds delta)
 
void augmentRepeatInterval (Seconds delta)
 
void didChangeAlignmentInterval ()
 
WEBCORE_EXPORT TimerBase ()
 
virtual WEBCORE_EXPORT ~TimerBase ()
 
WEBCORE_EXPORT void start (double nextFireInterval, double repeatInterval)
 
void startRepeating (double repeatInterval)
 
void startRepeating (std::chrono::milliseconds repeatInterval)
 
void startRepeating (Seconds repeatInterval)
 
void startOneShot (double interval)
 
void startOneShot (std::chrono::milliseconds interval)
 
void startOneShot (Seconds interval)
 
WEBCORE_EXPORT void stop ()
 
bool isActive () const
 
double nextFireInterval () const
 
double nextUnalignedFireInterval () const
 
double repeatInterval () const
 
std::chrono::milliseconds repeatIntervalMS () const
 
void augmentFireInterval (double delta)
 
void augmentFireInterval (std::chrono::milliseconds delta)
 
void augmentFireInterval (Seconds delta)
 
void augmentRepeatInterval (double delta)
 
void augmentRepeatInterval (std::chrono::milliseconds delta)
 
void augmentRepeatInterval (Seconds delta)
 
void didChangeAlignmentInterval ()
 
- Static Protected Member Functions inherited from WebCore::TimerBase
static double msToSeconds (std::chrono::milliseconds duration)
 
static std::chrono::milliseconds secondsToMS (double duration)
 
static double msToSeconds (std::chrono::milliseconds duration)
 
static std::chrono::milliseconds secondsToMS (double duration)
 
static void fireTimersInNestedEventLoop ()
 
static void fireTimersInNestedEventLoop ()
 

Constructor & Destructor Documentation

◆ DeferrableOneShotTimer() [1/4]

template<typename TimerFiredClass >
WebCore::DeferrableOneShotTimer::DeferrableOneShotTimer ( TimerFiredClass &  object,
void(TimerFiredClass::*)()  function,
std::chrono::milliseconds  delay 
)
inline

◆ DeferrableOneShotTimer() [2/4]

WebCore::DeferrableOneShotTimer::DeferrableOneShotTimer ( std::function< void()>  function,
std::chrono::milliseconds  delay 
)
inline

◆ DeferrableOneShotTimer() [3/4]

template<typename TimerFiredClass >
WebCore::DeferrableOneShotTimer::DeferrableOneShotTimer ( TimerFiredClass &  object,
void(TimerFiredClass::*)()  function,
std::chrono::milliseconds  delay 
)
inline

◆ DeferrableOneShotTimer() [4/4]

WebCore::DeferrableOneShotTimer::DeferrableOneShotTimer ( std::function< void()>  function,
std::chrono::milliseconds  delay 
)
inline

Member Function Documentation

◆ restart() [1/2]

void WebCore::DeferrableOneShotTimer::restart ( )
inline

◆ restart() [2/2]

void WebCore::DeferrableOneShotTimer::restart ( )
inline

◆ stop() [1/2]

void WebCore::DeferrableOneShotTimer::stop ( )
inline

◆ stop() [2/2]

void WebCore::DeferrableOneShotTimer::stop ( )
inline

The documentation for this class was generated from the following file: