| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/glue/webkitplatformsupport_impl.h" | 5 #include "webkit/glue/webkitplatformsupport_impl.h" |
| 6 | 6 |
| 7 #if defined(OS_LINUX) | 7 #if defined(OS_LINUX) |
| 8 #include <malloc.h> | 8 #include <malloc.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "grit/webkit_resources.h" | 30 #include "grit/webkit_resources.h" |
| 31 #include "grit/webkit_strings.h" | 31 #include "grit/webkit_strings.h" |
| 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCookie.h" | 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCookie.h" |
| 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebData.h" | 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebData.h" |
| 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" | 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" |
| 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginListBuilder.
h" | 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginListBuilder.
h" |
| 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" | 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
| 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
| 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" | 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" |
| 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" |
| 40 #include "webkit/glue/media/audio_decoder.h" | |
| 41 #include "webkit/plugins/npapi/plugin_instance.h" | |
| 42 #include "webkit/plugins/webplugininfo.h" | |
| 43 #include "webkit/glue/webkit_glue.h" | 40 #include "webkit/glue/webkit_glue.h" |
| 44 #include "webkit/glue/websocketstreamhandle_impl.h" | 41 #include "webkit/glue/websocketstreamhandle_impl.h" |
| 45 #include "webkit/glue/webthread_impl.h" | 42 #include "webkit/glue/webthread_impl.h" |
| 46 #include "webkit/glue/weburlloader_impl.h" | 43 #include "webkit/glue/weburlloader_impl.h" |
| 44 #include "webkit/media/audio_decoder.h" |
| 45 #include "webkit/plugins/npapi/plugin_instance.h" |
| 46 #include "webkit/plugins/webplugininfo.h" |
| 47 | 47 |
| 48 #if defined(OS_LINUX) | 48 #if defined(OS_LINUX) |
| 49 #include "v8/include/v8.h" | 49 #include "v8/include/v8.h" |
| 50 #endif | 50 #endif |
| 51 | 51 |
| 52 using WebKit::WebAudioBus; | 52 using WebKit::WebAudioBus; |
| 53 using WebKit::WebCookie; | 53 using WebKit::WebCookie; |
| 54 using WebKit::WebData; | 54 using WebKit::WebData; |
| 55 using WebKit::WebLocalizedString; | 55 using WebKit::WebLocalizedString; |
| 56 using WebKit::WebPluginListBuilder; | 56 using WebKit::WebPluginListBuilder; |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 } | 443 } |
| 444 } | 444 } |
| 445 | 445 |
| 446 NOTREACHED() << "Unknown image resource " << name; | 446 NOTREACHED() << "Unknown image resource " << name; |
| 447 return WebData(); | 447 return WebData(); |
| 448 } | 448 } |
| 449 | 449 |
| 450 bool WebKitPlatformSupportImpl::loadAudioResource( | 450 bool WebKitPlatformSupportImpl::loadAudioResource( |
| 451 WebKit::WebAudioBus* destination_bus, const char* audio_file_data, | 451 WebKit::WebAudioBus* destination_bus, const char* audio_file_data, |
| 452 size_t data_size, double sample_rate) { | 452 size_t data_size, double sample_rate) { |
| 453 return DecodeAudioFileData(destination_bus, | 453 return webkit_media::DecodeAudioFileData(destination_bus, |
| 454 audio_file_data, | 454 audio_file_data, |
| 455 data_size, | 455 data_size, |
| 456 sample_rate); | 456 sample_rate); |
| 457 } | 457 } |
| 458 | 458 |
| 459 WebString WebKitPlatformSupportImpl::queryLocalizedString( | 459 WebString WebKitPlatformSupportImpl::queryLocalizedString( |
| 460 WebLocalizedString::Name name) { | 460 WebLocalizedString::Name name) { |
| 461 int message_id = ToMessageID(name); | 461 int message_id = ToMessageID(name); |
| 462 if (message_id < 0) | 462 if (message_id < 0) |
| 463 return WebString(); | 463 return WebString(); |
| 464 return GetLocalizedString(message_id); | 464 return GetLocalizedString(message_id); |
| 465 } | 465 } |
| 466 | 466 |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 } | 679 } |
| 680 | 680 |
| 681 // static | 681 // static |
| 682 void WebKitPlatformSupportImpl::DestroyCurrentThread(void* thread) { | 682 void WebKitPlatformSupportImpl::DestroyCurrentThread(void* thread) { |
| 683 WebThreadImplForMessageLoop* impl = | 683 WebThreadImplForMessageLoop* impl = |
| 684 static_cast<WebThreadImplForMessageLoop*>(thread); | 684 static_cast<WebThreadImplForMessageLoop*>(thread); |
| 685 delete impl; | 685 delete impl; |
| 686 } | 686 } |
| 687 | 687 |
| 688 } // namespace webkit_glue | 688 } // namespace webkit_glue |
| OLD | NEW |