Lines Matching refs:theme
66 base::expected<const ResolvedBag*, NullOrIOError> GetStyleBag(Theme* theme, in GetStyleBag() argument
72 std::optional<AssetManager2::SelectedValue> value = theme->GetAttribute(theme_attribute_resid); in GetStyleBag()
75 auto result = theme->GetAssetManager()->ResolveBag(*value); in GetStyleBag()
84 return theme->GetAssetManager()->GetBag(fallback_resid); in GetStyleBag()
90 base::expected<const ResolvedBag*, NullOrIOError> GetXmlStyleBag(Theme* theme, in GetXmlStyleBag() argument
106 if (std::optional<AssetManager2::SelectedValue> result = theme->GetAttribute(value.data)) { in GetXmlStyleBag()
108 return theme->GetAssetManager()->ResolveBag(*result); in GetXmlStyleBag()
113 return theme->GetAssetManager()->GetBag(value.data); in GetXmlStyleBag()
121 base::expected<std::monostate, IOError> ResolveAttrs(Theme* theme, uint32_t def_style_attr, in ResolveAttrs() argument
126 DEBUG_LOG("APPLY STYLE: theme=0x%p defStyleAttr=0x%x defStyleRes=0x%x", theme, def_style_attr, in ResolveAttrs()
130 const AssetManager2* assetmanager = theme->GetAssetManager(); in ResolveAttrs()
134 const auto default_style_bag = GetStyleBag(theme, def_style_attr, def_style_res, in ResolveAttrs()
169 const auto result = theme->ResolveAttributeReference(value); in ResolveAttrs()
176 if (auto attr_value = theme->GetAttribute(cur_ident)) { in ResolveAttrs()
220 base::expected<std::monostate, IOError> ApplyStyle(Theme* theme, ResXMLParser* xml_parser, in ApplyStyle() argument
225 DEBUG_LOG("APPLY STYLE: theme=0x%p defStyleAttr=0x%x defStyleRes=0x%x xml=0x%p", theme, in ApplyStyle()
229 const AssetManager2* assetmanager = theme->GetAssetManager(); in ApplyStyle()
233 const auto default_style_bag = GetStyleBag(theme, def_style_attr, def_style_resid, in ApplyStyle()
241 const auto xml_style_bag = GetXmlStyleBag(theme, xml_parser, &def_style_theme_flags); in ApplyStyle()
301 auto result = theme->ResolveAttributeReference(value); in ApplyStyle()
308 if (auto attr_value = theme->GetAttribute(cur_ident)) { in ApplyStyle()