Mac: Fix compile errors.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@645 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2012-05-23 20:33:32 +00:00
parent 801ff3ca43
commit 8d5bad43d3
5 changed files with 14 additions and 4 deletions

View File

@ -645,6 +645,7 @@
'<(DEPTH)/webkit/support/webkit_support.gyp:appcache',
'<(DEPTH)/webkit/support/webkit_support.gyp:blob',
'<(DEPTH)/webkit/support/webkit_support.gyp:database',
'<(DEPTH)/webkit/support/webkit_support.gyp:dom_storage',
'<(DEPTH)/webkit/support/webkit_support.gyp:fileapi',
'<(DEPTH)/webkit/support/webkit_support.gyp:glue',
'<(DEPTH)/webkit/support/webkit_support.gyp:quota',

View File

@ -349,7 +349,7 @@ WebRect BrowserWebViewDelegate::windowResizerRect() {
}
void BrowserWebViewDelegate::startDragging(
WebFrame* frame,
WebKit::WebFrame* frame,
const WebDragData& data,
WebDragOperationsMask mask,
const WebImage& image,

View File

@ -41,7 +41,14 @@ const int kNextBrowserIdReset = 1;
#if defined(OS_MACOSX)
FilePath GetDefaultPackPath() {
// Start out with the path to the running executable.
FilePath execPath;
PathService::Get(base::FILE_EXE, &execPath);
// Get the main bundle path.
FilePath bundlePath = base::mac::GetAppBundlePath(execPath);
// Go into the Contents/Resources directory.
return bundlePath.Append(FILE_PATH_LITERAL("Contents"))
.Append(FILE_PATH_LITERAL("Resources"));
}

View File

@ -243,8 +243,11 @@ using WebKit::WebView;
BOOL isDir = NO;
BOOL exists = [[NSFileManager defaultManager] fileExistsAtPath:filename
isDirectory:&isDir];
if (exists && !isDir)
data->filenames.push_back(base::SysNSStringToUTF16(filename));
if (exists && !isDir) {
data->filenames.push_back(
WebDropData::FileInfo(base::SysNSStringToUTF16(filename),
string16()));
}
}
}
}

View File

@ -21,7 +21,6 @@ const char* kV8TestUrl = "http://tests/V8Test.Test";
const char* kV8BindingTestUrl = "http://tests/V8Test.BindingTest";
const char* kV8ContextParentTestUrl = "http://tests/V8Test.ContextParentTest";
const char* kV8ContextChildTestUrl = "http://tests/V8Test.ContextChildTest";
const char* kV8TestMsg = "V8Test.Test";
enum V8TestMode {
V8TEST_NULL_CREATE = 0,