Lines Matching refs:Global
9 #include "Global.h"
15 Global* Global::gGlobal = NULL;
22 int32_t Global::getNextTimerID() {
33 void Global::reportException(v8::TryCatch* tryCatch) {
75 void Global::Inval(const v8::FunctionCallbackInfo<v8::Value>& args) {
84 void Global::Print(const v8::FunctionCallbackInfo<v8::Value>& args) {
104 void Global::SetTimeout(const v8::FunctionCallbackInfo<v8::Value>& args) {
126 evt->setTargetProc(Global::TimeOutProc);
134 bool Global::TimeOutProc(const SkEvent& evt) {
138 // Create a local context from our global context.
156 v8::Handle<v8::Value> result = onTimeout->Call(context->Global(), argc, NULL);
178 v8::Handle<v8::Context> Global::createRootContext() {
179 // Create a template for the global object.
180 v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New();
182 global->Set(v8::String::NewFromUtf8(fIsolate, "print"),
183 v8::FunctionTemplate::New(fIsolate, Global::Print));
184 global->Set(v8::String::NewFromUtf8(fIsolate, "setTimeout"),
185 v8::FunctionTemplate::New(fIsolate, Global::SetTimeout));
186 global->Set(v8::String::NewFromUtf8(fIsolate, "inval"),
187 v8::FunctionTemplate::New(fIsolate, Global::Inval));
190 return v8::Context::New(fIsolate, NULL, global);
193 void Global::initialize() {
206 // context in a global.
210 bool Global::parseScript(const char script[]) {
215 // Get the global context.