Commit ad19609e authored by darin's avatar darin

JavaScriptCore:

        Reviewed by Darin.

        - fixes for Linux build

        * JavaScriptCoreSources.bkl: Added new files to build, kjs/PropertyNameArray.cpp
        and kjs/testkjs.cpp, and removed old files.

WebCore:

        Reviewed and tweaked by Darin.

        - fixes for Linux build
          (still might not compile, since Darin tweaked but was unable to test).

        * WebCoreSources.bkl: Added some new sources, removed some obsolete ones.
        * Projects/gdk/webcore-gdk.bkl: Added RenderPopupMenuGdk.cpp

        * html/HTMLPlugInElement.h: Removed incorrect syntax with class name
        before ::.

        * platform/gdk/FrameGdk.h:
        * platform/gdk/FrameGdk.cpp: Updated parameters of constructor. Moved a couple stubs
        out of this file.
        * platform/gdk/RenderPopupMenuGdk.h: Added.
        * platform/gdk/RenderPopupMenuGdk.cpp: Added. Just a file full of empty stubs.
        * platform/gdk/RenderThemeGdk.h:
        * platform/gdk/RenderThemeGdk.cpp: (WebCore::RenderThemeGdk::createPopupMenu): Added.

        * platform/gdk/TemporaryLinkStubs.cpp: Add some new stubs.

WebKitTools:

        Reviewed by Darin.

        - fixes for Linux build

        * GdkLauncher/mk: Added call to bakefile_gen before calling make.
        * GdkLauncher/gdklauncher.bkl: Tweak comment.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15691 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 5c89e9f1
