Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(528)

Side by Side Diff: webkit/api/src/ChromiumBridge.cpp

Issue 160073: Implemented rest of webkit api/glue code needed for HTML5 media canPlayType(). (Closed)
Patch Set: SupportsType... it's everywhere! Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webkit/api/public/WebMimeRegistry.h ('k') | webkit/api/src/WebMediaPlayerClientImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 bool ChromiumBridge::layoutTestMode() 190 bool ChromiumBridge::layoutTestMode()
191 { 191 {
192 return WebKit::layoutTestMode(); 192 return WebKit::layoutTestMode();
193 } 193 }
194 194
195 // MimeType ------------------------------------------------------------------- 195 // MimeType -------------------------------------------------------------------
196 196
197 bool ChromiumBridge::isSupportedImageMIMEType(const String& mimeType) 197 bool ChromiumBridge::isSupportedImageMIMEType(const String& mimeType)
198 { 198 {
199 return webKitClient()->mimeRegistry()->supportsImageMIMEType(mimeType); 199 return webKitClient()->mimeRegistry()->supportsImageMIMEType(mimeType)
200 != WebMimeRegistry::IsNotSupported;
200 } 201 }
201 202
202 bool ChromiumBridge::isSupportedJavaScriptMIMEType(const String& mimeType) 203 bool ChromiumBridge::isSupportedJavaScriptMIMEType(const String& mimeType)
203 { 204 {
204 return webKitClient()->mimeRegistry()->supportsJavaScriptMIMEType(mimeType); 205 return webKitClient()->mimeRegistry()->supportsJavaScriptMIMEType(mimeType)
206 != WebMimeRegistry::IsNotSupported;
205 } 207 }
206 208
207 bool ChromiumBridge::isSupportedNonImageMIMEType(const String& mimeType) 209 bool ChromiumBridge::isSupportedNonImageMIMEType(const String& mimeType)
208 { 210 {
209 return webKitClient()->mimeRegistry()->supportsNonImageMIMEType(mimeType); 211 return webKitClient()->mimeRegistry()->supportsNonImageMIMEType(mimeType)
212 != WebMimeRegistry::IsNotSupported;
210 } 213 }
211 214
212 String ChromiumBridge::mimeTypeForExtension(const String& extension) 215 String ChromiumBridge::mimeTypeForExtension(const String& extension)
213 { 216 {
214 return webKitClient()->mimeRegistry()->mimeTypeForExtension(extension); 217 return webKitClient()->mimeRegistry()->mimeTypeForExtension(extension);
215 } 218 }
216 219
217 String ChromiumBridge::mimeTypeFromFile(const String& path) 220 String ChromiumBridge::mimeTypeFromFile(const String& path)
218 { 221 {
219 return webKitClient()->mimeRegistry()->mimeTypeFromFile(path); 222 return webKitClient()->mimeRegistry()->mimeTypeFromFile(path);
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 450
448 long long ChromiumBridge::databaseGetFileSize(const String& fileName) 451 long long ChromiumBridge::databaseGetFileSize(const String& fileName)
449 { 452 {
450 // FIXME: un-stub when the code on the browser process side is submitted 453 // FIXME: un-stub when the code on the browser process side is submitted
451 //return webKitClient()->databaseGetFileSize(WebString(fileName)); 454 //return webKitClient()->databaseGetFileSize(WebString(fileName));
452 return 0LL; 455 return 0LL;
453 } 456 }
454 #endif 457 #endif
455 458
456 } // namespace WebCore 459 } // namespace WebCore
OLDNEW
« no previous file with comments | « webkit/api/public/WebMimeRegistry.h ('k') | webkit/api/src/WebMediaPlayerClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698