Commit 4927d4b9 authored by eseidel's avatar eseidel

2006-02-27 Eric Seidel <eseidel@apple.com>

        Reviewed by hyatt.

        Fix a bunch more link errors in the win32 build, mostly by adding stubs.

        * WebCore.vcproj/WebCore/WebCore.vcproj: add JSXMLHttpRequest and PlugInInfoStore
        * WebCore.vcproj/WebCore/build-generated-files.sh: update for JSXMLHttpRequest
        * khtml/ecma/JSXMLHttpRequest.cpp:
        (KJS::JSXMLHttpRequest::getValueProperty): fix switch to compile
        * platform/PlugInInfoStore.h:
        * platform/mac/PlugInInfoStoreMac.mm:
        * platform/win/TemporaryLinkStubs.cpp: add a bunch of stubs.
        (WebCore::TransferJob::errorText):
        (WebCore::TransferJob::isErrorPage):
        (WebCore::Widget::hide):
        (PlugInInfoStore::createPluginInfoForPluginAtIndex):
        (PlugInInfoStore::pluginCount):
        (WebCore::refreshPlugins):
        (QFont::QFont):
        (QFont::~QFont):
        (QFont::italic):
        (QFont::weight):
        (QFontMetrics::QFontMetrics):
        (QFontMetrics::~QFontMetrics):
        (QFontMetrics::xHeight):
        (Widget::setActiveWindow):
        (WebCore::ScrollView::contentsX):
        (WebCore::ScrollView::contentsY):
        (WebCore::ScrollView::contentsHeight):
        (WebCore::ScrollView::contentsWidth):
        (WebCore::ScrollView::visibleHeight):
        (WebCore::ScrollView::visibleWidth):
        (WebCore::ScrollView::hScrollBarMode):
        (WebCore::ScrollView::vScrollBarMode):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13026 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent de63e678
