Home | History | Annotate | Download | only in base

Lines Matching defs:info

141   // Checks to see if the icons in |info| matches |size| (in pixels). Returns
143 size_t MatchesSize(SubDirInfo* info, size_t size);
193 SubDirInfo* info = &info_array_[subdir_iter->second];
194 if (MatchesSize(info, size) == 0) {
206 SubDirInfo* info = &info_array_[subdir_iter->second];
207 int delta = abs(MatchesSize(info, size));
326 size_t IconTheme::MatchesSize(SubDirInfo* info, size_t size) {
327 if (info->type == SubDirInfo::Fixed) {
328 return size - info->size;
329 } else if (info->type == SubDirInfo::Scalable) {
330 if (size >= info->min_size && size <= info->max_size) {
333 return abs(size - info->min_size) < abs(size - info->max_size) ?
334 (size - info->min_size) : (size - info->max_size);
337 if (size >= info->size - info->threshold &&
338 size <= info->size + info->threshold) {
341 return abs(size - info->size - info->threshold) <
342 abs(size - info->size + info->threshold)
343 ? size - info->size - info->threshold
344 : size - info->size + info->threshold;