Reviewed by Darin Adler.
Add some PLATFORM(CHROMIUM) ifdefs to WebCore
https://bugs.webkit.org/show_bug.cgi?id=21511
* loader/FTPDirectoryDocument.cpp:
* loader/FTPDirectoryParser.cpp:
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::finishedLoadingDocument):
* platform/ContextMenuItem.h:
* platform/Cursor.h:
* platform/DragData.h:
* platform/DragImage.h:
* platform/Pasteboard.h:
* platform/PlatformKeyboardEvent.h:
(WebCore::PlatformKeyboardEvent::isSystemKey):
* platform/PlatformMenuDescription.h:
* platform/PlatformMouseEvent.h:
* platform/PlatformWheelEvent.h:
* platform/PopupMenu.h:
* platform/ScrollView.h:
* platform/Widget.h:
* platform/network/NetworkStateNotifier.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@37599
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2008-10-10 Darin Fisher <darin@chromium.org>
+
+ Reviewed by Darin Adler.
+
+ Add some PLATFORM(CHROMIUM) ifdefs to WebCore
+ https://bugs.webkit.org/show_bug.cgi?id=21511
+
+ * loader/FTPDirectoryDocument.cpp:
+ * loader/FTPDirectoryParser.cpp:
+ * loader/FrameLoader.cpp:
+ (WebCore::FrameLoader::finishedLoadingDocument):
+ * platform/ContextMenuItem.h:
+ * platform/Cursor.h:
+ * platform/DragData.h:
+ * platform/DragImage.h:
+ * platform/Pasteboard.h:
+ * platform/PlatformKeyboardEvent.h:
+ (WebCore::PlatformKeyboardEvent::isSystemKey):
+ * platform/PlatformMenuDescription.h:
+ * platform/PlatformMouseEvent.h:
+ * platform/PlatformWheelEvent.h:
+ * platform/PopupMenu.h:
+ * platform/ScrollView.h:
+ * platform/Widget.h:
+ * platform/network/NetworkStateNotifier.h:
+
2008-10-14 Chris Marrin <cmarrin@apple.com>
Reviewed by Darin Adler.
}
#define localtime_r(x, y) localTimeQt(x, y)
-#elif PLATFORM(WIN) && !defined(localtime_r)
+#elif PLATFORM(WIN_OS) && !defined(localtime_r)
#define localtime_r(x, y) localtime_s((y), (x))
#endif
}
#define gmtime_r(x, y) gmtimeQt(x, y)
-#elif PLATFORM(WIN) && !defined(gmtime_r)
+#elif PLATFORM(WIN_OS) && !defined(gmtime_r)
#define gmtime_r(x, y) gmtime_s((y), (x))
#endif
void FrameLoader::finishedLoadingDocument(DocumentLoader* loader)
{
-#if PLATFORM(WIN)
+ // FIXME: Platforms shouldn't differ here!
+#if PLATFORM(WIN) || PLATFORM(CHROMIUM)
if (m_creatingInitialEmptyDocument)
return;
#endif
};
#elif PLATFORM(WX)
typedef wxMenuItem* PlatformMenuItemDescription;
+#else
+ typedef void* PlatformMenuItemDescription;
#endif
class ContextMenuItem {
typedef struct _GdkCursor GdkCursor;
#elif PLATFORM(QT)
#include <QCursor>
+#elif PLATFORM(CHROMIUM)
+#include "PlatformCursor.h"
#endif
#if PLATFORM(MAC)
typedef QCursor PlatformCursor;
#elif PLATFORM(WX)
typedef wxCursor* PlatformCursor;
+#elif PLATFORM(CHROMIUM)
+ // See PlatformCursor.h
#else
typedef void* PlatformCursor;
#endif
#elif PLATFORM(GTK)
// FIXME: this should probably be something gdk-specific
typedef void* DragDataRef;
+#elif PLATFORM(CHROMIUM)
+#include "DragDataRef.h"
#endif
typedef struct HBITMAP__* HBITMAP;
#elif PLATFORM(WX)
class wxDragImage;
+#elif PLATFORM(CHROMIUM)
+#include "DragImageRef.h"
#endif
//We need to #define YOffset as it needs to be shared with WebKit
typedef struct HWND__* HWND;
#endif
+#if PLATFORM(CHROMIUM)
+#include "PasteboardPrivate.h"
+#endif
+
namespace WebCore {
#if PLATFORM(MAC)
#if PLATFORM(QT)
bool m_selectionMode;
#endif
+
+#if PLATFORM(CHROMIUM)
+ PasteboardPrivate p;
+#endif
};
} // namespace WebCore
#if PLATFORM(WIN)
PlatformKeyboardEvent(HWND, WPARAM, LPARAM, Type, bool);
- bool isSystemKey() const { return m_isSystemKey; }
#endif
#if PLATFORM(GTK)
PlatformKeyboardEvent(wxKeyEvent&);
#endif
- private:
+#if PLATFORM(WIN) || PLATFORM(CHROMIUM)
+ bool isSystemKey() const { return m_isSystemKey; }
+#endif
+
+ protected:
Type m_type;
String m_text;
String m_unmodifiedText;
#if PLATFORM(MAC)
RetainPtr<NSEvent> m_macEvent;
#endif
-#if PLATFORM(WIN)
+#if PLATFORM(WIN) || PLATFORM(CHROMIUM)
bool m_isSystemKey;
#endif
#if PLATFORM(GTK)
typedef GtkMenu* PlatformMenuDescription;
#elif PLATFORM(WX)
typedef wxMenu* PlatformMenuDescription;
+#else
+ typedef void* PlatformMenuDescription;
#endif
} // namespace
#endif
- private:
+ protected:
IntPoint m_position;
IntPoint m_globalPosition;
MouseButton m_button;
PlatformWheelEvent(const wxMouseEvent&, const wxPoint&);
#endif
- private:
+ protected:
#if !PLATFORM(WIN)
int horizontalLineMultiplier() const { return cLineMultiplier; }
int verticalLineMultiplier() const { return cLineMultiplier; }
class wxMenu;
#include <wx/defs.h>
#include <wx/event.h>
+#elif PLATFORM(CHROMIUM)
+#include "PopupMenuPrivate.h"
#endif
namespace WebCore {
#elif PLATFORM(WX)
wxMenu* m_menu;
void OnMenuItemSelected(wxCommandEvent&);
+#elif PLATFORM(CHROMIUM)
+ PopupMenuPrivate p;
#endif
};
typedef struct _GtkAdjustment GtkAdjustment;
#endif
-#if PLATFORM(WIN)
-typedef struct HRGN__* HRGN;
-#endif
-
#if PLATFORM(WX)
class wxScrollWinEvent;
#endif
typedef wxWindow* PlatformWidget;
#endif
+#if PLATFORM(CHROMIUM)
+#include "PlatformWidget.h"
+#endif
+
#include "IntPoint.h"
#include "IntRect.h"
#include "IntSize.h"
typedef const struct __CFArray * CFArrayRef;
typedef const struct __SCDynamicStore * SCDynamicStoreRef;
+#elif PLATFORM(CHROMIUM)
+
+#include "NetworkStateNotifierPrivate.h"
+
#elif PLATFORM(WIN)
#include <windows.h>
void registerForAddressChange();
HANDLE m_waitHandle;
OVERLAPPED m_overlapped;
+
+#elif PLATFORM(CHROMIUM)
+ NetworkStateNotifierPrivate p;
#endif
};
-#if !PLATFORM(MAC) && !PLATFORM(WIN)
+#if !PLATFORM(MAC) && !PLATFORM(WIN) && !PLATFORM(CHROMIUM)
inline NetworkStateNotifier::NetworkStateNotifier()
: m_isOnLine(true)