diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-25 01:34:57 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-25 01:34:57 +0000 |
commit | df407eaf9bad2ca4e4d2099904d0a35d11caec3e (patch) | |
tree | f645a4906ee7887995ee8c8df3e8251d00bc9fd9 /webkit/api/src/ChromiumBridge.cpp | |
parent | 29acfb3095a9e484443ffc149d43908ecb17f42f (diff) | |
download | chromium_src-df407eaf9bad2ca4e4d2099904d0a35d11caec3e.zip chromium_src-df407eaf9bad2ca4e4d2099904d0a35d11caec3e.tar.gz chromium_src-df407eaf9bad2ca4e4d2099904d0a35d11caec3e.tar.bz2 |
Implemented rest of webkit api/glue code needed for HTML5 media canPlayType().
BUG=16636
TEST=we should respect the codecs= parameter when provided as a media mime type
Review URL: http://codereview.chromium.org/160073
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21607 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/api/src/ChromiumBridge.cpp')
-rw-r--r-- | webkit/api/src/ChromiumBridge.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/webkit/api/src/ChromiumBridge.cpp b/webkit/api/src/ChromiumBridge.cpp index f8d2e99..93ac857 100644 --- a/webkit/api/src/ChromiumBridge.cpp +++ b/webkit/api/src/ChromiumBridge.cpp @@ -196,17 +196,20 @@ bool ChromiumBridge::layoutTestMode() bool ChromiumBridge::isSupportedImageMIMEType(const String& mimeType) { - return webKitClient()->mimeRegistry()->supportsImageMIMEType(mimeType); + return webKitClient()->mimeRegistry()->supportsImageMIMEType(mimeType) + != WebMimeRegistry::IsNotSupported; } bool ChromiumBridge::isSupportedJavaScriptMIMEType(const String& mimeType) { - return webKitClient()->mimeRegistry()->supportsJavaScriptMIMEType(mimeType); + return webKitClient()->mimeRegistry()->supportsJavaScriptMIMEType(mimeType) + != WebMimeRegistry::IsNotSupported; } bool ChromiumBridge::isSupportedNonImageMIMEType(const String& mimeType) { - return webKitClient()->mimeRegistry()->supportsNonImageMIMEType(mimeType); + return webKitClient()->mimeRegistry()->supportsNonImageMIMEType(mimeType) + != WebMimeRegistry::IsNotSupported; } String ChromiumBridge::mimeTypeForExtension(const String& extension) |