Lines Matching refs:Timer
5 #include "gin/modules/timer.h"
16 return gin::StringToSymbol(isolate, "::gin::Timer");
21 // Timer =======================================================================
23 gin::WrapperInfo Timer::kWrapperInfo = { gin::kEmbedderNativeGin };
26 Handle<Timer> Timer::Create(TimerType type, v8::Isolate* isolate, int delay_ms,
28 return CreateHandle(isolate, new Timer(isolate, type == TYPE_REPEATING,
32 ObjectTemplateBuilder Timer::GetObjectTemplateBuilder(v8::Isolate* isolate) {
35 return Wrappable<Timer>::GetObjectTemplateBuilder(isolate)
37 base::Bind(&base::Timer::Stop, base::Unretained(&timer_)))
39 base::Bind(&base::Timer::Reset, base::Unretained(&timer_)));
42 Timer::Timer(v8::Isolate* isolate, bool repeating, int delay_ms,
51 base::Bind(&Timer::OnTimerFired, weak_factory_.GetWeakPtr()));
54 Timer::~Timer() {
57 void Timer::OnTimerFired() {
75 const char TimerModule::kName[] = "timer";
98 base::Bind(&Timer::Create, Timer::TYPE_ONE_SHOT))
100 base::Bind(&Timer::Create, Timer::TYPE_REPEATING));