Home | History | Annotate | Download | only in base

Lines Matching full:icontheme

33 class IconTheme;
51 std::map<std::string, IconTheme*>* icon_themes_;
56 IconTheme* default_themes_[kDefaultThemeNum];
85 // IconTheme represents an icon theme as defined by the xdg icon theme spec.
88 class IconTheme {
113 explicit IconTheme(const std::string& name);
115 ~IconTheme() {
126 static IconTheme* LoadTheme(const std::string& theme_name);
161 IconTheme::IconTheme(const std::string& name)
185 FilePath IconTheme::GetIconPath(const std::string& icon_name, int size,
220 IconTheme* theme = LoadTheme(inherits_);
228 IconTheme* IconTheme::LoadTheme(const std::string& theme_name) {
229 scoped_ptr<IconTheme> theme;
230 std::map<std::string, IconTheme*>* icon_themes =
235 theme.reset(new IconTheme(theme_name));
243 FilePath IconTheme::GetIconPathUnderSubdir(const std::string& icon_name,
260 bool IconTheme::LoadIndexTheme(const FilePath& file) {
326 size_t IconTheme::MatchesSize(SubDirInfo* info, size_t size) {
349 std::string IconTheme::ReadLine(FILE* fp) {
369 bool IconTheme::SetDirectories(const std::string& dirs) {
452 constants->icon_themes_ = new std::map<std::string, IconTheme*>;
482 IconTheme** default_themes =
506 default_themes[1] = IconTheme::LoadTheme(kde_default_theme);
507 default_themes[2] = IconTheme::LoadTheme(kde_fallback_theme);
510 default_themes[1] = IconTheme::LoadTheme(
512 default_themes[2] = IconTheme::LoadTheme("gnome");
515 default_themes[3] = IconTheme::LoadTheme("hicolor");
532 std::map<std::string, IconTheme*>* icon_themes = constants->icon_themes_;
537 IconTheme** default_themes = constants->default_themes_;