2006-02-27 Eric Seidel <eseidel@apple.com>
Reviewed by hyatt.
Fix a bunch more link errors in the win32 build, mostly by adding stubs.
* WebCore.vcproj/WebCore/WebCore.vcproj: add JSXMLHttpRequest and PlugInInfoStore
* WebCore.vcproj/WebCore/build-generated-files.sh: update for JSXMLHttpRequest
* khtml/ecma/JSXMLHttpRequest.cpp:
(KJS::JSXMLHttpRequest::getValueProperty): fix switch to compile
* platform/PlugInInfoStore.h:
* platform/mac/PlugInInfoStoreMac.mm:
* platform/win/TemporaryLinkStubs.cpp: add a bunch of stubs.
(WebCore::TransferJob::errorText):
(WebCore::TransferJob::isErrorPage):
(WebCore::Widget::hide):
(PlugInInfoStore::createPluginInfoForPluginAtIndex):
(PlugInInfoStore::pluginCount):
(WebCore::refreshPlugins):
(QFont::QFont):
(QFont::~QFont):
(QFont::italic):
(QFont::weight):
(QFontMetrics::QFontMetrics):
(QFontMetrics::~QFontMetrics):
(QFontMetrics::xHeight):
(Widget::setActiveWindow):
(WebCore::ScrollView::contentsX):
(WebCore::ScrollView::contentsY):
(WebCore::ScrollView::contentsHeight):
(WebCore::ScrollView::contentsWidth):
(WebCore::ScrollView::visibleHeight):
(WebCore::ScrollView::visibleWidth):
(WebCore::ScrollView::hScrollBarMode):
(WebCore::ScrollView::vScrollBarMode):
2006-02-27 Eric Seidel <eseidel@apple.com> 2006-02-27 Eric Seidel <eseidel@apple.com>
Reviewed by timo. Reviewed by timo.
......
...@@ -1153,6 +1153,14 @@ ...@@ -1153,6 +1153,14 @@
RelativePath="..\..\khtml\ecma\domparser.h" RelativePath="..\..\khtml\ecma\domparser.h"
> >
</File> </File>
<File
RelativePath="..\..\khtml\ecma\JSXMLHttpRequest.cpp"
>
</File>
<File
RelativePath="..\..\khtml\ecma\JSXMLHttpRequest.h"
>
</File>
<File <File
RelativePath="..\..\khtml\ecma\kjs_binding.cpp" RelativePath="..\..\khtml\ecma\kjs_binding.cpp"
> >
...@@ -1648,6 +1656,10 @@ ...@@ -1648,6 +1656,10 @@
RelativePath="..\..\platform\PlatformString.h" RelativePath="..\..\platform\PlatformString.h"
> >
</File> </File>
<File
RelativePath="..\..\platform\PlugInInfoStore.h"
>
</File>
<File <File
RelativePath="..\..\platform\QString.cpp" RelativePath="..\..\platform\QString.cpp"
> >
......
...@@ -122,6 +122,10 @@ if [ ../JavaScriptCore/kjs/create_hash_table -nt "$DerivedSourcesDir/XSLTProcess ...@@ -122,6 +122,10 @@ if [ ../JavaScriptCore/kjs/create_hash_table -nt "$DerivedSourcesDir/XSLTProcess
../JavaScriptCore/kjs/create_hash_table khtml/ecma/XSLTProcessor.cpp > "$DerivedSourcesDir/XSLTProcessor.lut.h" ../JavaScriptCore/kjs/create_hash_table khtml/ecma/XSLTProcessor.cpp > "$DerivedSourcesDir/XSLTProcessor.lut.h"
fi fi
if [ ../JavaScriptCore/kjs/create_hash_table -nt "$DerivedSourcesDir/JSXMLHttpRequest.lut.h" -o khtml/ecma/JSXMLHttpRequest.cpp -nt "$DerivedSourcesDir/JSXMLHttpRequest.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/JSXMLHttpRequest.cpp > "$DerivedSourcesDir/JSXMLHttpRequest.lut.h"
fi
# Auto-generate bindings from .idl files # Auto-generate bindings from .idl files
echo "Auto-generating bindings from .idl files for the dom directory..." echo "Auto-generating bindings from .idl files for the dom directory..."
perl -I"$WebCoreSourceRoot/bindings/scripts" "$WebCoreSourceRoot/bindings/scripts/generate-bindings.pl" --generator JS --idldir "$WebCoreSourceRoot/dom" --outputdir "$DerivedSourcesDir" perl -I"$WebCoreSourceRoot/bindings/scripts" "$WebCoreSourceRoot/bindings/scripts/generate-bindings.pl" --generator JS --idldir "$WebCoreSourceRoot/dom" --outputdir "$DerivedSourcesDir"
...@@ -101,9 +101,10 @@ JSValue* JSXMLHttpRequest::getValueProperty(ExecState *exec, int token) const ...@@ -101,9 +101,10 @@ JSValue* JSXMLHttpRequest::getValueProperty(ExecState *exec, int token) const
if (DocumentImpl* responseXML = m_impl->getResponseXML()) if (DocumentImpl* responseXML = m_impl->getResponseXML())
return getDOMNode(exec, responseXML); return getDOMNode(exec, responseXML);
return jsUndefined(); return jsUndefined();
case Status: case Status: {
int status = m_impl->getStatus(); int status = m_impl->getStatus();
return status > 0 ? jsNumber(status) : jsUndefined(); return status > 0 ? jsNumber(status) : jsUndefined();
}
case StatusText: case StatusText:
return jsStringOrUndefined(m_impl->getStatusText()); return jsStringOrUndefined(m_impl->getStatusText());
case Onreadystatechange: case Onreadystatechange:
......
/* /*
* Copyright (C) 2004 Apple Computer, Inc. All rights reserved. * Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
......
/* /*
* Copyright (C) 2004 Apple Computer, Inc. All rights reserved. * Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include "Screen.h" #include "Screen.h"
#include "History.h" #include "History.h"
#include "KWQKLocale.h" #include "KWQKLocale.h"
#include "PlugInInfoStore.h"
using namespace WebCore; using namespace WebCore;
...@@ -295,7 +296,35 @@ void WebCore::TransferJob::addMetaData(class QString const &,class QString const ...@@ -295,7 +296,35 @@ void WebCore::TransferJob::addMetaData(class QString const &,class QString const
void WebCore::TransferJob::addMetaData(class KXMLCore::HashMap<class WebCore::String,class WebCore::String> const &) { notImplemented(); } void WebCore::TransferJob::addMetaData(class KXMLCore::HashMap<class WebCore::String,class WebCore::String> const &) { notImplemented(); }
class QString WebCore::TransferJob::queryMetaData(class QString const &)const { notImplemented(); return QString(); } class QString WebCore::TransferJob::queryMetaData(class QString const &)const { notImplemented(); return QString(); }
int WebCore::TransferJob::error(void)const { notImplemented(); return 0; } int WebCore::TransferJob::error(void)const { notImplemented(); return 0; }
QString WebCore::TransferJob::errorText(void)const { notImplemented(); return "Houston, we have a problem."; }
bool WebCore::TransferJob::isErrorPage(void)const { notImplemented(); return 0; }
WebCore::TransferJob::TransferJob(class WebCore::TransferJobClient *,class KURL const &) { notImplemented(); } WebCore::TransferJob::TransferJob(class WebCore::TransferJobClient *,class KURL const &) { notImplemented(); }
WebCore::TransferJob::TransferJob(class WebCore::TransferJobClient *,class KURL const &,class WebCore::FormData const &) { notImplemented(); } WebCore::TransferJob::TransferJob(class WebCore::TransferJobClient *,class KURL const &,class WebCore::FormData const &) { notImplemented(); }
void WebCore::Widget::hide(void) { } void WebCore::Widget::hide(void) { notImplemented(); }
class QString KLocale::language(void) { return "en"; } class QString KLocale::language(void) { return "en"; }
PluginInfo *PlugInInfoStore::createPluginInfoForPluginAtIndex(unsigned) { notImplemented(); return 0;}
unsigned PlugInInfoStore::pluginCount() const { notImplemented(); return 0; }
void WebCore::refreshPlugins(bool) { notImplemented(); }
int WebCore::screenDepth(class WebCore::Widget *) { notImplemented(); return 96; }
QFont::QFont() { notImplemented(); }
QFont::~QFont() { notImplemented(); }
bool QFont::italic(void) const { notImplemented(); return false; }
int QFont::weight() const { notImplemented(); return QFont::Normal; }
static QFontMetrics localFontMetrics;
QFontMetrics::QFontMetrics() { notImplemented(); }
QFontMetrics::~QFontMetrics() { notImplemented(); }
QFontMetrics::QFontMetrics(class QFontMetrics const &) { notImplemented(); }
QFontMetrics& QFontMetrics::operator=(class QFontMetrics const &) { notImplemented(); return localFontMetrics; }
float QFontMetrics::xHeight(void) const { notImplemented(); return 0; }
IntRect WebCore::usableScreenRect(class WebCore::Widget *) { notImplemented(); return IntRect(0,0,800,600); }
QFont& QFont::operator=(class QFont const &) { notImplemented(); return localFont; }
void Widget::setActiveWindow(void) { notImplemented(); }
bool KWQCheckIfReloading(class WebCore::DocLoader *) { notImplemented(); return false; }
int WebCore::ScrollView::contentsX(void)const { notImplemented(); return 0; }
int WebCore::ScrollView::contentsY(void)const { notImplemented(); return 0; }
int WebCore::ScrollView::contentsHeight(void)const { notImplemented(); return 0; }
int WebCore::ScrollView::contentsWidth(void)const { notImplemented(); return 0; }
int WebCore::ScrollView::visibleHeight(void)const { notImplemented(); return 0; }
int WebCore::ScrollView::visibleWidth(void)const { notImplemented(); return 0; }
WebCore::ScrollBarMode WebCore::ScrollView::hScrollBarMode(void)const { notImplemented(); return ScrollBarAlwaysOff; }
WebCore::ScrollBarMode WebCore::ScrollView::vScrollBarMode(void)const { notImplemented(); return ScrollBarAlwaysOff; }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment