Home | History | Annotate | Download | only in base

Lines Matching refs:icon_name

119   // Returns the path to an icon with the name |icon_name| and a size of |size|
122 FilePath GetIconPath(const std::string& icon_name, int size, bool inherits);
129 // Returns the path to an icon with the name |icon_name| in |subdir|.
130 FilePath GetIconPathUnderSubdir(const std::string& icon_name,
185 FilePath IconTheme::GetIconPath(const std::string& icon_name, int size,
195 icon_path = GetIconPathUnderSubdir(icon_name, subdir_iter->first);
209 FilePath path = GetIconPathUnderSubdir(icon_name, subdir_iter->first);
223 return theme->GetIconPath(icon_name, size, inherits);
243 FilePath IconTheme::GetIconPathUnderSubdir(const std::string& icon_name,
252 icon_path = icon_path.Append(icon_name + (*icon_formats)[i]);
464 FilePath LookupFallbackIcon(const std::string& icon_name) {
472 icon = iter->first.Append(icon_name + (*icon_formats)[i]);
528 // Try to find an icon with the name |icon_name| that's |size| pixels.
529 FilePath LookupIconInDefaultTheme(const std::string& icon_name, int size) {
540 icon_path = default_themes[i]->GetIconPath(icon_name, size, true);
545 return LookupFallbackIcon(icon_name);
592 std::string icon_name;
598 icon_name = std::string(icon ? icon : "");
601 if (icon_name.length())
602 icon_names.push_back(icon_name);
605 icon_name = mime_type;
606 for (size_t i = icon_name.find('/', 0); i != std::string::npos;
607 i = icon_name.find('/', i + 1)) {
608 icon_name[i] = '-';
610 icon_names.push_back(icon_name);
612 icon_names.push_back("gnome-mime-" + icon_name);
615 icon_name = mime_type.substr(mime_type.find("/x-") + 3);
616 icon_names.push_back(icon_name);
619 icon_name = mime_type.substr(0, mime_type.find('/')) + "-x-generic";
620 icon_names.push_back(icon_name);