void FileInputType::requestIcon(const Vector<String>& paths) { if (!paths.size()) return; Chrome* chrome = this->chrome(); if (!chrome) return; if (m_fileIconLoader) m_fileIconLoader->invalidate(); m_fileIconLoader = FileIconLoader::create(this); chrome->loadIconForFiles(paths, m_fileIconLoader.get()); }
void FileInputType::requestIcon(const Vector<String>& paths) { #if PLATFORM(IOS) UNUSED_PARAM(paths); #else if (!paths.size()) return; Chrome* chrome = this->chrome(); if (!chrome) return; if (m_fileIconLoader) m_fileIconLoader->invalidate(); m_fileIconLoader = std::make_unique<FileIconLoader>(static_cast<FileIconLoaderClient&>(*this)); chrome->loadIconForFiles(paths, m_fileIconLoader.get()); #endif }