diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-22 18:09:08 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-22 18:09:08 +0000 |
commit | 41455f4a1b35b3ef69ee1dc8c92104088eeeb07e (patch) | |
tree | 5ee1cae3febdde825274c768be4eed933f841a21 | |
parent | ed10f5334e4e42a92114ceeb9a73c6a2abcf70de (diff) | |
download | chromium_src-41455f4a1b35b3ef69ee1dc8c92104088eeeb07e.zip chromium_src-41455f4a1b35b3ef69ee1dc8c92104088eeeb07e.tar.gz chromium_src-41455f4a1b35b3ef69ee1dc8c92104088eeeb07e.tar.bz2 |
Some of the easier fixes in port for the PLATFORM(MAC) killing project
Review URL: http://codereview.chromium.org/7874
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3747 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | webkit/port/platform/chromium/CursorChromium.cpp | 1 | ||||
-rw-r--r-- | webkit/port/platform/chromium/FileSystemPosix.cpp | 5 | ||||
-rw-r--r-- | webkit/port/platform/chromium/FramelessScrollView.cpp | 2 | ||||
-rw-r--r-- | webkit/port/platform/mac/Cursor.h | 142 | ||||
-rw-r--r-- | webkit/webkit.xcodeproj/project.pbxproj | 2 |
5 files changed, 8 insertions, 144 deletions
diff --git a/webkit/port/platform/chromium/CursorChromium.cpp b/webkit/port/platform/chromium/CursorChromium.cpp index d923fc3..7f6018a 100644 --- a/webkit/port/platform/chromium/CursorChromium.cpp +++ b/webkit/port/platform/chromium/CursorChromium.cpp @@ -31,6 +31,7 @@ #include "NativeImageSkia.h" #include "NotImplemented.h" +#include "webkit/glue/webcursor.h" #include "webkit/glue/webkit_resources.h" #include "webkit/glue/webkit_glue.h" diff --git a/webkit/port/platform/chromium/FileSystemPosix.cpp b/webkit/port/platform/chromium/FileSystemPosix.cpp index 41b6a77..0264d9e 100644 --- a/webkit/port/platform/chromium/FileSystemPosix.cpp +++ b/webkit/port/platform/chromium/FileSystemPosix.cpp @@ -2,14 +2,15 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "config.h" + #include <string> -#include "config.h" #include "FileSystem.h" #include "CString.h" #include "base/sys_string_conversions.h" -#include "glue/glue_util.h" +#include "webkit/glue/glue_util.h" namespace WebCore { diff --git a/webkit/port/platform/chromium/FramelessScrollView.cpp b/webkit/port/platform/chromium/FramelessScrollView.cpp index 8a40150..51c9d52 100644 --- a/webkit/port/platform/chromium/FramelessScrollView.cpp +++ b/webkit/port/platform/chromium/FramelessScrollView.cpp @@ -27,6 +27,8 @@ // (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 "FramelessScrollView.h" namespace WebCore { diff --git a/webkit/port/platform/mac/Cursor.h b/webkit/port/platform/mac/Cursor.h deleted file mode 100644 index 5bf26be..0000000 --- a/webkit/port/platform/mac/Cursor.h +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright (C) 2004, 2006, 2008 Apple 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: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. 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. - * - * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``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 APPLE COMPUTER, INC. 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. - */ - -// TODO(pinkerton): This file is ***TEMPORARY*** because we haven't yet -// correctly ported all the things in webkit/port and as such we can't blindly -// put that path into HEADER_SEARCH_PATHS without epic fail in other files. We -// also gave up on header maps so we can't bring in this file by itself. Until -// then, we're duplicating this file and will fix it eventually. - -#ifndef Cursor_h -#define Cursor_h - -#include <wtf/Platform.h> - -#if PLATFORM(WIN) -#include "webkit/glue/webcursor.h" -typedef struct HICON__* HICON; -typedef HICON HCURSOR; -#include <wtf/PassRefPtr.h> -#include <wtf/RefCounted.h> -#include <wtf/RefPtr.h> -#elif PLATFORM(GTK) -#include <gdk/gdk.h> -#elif PLATFORM(QT) -#include <QCursor> -#endif - -#if PLATFORM(MAC) -#ifdef __OBJC__ -@class NSCursor; -#else -class NSCursor; -#endif -#endif - -#if PLATFORM(WX) -class wxCursor; -#endif - -namespace WebCore { - - class Image; - class IntPoint; - -#if PLATFORM(WIN) - typedef WebCursor PlatformCursor; -#elif PLATFORM(MAC) - typedef NSCursor* PlatformCursor; -#elif PLATFORM(GTK) - typedef GdkCursor* PlatformCursor; -#elif PLATFORM(QT) && !defined(QT_NO_CURSOR) - typedef QCursor PlatformCursor; -#elif PLATFORM(WX) - typedef wxCursor* PlatformCursor; -#else - typedef void* PlatformCursor; -#endif - - class Cursor { - public: - Cursor() - { } - - Cursor(Image*, const IntPoint& hotspot); - Cursor(const Cursor&); - ~Cursor(); - Cursor& operator=(const Cursor&); - - Cursor(PlatformCursor); - PlatformCursor impl() const { return m_impl; } - - private: - PlatformCursor m_impl; - }; - - const Cursor& pointerCursor(); - const Cursor& crossCursor(); - const Cursor& handCursor(); - const Cursor& moveCursor(); - const Cursor& iBeamCursor(); - const Cursor& waitCursor(); - const Cursor& helpCursor(); - const Cursor& eastResizeCursor(); - const Cursor& northResizeCursor(); - const Cursor& northEastResizeCursor(); - const Cursor& northWestResizeCursor(); - const Cursor& southResizeCursor(); - const Cursor& southEastResizeCursor(); - const Cursor& southWestResizeCursor(); - const Cursor& westResizeCursor(); - const Cursor& northSouthResizeCursor(); - const Cursor& eastWestResizeCursor(); - const Cursor& northEastSouthWestResizeCursor(); - const Cursor& northWestSouthEastResizeCursor(); - const Cursor& columnResizeCursor(); - const Cursor& rowResizeCursor(); - const Cursor& middlePanningCursor(); - const Cursor& eastPanningCursor(); - const Cursor& northPanningCursor(); - const Cursor& northEastPanningCursor(); - const Cursor& northWestPanningCursor(); - const Cursor& southPanningCursor(); - const Cursor& southEastPanningCursor(); - const Cursor& southWestPanningCursor(); - const Cursor& westPanningCursor(); - const Cursor& verticalTextCursor(); - const Cursor& cellCursor(); - const Cursor& contextMenuCursor(); - const Cursor& noDropCursor(); - const Cursor& notAllowedCursor(); - const Cursor& progressCursor(); - const Cursor& aliasCursor(); - const Cursor& zoomInCursor(); - const Cursor& zoomOutCursor(); - const Cursor& copyCursor(); - const Cursor& noneCursor(); - -} // namespace WebCore - -#endif // Cursor_h diff --git a/webkit/webkit.xcodeproj/project.pbxproj b/webkit/webkit.xcodeproj/project.pbxproj index 188021d..36b23ee 100644 --- a/webkit/webkit.xcodeproj/project.pbxproj +++ b/webkit/webkit.xcodeproj/project.pbxproj @@ -8938,6 +8938,7 @@ "$(DIR_PORT)/page", "$(DIR_PORT)/page/chromium", "$(DIR_PORT)/page/inspector", + "$(DIR_PORT)/platform/chromium", "$(DIR_PORT)/platform/graphics/chromium", "$(DIR_PORT)/platform/image-decoders", "$(DIR_PORT)/platform/image-decoders/bmp", @@ -9061,6 +9062,7 @@ "$(DIR_PORT)/page", "$(DIR_PORT)/page/chromium", "$(DIR_PORT)/page/inspector", + "$(DIR_PORT)/platform/chromium", "$(DIR_PORT)/platform/graphics/chromium", "$(DIR_PORT)/platform/image-decoders", "$(DIR_PORT)/platform/image-decoders/bmp", |