diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-23 21:37:10 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-23 21:37:10 +0000 |
commit | 1d6bc9b48655ea2e03646fdf2f8e0a9e99bdb9fd (patch) | |
tree | 1b6705e546405133523ea87de3f0105ce8fe2462 /webkit/tools | |
parent | 52161d47dd3ef36e23a33761734585907d9d645a (diff) | |
download | chromium_src-1d6bc9b48655ea2e03646fdf2f8e0a9e99bdb9fd.zip chromium_src-1d6bc9b48655ea2e03646fdf2f8e0a9e99bdb9fd.tar.gz chromium_src-1d6bc9b48655ea2e03646fdf2f8e0a9e99bdb9fd.tar.bz2 |
Mucelage changes for Mac TestShell, to work with the current glue in the
non-PLATFORM(MAC) world.
Review URL: http://codereview.chromium.org/8122
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3865 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools')
-rw-r--r-- | webkit/tools/test_shell/test_shell_mac.mm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/webkit/tools/test_shell/test_shell_mac.mm b/webkit/tools/test_shell/test_shell_mac.mm index 37a34de..bdb2626 100644 --- a/webkit/tools/test_shell/test_shell_mac.mm +++ b/webkit/tools/test_shell/test_shell_mac.mm @@ -818,8 +818,8 @@ void AppendToLog(const char* file, int line, const char* msg) { logging::LogMessage(file, line).stream() << msg; } -bool GetMimeTypeFromExtension(std::string &ext, std::string* mime_type) { - return net::GetMimeTypeFromExtension(UTF8ToWide(ext), mime_type); +bool GetMimeTypeFromExtension(const std::wstring &ext, std::string* mime_type) { + return net::GetMimeTypeFromExtension(ext, mime_type); } bool GetMimeTypeFromFile(const std::string &file_path, @@ -828,12 +828,8 @@ bool GetMimeTypeFromFile(const std::string &file_path, } bool GetPreferredExtensionForMimeType(const std::string& mime_type, - std::string* ext) { - std::wstring wide_ext; - bool result = net::GetPreferredExtensionForMimeType(mime_type, &wide_ext); - if (result) - *ext = WideToUTF8(wide_ext); - return result; + std::wstring* ext) { + return net::GetPreferredExtensionForMimeType(mime_type, ext); } std::wstring GetLocalizedString(int message_id) { @@ -877,6 +873,10 @@ NSCursor* LoadCursor(int cursor_id) { return [NSCursor arrowCursor]; } +CGImageRef GetBitmapResource(int resource_id) { + return NULL; +} + bool GetApplicationDirectory(std::string* path) { NSString* bundle_path = [[NSBundle mainBundle] bundlePath]; if (!bundle_path) |