diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-21 00:46:25 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-21 00:46:25 +0000 |
commit | 6be86ad0a99fcc0a717368b320103e6c1d4eab5a (patch) | |
tree | d1cd665a7165f15073372b0a051c7328ff7cd357 | |
parent | 25db381a7bf6cf120524247c834094c6226cf00b (diff) | |
download | chromium_src-6be86ad0a99fcc0a717368b320103e6c1d4eab5a.zip chromium_src-6be86ad0a99fcc0a717368b320103e6c1d4eab5a.tar.gz chromium_src-6be86ad0a99fcc0a717368b320103e6c1d4eab5a.tar.bz2 |
Start attacking the list of undefined symbols from Linux WebCore. This defines
a bunch of symbols for POSIX systems dealing with filesystem calls and sound.
Review URL: http://codereview.chromium.org/7526
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3642 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | webkit/SConscript.port | 6 | ||||
-rw-r--r-- | webkit/build/WebCore/SConscript | 5 | ||||
-rw-r--r-- | webkit/port/platform/chromium/FileSystemPosix.cpp | 26 | ||||
-rw-r--r-- | webkit/port/platform/chromium/SoundPosix.cpp | 15 |
4 files changed, 52 insertions, 0 deletions
diff --git a/webkit/SConscript.port b/webkit/SConscript.port index 1b90402..5f33adb 100644 --- a/webkit/SConscript.port +++ b/webkit/SConscript.port @@ -159,6 +159,12 @@ if env['PLATFORM'] == 'win32': '$PORT_DIR/rendering/RenderThemeWin.cpp', ]) +if env['PLATFORM'] == 'posix': + input_files.extend([ + '$PORT_DIR/platform/chromium/FileSystemPosix.cpp', + '$PORT_DIR/platform/chromium/SoundPosix.cpp', + ]) + if env['PLATFORM'] == 'darwin': input_files.extend([ '$PORT_DIR/bridge/mac/FrameMac.mm', diff --git a/webkit/build/WebCore/SConscript b/webkit/build/WebCore/SConscript index 4d89455..a593fde 100644 --- a/webkit/build/WebCore/SConscript +++ b/webkit/build/WebCore/SConscript @@ -742,6 +742,11 @@ if env['PLATFORM'] in ('darwin', 'posix'): for remove in remove_files: input_files.remove(remove) +if env['PLATFORM'] == 'posix': + input_files.extend([ + '$WEBCORE_DIR/platform/posix/FileSystemPOSIX.cpp', + ]) + # Windows specific files. if env['PLATFORM'] == 'win32': input_files.extend([ diff --git a/webkit/port/platform/chromium/FileSystemPosix.cpp b/webkit/port/platform/chromium/FileSystemPosix.cpp new file mode 100644 index 0000000..41b6a77 --- /dev/null +++ b/webkit/port/platform/chromium/FileSystemPosix.cpp @@ -0,0 +1,26 @@ +// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include <string> + +#include "config.h" +#include "FileSystem.h" +#include "CString.h" + +#include "base/sys_string_conversions.h" +#include "glue/glue_util.h" + +namespace WebCore { + +// This function is tasked with transforming a String to a CString for the +// underlying operating system. On Linux the kernel doesn't care about the +// filenames so long as NUL and '/' are respected. UTF8 filenames seem to be +// pretty common, but are not universal so we punt on the decision here and pass +// the buck to a function in base. +CString fileSystemRepresentation(const String &path) { + return webkit_glue::StdStringToCString( + base::SysWideToNativeMB(webkit_glue::StringToStdWString(path))); +} + +} diff --git a/webkit/port/platform/chromium/SoundPosix.cpp b/webkit/port/platform/chromium/SoundPosix.cpp new file mode 100644 index 0000000..61964a1 --- /dev/null +++ b/webkit/port/platform/chromium/SoundPosix.cpp @@ -0,0 +1,15 @@ +// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "config.h" +#include "Sound.h" +#include "NotImplemented.h" + +namespace WebCore { + +void systemBeep() { + notImplemented(); +} + +} |