Exemple #1
0
 static v8::Handle<v8::Value> initBeforeLoadEventCallback(const v8::Arguments& args) {
   INC_STATS("DOM.BeforeLoadEvent.initBeforeLoadEvent");
   BeforeLoadEvent* imp = V8BeforeLoadEvent::toNative(args.Holder());
   V8Parameter<> type = args[0];
   bool canBubble = args[1]->BooleanValue();
   bool cancelable = args[2]->BooleanValue();
   V8Parameter<> url = args[3];
   imp->initBeforeLoadEvent(type, canBubble, cancelable, url);
   return v8::Handle<v8::Value>();
 }
Exemple #2
0
static v8::Handle<v8::Value> initBeforeLoadEventCallback(const v8::Arguments& args)
{
    INC_STATS("DOM.BeforeLoadEvent.initBeforeLoadEvent");
    BeforeLoadEvent* imp = V8BeforeLoadEvent::toNative(args.Holder());
    STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, type, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined));
    EXCEPTION_BLOCK(bool, canBubble, MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefined)->BooleanValue());
    EXCEPTION_BLOCK(bool, cancelable, MAYBE_MISSING_PARAMETER(args, 2, MissingIsUndefined)->BooleanValue());
    STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, url, MAYBE_MISSING_PARAMETER(args, 3, MissingIsUndefined));
    imp->initBeforeLoadEvent(type, canBubble, cancelable, url);
    return v8::Handle<v8::Value>();
}