本文整理汇总了C++中JSKeyboardEvent::globalObject方法的典型用法代码示例。如果您正苦于以下问题:C++ JSKeyboardEvent::globalObject方法的具体用法?C++ JSKeyboardEvent::globalObject怎么用?C++ JSKeyboardEvent::globalObject使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JSKeyboardEvent
的用法示例。
在下文中一共展示了JSKeyboardEvent::globalObject方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: jsKeyboardEventConstructor
EncodedJSValue jsKeyboardEventConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName)
{
JSKeyboardEvent* domObject = jsDynamicCast<JSKeyboardEvent*>(JSValue::decode(thisValue));
if (!domObject)
return throwVMTypeError(exec);
if (!domObject)
return throwVMTypeError(exec);
return JSValue::encode(JSKeyboardEvent::getConstructor(exec->vm(), domObject->globalObject()));
}
示例2: jsKeyboardEventConstructor
JSValue jsKeyboardEventConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSKeyboardEvent* domObject = static_cast<JSKeyboardEvent*>(asObject(slot.slotBase()));
return JSKeyboardEvent::getConstructor(exec, domObject->globalObject());
}
示例3: jsKeyboardEventConstructor
JSValue jsKeyboardEventConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSKeyboardEvent* domObject = static_cast<JSKeyboardEvent*>(asObject(slotBase));
return JSKeyboardEvent::getConstructor(exec, domObject->globalObject());
}