/*virtual*/ void SkProgressBarView::onInflate(const SkDOM& dom, const SkDOM::Node* node) { this->INHERITED::onInflate(dom, node); int32_t temp; if (dom.findS32(node, "max", &temp)) this->setMax(temp); if (dom.findS32(node, "progress", &temp)) this->setProgress(temp); }
/* virtual */ void SkScrollBarView::onInflate(const SkDOM& dom, const SkDOM::Node* node) { this->INHERITED::onInflate(dom, node); int32_t value; if (dom.findS32(node, "total", &value)) this->setTotal(value); if (dom.findS32(node, "shown", &value)) this->setShown(value); }