Home
last modified time | relevance | path

Searched refs:icon_file (Results 1 – 6 of 6) sorted by relevance

/external/chromium/chrome/browser/web_applications/
Dweb_app.cc111 bool SaveIconWithCheckSum(const FilePath& icon_file, const SkBitmap& image) { in SaveIconWithCheckSum() argument
112 if (!IconUtil::CreateIconFileFromSkBitmap(image, icon_file)) in SaveIconWithCheckSum()
118 FilePath cheksum_file(icon_file.ReplaceExtension(kIconChecksumFileExt)); in SaveIconWithCheckSum()
125 bool ShouldUpdateIcon(const FilePath& icon_file, const SkBitmap& image) { in ShouldUpdateIcon() argument
126 FilePath checksum_file(icon_file.ReplaceExtension(kIconChecksumFileExt)); in ShouldUpdateIcon()
129 if (!file_util::PathExists(icon_file) || in ShouldUpdateIcon()
313 FilePath icon_file = web_app_path_.Append(file_name).ReplaceExtension( in CreateShortcut() local
315 if (!web_app::internals::CheckAndSaveIcon(icon_file, in CreateShortcut()
369 icon_file.value().c_str(), in CreateShortcut()
428 bool CheckAndSaveIcon(const FilePath& icon_file, const SkBitmap& image) { in CheckAndSaveIcon() argument
[all …]
Dweb_app.h73 bool CheckAndSaveIcon(const FilePath& icon_file, const SkBitmap& image);
/external/chromium/chrome/browser/extensions/
Dconvert_web_app_unittest.cc35 FilePath icon_file; in GetIconInfo() local
36 if (!PathService::Get(chrome::DIR_TEST_DATA, &icon_file)) { in GetIconInfo()
41 icon_file = icon_file.AppendASCII("extensions") in GetIconInfo()
50 if (!file_util::ReadFileToString(icon_file, &icon_data)) { in GetIconInfo()
Dconvert_web_app.cc151 FilePath icon_file = icons_dir.AppendASCII( in ConvertWebAppToExtension() local
162 if (!file_util::WriteFile(icon_file, image_data_ptr, image_data.size())) { in ConvertWebAppToExtension()
/external/chromium/base/
Dmime_util_xdg.cc593 FilePath icon_file; in GetMimeIcon() local
627 icon_file = FilePath(icon_names[i]); in GetMimeIcon()
628 if (file_util::PathExists(icon_file)) in GetMimeIcon()
629 return icon_file; in GetMimeIcon()
631 icon_file = LookupIconInDefaultTheme(icon_names[i], size); in GetMimeIcon()
632 if (!icon_file.empty()) in GetMimeIcon()
633 return icon_file; in GetMimeIcon()
/external/chromium/chrome/browser/ui/web_applications/
Dweb_app_ui.cc232 FilePath icon_file = web_app_path.Append(file_name_).ReplaceExtension( in UpdateShortcutsOnFileThread() local
234 web_app::internals::CheckAndSaveIcon(icon_file, shortcut_info_.favicon); in UpdateShortcutsOnFileThread()
254 icon_file.value().c_str(), in UpdateShortcutsOnFileThread()