本文整理汇总了C++中HTMLTextAreaElement::form方法的典型用法代码示例。如果您正苦于以下问题:C++ HTMLTextAreaElement::form方法的具体用法?C++ HTMLTextAreaElement::form怎么用?C++ HTMLTextAreaElement::form使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTMLTextAreaElement
的用法示例。
在下文中一共展示了HTMLTextAreaElement::form方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getValueProperty
JSValue* JSHTMLTextAreaElement::getValueProperty(ExecState* exec, int token) const
{
switch (token) {
case DefaultValueAttrNum: {
HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(impl());
return jsString(exec, imp->defaultValue());
}
case FormAttrNum: {
HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(impl());
return toJS(exec, WTF::getPtr(imp->form()));
}
case AccessKeyAttrNum: {
HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(impl());
return jsString(exec, imp->accessKey());
}
case ColsAttrNum: {
HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(impl());
return jsNumber(exec, imp->cols());
}
case DisabledAttrNum: {
HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(impl());
return jsBoolean(imp->disabled());
}
case AutofocusAttrNum: {
HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(impl());
return jsBoolean(imp->autofocus());
}
case NameAttrNum: {
HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(impl());
return jsString(exec, imp->name());
}
case ReadOnlyAttrNum: {
HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(impl());
return jsBoolean(imp->readOnly());
}
case RowsAttrNum: {
HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(impl());
return jsNumber(exec, imp->rows());
}
case TypeAttrNum: {
HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(impl());
return jsString(exec, imp->type());
}
case ValueAttrNum: {
HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(impl());
return jsString(exec, imp->value());
}
case SelectionStartAttrNum: {
HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(impl());
return jsNumber(exec, imp->selectionStart());
}
case SelectionEndAttrNum: {
HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(impl());
return jsNumber(exec, imp->selectionEnd());
}
case ConstructorAttrNum:
return getConstructor(exec);
}
return 0;
}
示例2: form
HRESULT STDMETHODCALLTYPE DOMHTMLTextAreaElement::form(
/* [retval][out] */ IDOMHTMLElement** result)
{
if (!result)
return E_POINTER;
*result = 0;
ASSERT(m_element && m_element->hasTagName(textareaTag));
HTMLTextAreaElement* textareaElement = static_cast<HTMLTextAreaElement*>(m_element);
COMPtr<IDOMElement> domElement;
domElement.adoptRef(DOMHTMLElement::createInstance(textareaElement->form()));
if (domElement)
return domElement->QueryInterface(IID_IDOMHTMLElement, (void**) result);
return E_FAIL;
}
示例3: formAttrGetter
static v8::Handle<v8::Value> formAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
INC_STATS("DOM.HTMLTextAreaElement.form._get");
HTMLTextAreaElement* imp = V8HTMLTextAreaElement::toNative(info.Holder());
return toV8(imp->form());
}