From f0f349cff11966bfc68444b148dfaeec45425878 Mon Sep 17 00:00:00 2001 From: "darin@google.com" Date: Mon, 15 Dec 2008 21:17:36 +0000 Subject: Fun file renaming patch. SoundPosix.cpp -> SoundChromiumPosix.cpp IconMac.cpp -> IconChromiumMac.cpp IconLinux.cpp -> IconChromiumLinux.cpp R=evan Review URL: http://codereview.chromium.org/14433 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7007 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/port/platform/chromium/IconLinux.cpp | 58 --------------------- .../port/platform/chromium/SoundChromiumPosix.cpp | 41 +++++++++++++++ webkit/port/platform/chromium/SoundPosix.cpp | 15 ------ .../graphics/chromium/IconChromiumLinux.cpp | 58 +++++++++++++++++++++ .../platform/graphics/chromium/IconChromiumMac.cpp | 59 ++++++++++++++++++++++ webkit/port/platform/graphics/mac/IconMac.cpp | 59 ---------------------- 6 files changed, 158 insertions(+), 132 deletions(-) delete mode 100644 webkit/port/platform/chromium/IconLinux.cpp create mode 100644 webkit/port/platform/chromium/SoundChromiumPosix.cpp delete mode 100644 webkit/port/platform/chromium/SoundPosix.cpp create mode 100644 webkit/port/platform/graphics/chromium/IconChromiumLinux.cpp create mode 100644 webkit/port/platform/graphics/chromium/IconChromiumMac.cpp delete mode 100644 webkit/port/platform/graphics/mac/IconMac.cpp (limited to 'webkit/port') diff --git a/webkit/port/platform/chromium/IconLinux.cpp b/webkit/port/platform/chromium/IconLinux.cpp deleted file mode 100644 index 9c38d84..0000000 --- a/webkit/port/platform/chromium/IconLinux.cpp +++ /dev/null @@ -1,58 +0,0 @@ -/* -* Copyright (C) 2006, 2007 Apple Inc. -* -* This library is free software; you can redistribute it and/or -* modify it under the terms of the GNU Library General Public -* License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. -* -* This library is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* Library General Public License for more details. -* -* You should have received a copy of the GNU Library General Public License -* along with this library; see the file COPYING.LIB. If not, write to -* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -* Boston, MA 02111-1307, USA. -* -*/ - -#include "config.h" - -#include "Icon.h" - -#include "GraphicsContext.h" -#include "NotImplemented.h" -#include "PlatformString.h" -#include "SkiaUtils.h" - -namespace WebCore { - -Icon::Icon(const PlatformIcon& icon) - : m_icon(icon) -{ -} - -Icon::~Icon() -{ -} - -PassRefPtr Icon::createIconForFile(const String& filename) -{ - notImplemented(); - return NULL; -} - -PassRefPtr Icon::createIconForFiles(const Vector& filenames) -{ - notImplemented(); - return NULL; -} - -void Icon::paint(GraphicsContext* context, const IntRect& r) -{ - notImplemented(); -} - -} // namespace WebCore diff --git a/webkit/port/platform/chromium/SoundChromiumPosix.cpp b/webkit/port/platform/chromium/SoundChromiumPosix.cpp new file mode 100644 index 0000000..4e3790a --- /dev/null +++ b/webkit/port/platform/chromium/SoundChromiumPosix.cpp @@ -0,0 +1,41 @@ +// Copyright (c) 2008, Google Inc. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +#include "config.h" +#include "Sound.h" + +#include "NotImplemented.h" + +namespace WebCore { + +void systemBeep() +{ + notImplemented(); +} + +} diff --git a/webkit/port/platform/chromium/SoundPosix.cpp b/webkit/port/platform/chromium/SoundPosix.cpp deleted file mode 100644 index 61964a1..0000000 --- a/webkit/port/platform/chromium/SoundPosix.cpp +++ /dev/null @@ -1,15 +0,0 @@ -// 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(); -} - -} diff --git a/webkit/port/platform/graphics/chromium/IconChromiumLinux.cpp b/webkit/port/platform/graphics/chromium/IconChromiumLinux.cpp new file mode 100644 index 0000000..9c38d84 --- /dev/null +++ b/webkit/port/platform/graphics/chromium/IconChromiumLinux.cpp @@ -0,0 +1,58 @@ +/* +* Copyright (C) 2006, 2007 Apple Inc. +* +* This library is free software; you can redistribute it and/or +* modify it under the terms of the GNU Library General Public +* License as published by the Free Software Foundation; either +* version 2 of the License, or (at your option) any later version. +* +* This library is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* Library General Public License for more details. +* +* You should have received a copy of the GNU Library General Public License +* along with this library; see the file COPYING.LIB. If not, write to +* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +* Boston, MA 02111-1307, USA. +* +*/ + +#include "config.h" + +#include "Icon.h" + +#include "GraphicsContext.h" +#include "NotImplemented.h" +#include "PlatformString.h" +#include "SkiaUtils.h" + +namespace WebCore { + +Icon::Icon(const PlatformIcon& icon) + : m_icon(icon) +{ +} + +Icon::~Icon() +{ +} + +PassRefPtr Icon::createIconForFile(const String& filename) +{ + notImplemented(); + return NULL; +} + +PassRefPtr Icon::createIconForFiles(const Vector& filenames) +{ + notImplemented(); + return NULL; +} + +void Icon::paint(GraphicsContext* context, const IntRect& r) +{ + notImplemented(); +} + +} // namespace WebCore diff --git a/webkit/port/platform/graphics/chromium/IconChromiumMac.cpp b/webkit/port/platform/graphics/chromium/IconChromiumMac.cpp new file mode 100644 index 0000000..6514d71 --- /dev/null +++ b/webkit/port/platform/graphics/chromium/IconChromiumMac.cpp @@ -0,0 +1,59 @@ +// Copyright (c) 2008, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +#include "config.h" + +#include "Icon.h" +#include "PassRefPtr.h" + +// TODO(port): These are temporary stubs, we need real implementations which +// may come in the form of IconChromium.cpp. The Windows Chromium +// implementation is currently in IconWin.cpp. + +namespace WebCore { + +PassRefPtr Icon::createIconForFile(const String& filename) +{ + return NULL; +} + +PassRefPtr Icon::createIconForFiles(const Vector& filenames) +{ + return NULL; +} + +Icon::~Icon() +{ +} + +void Icon::paint(GraphicsContext* context, const IntRect& rect) +{ +} + +} diff --git a/webkit/port/platform/graphics/mac/IconMac.cpp b/webkit/port/platform/graphics/mac/IconMac.cpp deleted file mode 100644 index 6514d71..0000000 --- a/webkit/port/platform/graphics/mac/IconMac.cpp +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) 2008, Google Inc. -// All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -#include "config.h" - -#include "Icon.h" -#include "PassRefPtr.h" - -// TODO(port): These are temporary stubs, we need real implementations which -// may come in the form of IconChromium.cpp. The Windows Chromium -// implementation is currently in IconWin.cpp. - -namespace WebCore { - -PassRefPtr Icon::createIconForFile(const String& filename) -{ - return NULL; -} - -PassRefPtr Icon::createIconForFiles(const Vector& filenames) -{ - return NULL; -} - -Icon::~Icon() -{ -} - -void Icon::paint(GraphicsContext* context, const IntRect& rect) -{ -} - -} -- cgit v1.1