Home | History | Annotate | Download | only in platform

Lines Matching refs:mimeType

69         String mimeType = MIMETypeForImageSourceType(supportedType.get());
70 if (!mimeType.isEmpty()) {
71 supportedImageMIMETypes->add(mimeType);
72 supportedImageResourceMIMETypes->add(mimeType);
108 String mimeType = MIMETypeRegistry::getMIMETypeForExtension(formats.at(i).constData());
109 if (!mimeType.isEmpty()) {
110 supportedImageMIMETypes->add(mimeType);
111 supportedImageResourceMIMETypes->add(mimeType);
166 String mimeType = MIMETypeForImageSourceType(supportedType.get());
167 if (!mimeType.isEmpty())
168 supportedImageMIMETypesForEncoding->add(mimeType);
171 // FIXME: Add Windows support for all the supported UTI's when a way to convert from MIMEType to UTI reliably is found.
180 String mimeType = MIMETypeRegistry::getMIMETypeForExtension(formats.at(i).constData());
181 if (!mimeType.isEmpty())
182 supportedImageMIMETypesForEncoding->add(mimeType);
472 mimeType)
474 if (mimeType.isEmpty())
478 return supportedImageMIMETypes->contains(mimeType);
481 bool MIMETypeRegistry::isSupportedImageResourceMIMEType(const String& mimeType)
483 if (mimeType.isEmpty())
487 return supportedImageResourceMIMETypes->contains(mimeType);
490 bool MIMETypeRegistry::isSupportedImageMIMETypeForEncoding(const String& mimeType)
494 if (mimeType.isEmpty())
498 return supportedImageMIMETypesForEncoding->contains(mimeType);
501 bool MIMETypeRegistry::isSupportedJavaScriptMIMEType(const String& mimeType)
503 if (mimeType.isEmpty())
507 return supportedJavaScriptMIMETypes->contains(mimeType);
510 bool MIMETypeRegistry::isSupportedNonImageMIMEType(const String& mimeType)
512 if (mimeType.isEmpty())
516 return supportedNonImageMIMETypes->contains(mimeType);
519 bool MIMETypeRegistry::isSupportedMediaMIMEType(const String& mimeType)
521 if (mimeType.isEmpty())
525 return supportedMediaMIMETypes->contains(mimeType);
528 bool MIMETypeRegistry::isUnsupportedTextMIMEType(const String& mimeType)
530 if (mimeType.isEmpty())
534 return unsupportedTextMIMETypes->contains(mimeType);
537 bool MIMETypeRegistry::isJavaAppletMIMEType(const String& mimeType)
543 return mimeType.startsWith("application/x-java-applet", false)
544 || mimeType.startsWith("application/x-java-bean", false)
545 || mimeType.startsWith("application/x-java-vm", false);