本文整理汇总了C++中RenderBoxModelObject::isProgress方法的典型用法代码示例。如果您正苦于以下问题:C++ RenderBoxModelObject::isProgress方法的具体用法?C++ RenderBoxModelObject::isProgress怎么用?C++ RenderBoxModelObject::isProgress使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RenderBoxModelObject
的用法示例。
在下文中一共展示了RenderBoxModelObject::isProgress方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: create
static PassRefPtr<AccessibilityObject> createFromRenderer(RenderObject* renderer)
{
// FIXME: How could renderer->node() ever not be an Element?
Node* node = renderer->node();
// If the node is aria role="list" or the aria role is empty and its a
// ul/ol/dl type (it shouldn't be a list if aria says otherwise).
if (node && ((nodeHasRole(node, "list") || nodeHasRole(node, "directory"))
|| (nodeHasRole(node, nullAtom) && (node->hasTagName(ulTag) || node->hasTagName(olTag) || node->hasTagName(dlTag)))))
return AccessibilityList::create(renderer);
// aria tables
if (nodeHasRole(node, "grid") || nodeHasRole(node, "treegrid"))
return AccessibilityARIAGrid::create(renderer);
if (nodeHasRole(node, "row"))
return AccessibilityARIAGridRow::create(renderer);
if (nodeHasRole(node, "gridcell") || nodeHasRole(node, "columnheader") || nodeHasRole(node, "rowheader"))
return AccessibilityARIAGridCell::create(renderer);
#if ENABLE(VIDEO)
// media controls
if (node && node->isMediaControlElement())
return AccessibilityMediaControl::create(renderer);
#endif
#if ENABLE(SVG)
if (renderer->isSVGRoot())
return AccessibilitySVGRoot::create(renderer);
#endif
if (renderer->isBoxModelObject()) {
RenderBoxModelObject* cssBox = toRenderBoxModelObject(renderer);
if (cssBox->isListBox())
return AccessibilityListBox::create(toRenderListBox(cssBox));
if (cssBox->isMenuList())
return AccessibilityMenuList::create(toRenderMenuList(cssBox));
// standard tables
if (cssBox->isTable())
return AccessibilityTable::create(toRenderTable(cssBox));
if (cssBox->isTableRow())
return AccessibilityTableRow::create(toRenderTableRow(cssBox));
if (cssBox->isTableCell())
return AccessibilityTableCell::create(toRenderTableCell(cssBox));
#if ENABLE(PROGRESS_ELEMENT)
// progress bar
if (cssBox->isProgress())
return AccessibilityProgressIndicator::create(toRenderProgress(cssBox));
#endif
// input type=range
if (cssBox->isSlider())
return AccessibilitySlider::create(toRenderSlider(cssBox));
}
return AccessibilityRenderObject::create(renderer);
}
示例2: create
static PassRefPtr<AXObject> createFromRenderer(RenderObject* renderer)
{
// FIXME: How could renderer->node() ever not be an Element?
Node* node = renderer->node();
// If the node is aria role="list" or the aria role is empty and its a
// ul/ol/dl type (it shouldn't be a list if aria says otherwise).
if (node && ((nodeHasRole(node, "list") || nodeHasRole(node, "directory"))
|| (nodeHasRole(node, nullAtom) && (isHTMLUListElement(*node) || isHTMLOListElement(*node) || isHTMLDListElement(*node)))))
return AXList::create(renderer);
// aria tables
if (nodeHasRole(node, "grid") || nodeHasRole(node, "treegrid"))
return AXARIAGrid::create(renderer);
if (nodeHasRole(node, "row"))
return AXARIAGridRow::create(renderer);
if (nodeHasRole(node, "gridcell") || nodeHasRole(node, "columnheader") || nodeHasRole(node, "rowheader"))
return AXARIAGridCell::create(renderer);
// media controls
if (node && node->isMediaControlElement())
return AccessibilityMediaControl::create(renderer);
if (isHTMLOptionElement(node))
return AXListBoxOption::create(renderer);
if (renderer->isSVGRoot())
return AXSVGRoot::create(renderer);
if (renderer->isBoxModelObject()) {
RenderBoxModelObject* cssBox = toRenderBoxModelObject(renderer);
if (cssBox->isListBox())
return AXListBox::create(toRenderListBox(cssBox));
if (cssBox->isMenuList())
return AXMenuList::create(toRenderMenuList(cssBox));
// standard tables
if (cssBox->isTable())
return AXTable::create(toRenderTable(cssBox));
if (cssBox->isTableRow())
return AXTableRow::create(toRenderTableRow(cssBox));
if (cssBox->isTableCell())
return AXTableCell::create(toRenderTableCell(cssBox));
// progress bar
if (cssBox->isProgress())
return AXProgressIndicator::create(toRenderProgress(cssBox));
// input type=range
if (cssBox->isSlider())
return AXSlider::create(toRenderSlider(cssBox));
}
return AXRenderObject::create(renderer);
}