2006-07-29 Mike Emmel <mike.emmel@gmail.com>
Reviewed by Darin.
- fixes for Linux build
* JavaScriptCoreSources.bkl: Added new files to build, kjs/PropertyNameArray.cpp
and kjs/testkjs.cpp, and removed old files.
2006-07-24 Dan Waylonis <waylonis@google.com>
Reviewed and tweaked a bit by Darin.
......
......@@ -24,21 +24,21 @@
kjs/list.cpp
kjs/lookup.cpp
kjs/math_object.cpp
kjs/nodes.cpp
kjs/nodes2string.cpp
kjs/nodes.cpp
kjs/number_object.cpp
kjs/object.cpp
kjs/object_object.cpp
kjs/operations.cpp
kjs/Parser.cpp
kjs/property_map.cpp
kjs/PropertyNameArray.cpp
kjs/property_slot.cpp
kjs/reference.cpp
kjs/reference_list.cpp
kjs/regexp.cpp
kjs/regexp_object.cpp
kjs/scope_chain.cpp
kjs/string_object.cpp
kjs/testkjs.cpp
kjs/ustring.cpp
kjs/value.cpp
......
2006-07-29 Mike Emmel <mike.emmel@gmail.com>
Reviewed and tweaked by Darin.
- fixes for Linux build
(still might not compile, since Darin tweaked but was unable to test).
* WebCoreSources.bkl: Added some new sources, removed some obsolete ones.
* Projects/gdk/webcore-gdk.bkl: Added RenderPopupMenuGdk.cpp
* html/HTMLPlugInElement.h: Removed incorrect syntax with class name
before ::.
* platform/gdk/FrameGdk.h:
* platform/gdk/FrameGdk.cpp: Updated parameters of constructor. Moved a couple stubs
out of this file.
* platform/gdk/RenderPopupMenuGdk.h: Added.
* platform/gdk/RenderPopupMenuGdk.cpp: Added. Just a file full of empty stubs.
* platform/gdk/RenderThemeGdk.h:
* platform/gdk/RenderThemeGdk.cpp: (WebCore::RenderThemeGdk::createPopupMenu): Added.
* platform/gdk/TemporaryLinkStubs.cpp: Add some new stubs.
2006-07-29 Mark Rowe <opendarwin.org@bdash.net.nz>
Reviewed by Darin.
......
<?xml version="1.0" ?>
<!-- $Id: gtkWebCore.bkl 199 2005-07-05 20:44:34Z vslavik $ -->
<!-- generate GnuMakefile with
bakefile -f gnu gtkwebcore.bkl
consider forcing includes agian
......@@ -78,6 +77,7 @@
platform/gdk/PageGdk.cpp
platform/gdk/TransferJobManager.cpp
platform/gdk/RenderThemeGdk.cpp
platform/gdk/RenderPopupMenuGdk.cpp
platform/gdk/ScreenGdk.cpp
platform/gdk/ScrollViewGdk.cpp
platform/gdk/SharedTimerLinux.cpp
......
<?xml version="1.0" ?>
<makefile>
<set append="1" var="WEBCORE_SOURCES_KWQ">
<set append="1" var="WEBCORE_SOURCES_KWQ">
</set>
<set append="1" var="WEBCORE_SOURCES_DERIVEDSOURCES">
......@@ -65,6 +65,7 @@
DerivedSources/WebCore/JSHTMLModElement.cpp
DerivedSources/WebCore/JSHTMLOListElement.cpp
DerivedSources/WebCore/JSHTMLOptGroupElement.cpp
DerivedSources/WebCore/JSHTMLOptionsCollection.cpp
DerivedSources/WebCore/JSHTMLOptionElement.cpp
DerivedSources/WebCore/JSHTMLParagraphElement.cpp
DerivedSources/WebCore/JSHTMLParamElement.cpp
......@@ -84,6 +85,7 @@
DerivedSources/WebCore/JSProcessingInstruction.cpp
DerivedSources/WebCore/JSRange.cpp
DerivedSources/WebCore/JSText.cpp
DerivedSources/WebCore/JSOverflowEvent.cpp
DerivedSources/WebCore/JSUIEvent.cpp
DerivedSources/WebCore/JSWheelEvent.cpp
DerivedSources/WebCore/JSXPathEvaluator.cpp
......@@ -128,7 +130,6 @@
loader/FormData.cpp
loader/ImageDocument.cpp
loader/loader.cpp
loader/PluginDocument.cpp
loader/Request.cpp
loader/TextDocument.cpp
loader/PluginDocument.cpp
......@@ -166,6 +167,7 @@
platform/RegularExpression.cpp
platform/SegmentedString.cpp
platform/StreamingTextDecoder.cpp
platform/StreamingTextDecoderICU.cpp
platform/String.cpp
platform/StringImpl.cpp
platform/TextEncoding.cpp
......@@ -409,8 +411,6 @@
rendering/AutoTableLayout.cpp
rendering/bidi.cpp
rendering/break_lines.cpp
rendering/DeprecatedRenderSelect.cpp
rendering/DeprecatedSlider.cpp
rendering/EllipsisBox.cpp
rendering/FixedTableLayout.cpp
rendering/InlineBox.cpp
......@@ -442,9 +442,11 @@
rendering/RenderLineEdit.cpp
rendering/RenderListItem.cpp
rendering/RenderListMarker.cpp
rendering/RenderMenuList.cpp
rendering/RenderObject.cpp
rendering/RenderPart.cpp
rendering/RenderPartObject.cpp
rendering/RenderPopupMenu.cpp
rendering/RenderReplaced.cpp
rendering/DeprecatedRenderSelect.cpp
rendering/DeprecatedSlider.cpp
......@@ -490,6 +492,7 @@
<set append="1" var="WEBCORE_SOURCES_XML">
xml/xmlhttprequest.cpp
xml/XSLImportRule.cpp
xml/XSLStyleSheet.cpp
xml/XSLTProcessor.cpp
......@@ -532,6 +535,7 @@
dom/NodeFilterCondition.cpp
dom/NodeList.cpp
dom/Notation.cpp
dom/OverflowEvent.cpp
dom/Position.cpp
dom/ProcessingInstruction.cpp
dom/QualifiedName.cpp
......@@ -700,8 +704,9 @@
bindings/js/JSCanvasRenderingContext2DCustom.cpp
bindings/js/JSDOMParser.cpp
bindings/js/JSHTMLElementWrapperFactory.cpp
bindings/js/JSHTMLFormElementCustom.cpp
bindings/js/JSHTMLFormElementCustom.cpp
bindings/js/JSHTMLInputElementBase.cpp
bindings/js/JSHTMLOptionsCollectionCustom.cpp
bindings/js/JSHTMLOptionElementConstructor.cpp
bindings/js/JSXMLHttpRequest.cpp
bindings/js/JSXMLSerializer.cpp
......
......@@ -37,7 +37,7 @@ class HTMLPlugInElement : public HTMLElement
{
public:
HTMLPlugInElement(const QualifiedName& tagName, Document*);
HTMLPlugInElement::~HTMLPlugInElement();
~HTMLPlugInElement();
virtual bool mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const;
virtual void parseMappedAttribute(MappedAttribute*);
......
......@@ -53,8 +53,6 @@
#include "KeyboardCodes.h"
#include <gdk/gdk.h>
DeprecatedStringList SSLKeyGenerator::supportedKeySizes(){return DeprecatedStringList();};
DeprecatedString SSLKeyGenerator::signedPublicKeyAndChallengeString(unsigned keySizeIndex, const DeprecatedString &challengeString, const KURL &url){return DeprecatedString();};
// This function loads resources from WebKit
// This does not belong here and I'm not sure where
......@@ -71,7 +69,6 @@ Vector<char> loadResourceIntoArray(const char* resourceName)
namespace WebCore {
static void doScroll(const RenderObject* r, bool isHorizontal, int multiplier)
{
// FIXME: The scrolling done here should be done in the default handlers
......@@ -123,8 +120,8 @@ FrameGdk::FrameGdk(GdkDrawable* gdkdrawable)
view->ScrollView::setDrawable(gdkdrawable);
}
FrameGdk::FrameGdk(Page* page, RenderPart* renderPart, FrameGdkClient* client)
: Frame(page, renderPart)
FrameGdk::FrameGdk(Page* page, Element* element)
: Frame(page,element)
{
d->m_extension = new BrowserExtensionGdk(this);
Settings* settings = new Settings;
......
......@@ -34,6 +34,8 @@
namespace WebCore {
class Element;
class FrameGdkClient {
public:
virtual void openURL(const DeprecatedString&) = 0;
......@@ -41,7 +43,7 @@ public:
class FrameGdk : public Frame, TransferJobClient {
public:
FrameGdk(Page*, RenderPart*, FrameGdkClient*);
FrameGdk(Page*, Element*);
FrameGdk(GdkDrawable*);
~FrameGdk();
......@@ -55,7 +57,6 @@ public:
virtual ObjectContentType objectContentType(const KURL&, const String& mimeType);
virtual Plugin* createPlugin(Element*, const KURL&, const Vector<String>&, const Vector<String>&, const String&);
virtual Frame* createFrame(const KURL&, const String& name, RenderPart*, const String& referrer);
virtual void scheduleClose();
......@@ -130,6 +131,7 @@ public:
IntRect frameGeometry() const;
void setFrameGeometry(const IntRect&);
virtual Frame* createFrame(const KURL&, const String& name, Element* ownerElement, const String& referrer);
private:
virtual bool passMouseDownEventToWidget(Widget*);
......
/*
* This file is part of the popup menu implementation for <select> elements in WebCore.
*
* Copyright (C) 2006 Apple Computer, Inc.
* Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com
*
* 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 "RenderPopupMenuGdk.h"
namespace WebCore {
RenderPopupMenuGdk::RenderPopupMenuGdk(Node* element)
: RenderPopupMenu(element)
{
}
RenderPopupMenuGdk::~RenderPopupMenuGdk()
{
}
void RenderPopupMenuGdk::clear()
{
}
void RenderPopupMenuGdk::populate()
{
}
void RenderPopupMenuGdk::showPopup(const IntRect&, FrameView*, int)
{
}
void RenderPopupMenuGdk::addSeparator()
{
}
void RenderPopupMenuGdk::addGroupLabel(HTMLOptGroupElement*)
{
}
void RenderPopupMenuGdk::addOption(HTMLOptionElement*)
{
}
}
/*
* This file is part of the popup menu implementation for <select> elements in WebCore.
*
* Copyright (C) 2006 Apple Computer, Inc.
* Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com
*
* 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.
*
*/
#ifndef RENDER_POPUPMENU_GDK_H
#define RENDER_POPUPMENU_GDK_H
#include "RenderPopupMenu.h"
namespace WebCore {
class HTMLOptionElement;
class HTMLOptGroupElement;
class RenderPopupMenuGdk : public RenderPopupMenu {
public:
RenderPopupMenuGdk(Node*);
~RenderPopupMenuGdk();
virtual void clear();
virtual void populate();
virtual void showPopup(const IntRect&, FrameView*, int index);
protected:
virtual void addSeparator();
virtual void addGroupLabel(HTMLOptGroupElement*);
virtual void addOption(HTMLOptionElement*);
};
}
#endif
......@@ -24,6 +24,8 @@
#include "config.h"
#include "RenderThemeGdk.h"
#include "RenderPopupMenuGdk.h"
#include "Document.h"
#include "GraphicsContext.h"
#include <cairo.h>
......@@ -155,4 +157,9 @@ void RenderThemeGdk::adjustButtonStyle(CSSStyleSelector* selector, RenderStyle*
addIntrinsicMargins(style);
}
RenderPopupMenu* RenderThemeGdk::createPopupMenu(RenderArena* arena, Document* doc)
{
return new (arena) RenderPopupMenuGdk(doc);
}
}
......@@ -58,6 +58,8 @@ public:
virtual void adjustTextFieldStyle(CSSStyleSelector*, RenderStyle*, Element*) const;
virtual bool paintTextField(RenderObject*, const RenderObject::PaintInfo&, const IntRect&);
virtual RenderPopupMenu* createPopupMenu(RenderArena*, Document*);
private:
void addIntrinsicMargins(RenderStyle*) const;
void close();
......
......@@ -47,7 +47,6 @@
#include "KURL.h"
#include "ScrollBar.h"
#include "JavaAppletWidget.h"
#include "WebCoreScrollBar.h"
#include "Path.h"
#include "PlatformMouseEvent.h"
#include "CookieJar.h"
......@@ -63,14 +62,15 @@
#include "RenderThemeGdk.h"
#include "TextBoundaries.h"
#include "AXObjectCache.h"
#include "DeprecatedString.h"
#include "DeprecatedStringList.h"
#include "SSLKeyGenerator.h"
using namespace WebCore;
static void notImplemented() { puts("Not yet implemented"); }
void FrameView::updateBorder() { notImplemented(); }
//bool FrameView::isFrameView() const { notImplemented(); return 0; }
TextBox::TextBox(Widget*) { notImplemented(); }
TextBox::~TextBox() { notImplemented(); }
......@@ -181,14 +181,12 @@ bool FrameGdk::canUndo() const { notImplemented(); return 0; }
void FrameGdk::registerCommandForRedo(WebCore::EditCommandPtr const&) { notImplemented(); }
bool FrameGdk::runJavaScriptPrompt(String const&, String const&, String &) { notImplemented(); return 0; }
bool FrameGdk::shouldInterruptJavaScript() { notImplemented(); return false; }
//bool FrameWin::openURL(KURL const&) { notImplemented(); return 0; }
void FrameGdk::print() { notImplemented(); }
KJS::Bindings::Instance* FrameGdk::getAppletInstanceForWidget(Widget*) { notImplemented(); return 0; }
bool FrameGdk::passMouseDownEventToWidget(Widget*) { notImplemented(); return 0; }
void FrameGdk::issueCutCommand() { notImplemented(); }
void FrameGdk::issueCopyCommand() { notImplemented(); }
void FrameGdk::openURLRequest(struct WebCore::ResourceRequest const&) { notImplemented(); }
//bool FrameWin::passWheelEventToChildWidget(Node*) { notImplemented(); return 0; }
void FrameGdk::issueUndoCommand() { notImplemented(); }
String FrameGdk::mimeTypeForFileName(String const&) const { notImplemented(); return String(); }
void FrameGdk::issuePasteCommand() { notImplemented(); }
......@@ -250,8 +248,8 @@ bool FrameGdk::lastEventIsMouseUp() const { return false; }
void FrameGdk::addMessageToConsole(String const&, unsigned int, String const&) { }
bool FrameGdk::shouldChangeSelection(SelectionController const&, SelectionController const&, WebCore::EAffinity, bool) const { return true; }
void FrameGdk::respondToChangedSelection(WebCore::SelectionController const&, bool) { }
static int frameNumber = 0;
Frame* FrameGdk::createFrame(KURL const&, String const&, RenderPart*, String const&) { return 0; }
Frame* FrameGdk::createFrame(const KURL& url, const String& name, Element* ownerElement, const String& referrer) { return 0; }
void FrameGdk::saveDocumentState() { }
void FrameGdk::registerCommandForUndo(WebCore::EditCommandPtr const&) { }
void FrameGdk::clearUndoRedoOperations(void) { }
......@@ -380,3 +378,10 @@ FloatRect Font::selectionRectForComplexText(const TextRun&, const TextStyle&, co
void Font::drawComplexText(GraphicsContext*, const TextRun&, const TextStyle&, const FloatPoint&) const { notImplemented(); }
float Font::floatWidthForComplexText(const TextRun&, const TextStyle&) const { notImplemented(); return 0; }
int Font::offsetForPositionForComplexText(const TextRun&, const TextStyle&, int, bool) const { notImplemented(); return 0; }
namespace WebCore {
DeprecatedStringList supportedKeySizes(){return DeprecatedStringList();};
DeprecatedString signedPublicKeyAndChallengeString(unsigned keySizeIndex, const DeprecatedString &challengeString, const KURL &url){return DeprecatedString();};
}
2006-07-29 Mike Emmel <mike.emmel@gmail.com>
Reviewed by Darin.
- fixes for Linux build
* GdkLauncher/mk: Added call to bakefile_gen before calling make.
* GdkLauncher/gdklauncher.bkl: Tweak comment.
2006-07-24 Dan Waylonis <waylonis@google.com>
Reviewed and tweaked a bit by Darin.
......
<?xml version="1.0" ?>
<!-- $Id: gdklauncher.bkl,v 1.1 2006/04/27 23:38:34 eme018 Exp $ -->
<!-- generate GnuMakefile with
bakefile -f gnu gdkwebcore.bkl
consider forcing includes agian
......
cd ../../Bakefiles; bakefile_gen
cd -
cd ../../WebCore/Projects/gdk
make
cd -
......
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