Lines Matching refs:dom
120 SkDOMListSource(const SkDOM& dom, const SkDOM::Node* node) : fDirTail(">")
122 const SkDOM::Node* child = dom.getFirstChild(node, "item");
128 child = dom.getNextSibling(child, "item");
137 child = dom.getFirstChild(node, "item");
140 rec->fLabel.set(dom.findAttr(child, "label"));
141 rec->fTail.set(dom.findAttr(child, "tail"));
142 rec->fAltTail.set(dom.findAttr(child, "alt-tail"));
143 rec->fTarget.set(dom.findAttr(child, "target"));
146 int index = dom.findList(child, "type", "dir,toggle");
150 child = dom.getNextSibling(child, "item");
195 SkListSource* SkListSource::CreateFromDOM(const SkDOM& dom, const SkDOM::Node* node)
197 return new SkDOMListSource(dom, node);
467 void SkListView::onInflate(const SkDOM& dom, const SkDOM::Node* node)
469 this->INHERITED::onInflate(dom, node);
474 if (dom.findScalar(node, "row-height", &x))
477 if ((child = dom.getFirstChild(node, "hilite-paint")) != NULL)
478 SkPaint_Inflate(&this->paint(kHiliteCell_Attr), dom, child);
484 if ((child = dom.getFirstChild(node, "file-listsource")) != NULL)
486 const char* path = dom.findAttr(child, "path");
489 dom.findAttr(child, "filter"),
490 dom.findAttr(child, "target"));
492 else if ((child = dom.getFirstChild(node, "xml-listsource")) != NULL)
494 src = SkListSource::CreateFromDOM(dom, child);
856 void SkGridView::onInflate(const SkDOM& dom, const SkDOM::Node* node)
858 this->INHERITED::onInflate(dom, node);
863 if (dom.findScalars(node, "cell-size", x, 2))
866 if ((child = dom.getFirstChild(node, "hilite-paint")) != NULL)
867 SkPaint_Inflate(&this->paint(kHiliteCell_Attr), dom, child);
873 if ((child = dom.getFirstChild(node, "file-listsource")) != NULL)
875 const char* path = dom.findAttr(child, "path");
878 dom.findAttr(child, "filter"),
879 dom.findAttr(child, "target"));
881 else if ((child = dom.getFirstChild(node, "xml-listsource")) != NULL)
883 src = SkListSource::CreateFromDOM(dom, child);