WebCore:

        Reviewed by Geoff, Adam.

        Switch to use the Editor for copying URLs.  Also some Pasteboard and PlatformMouseEvent cleanup.

        All layout tests pass as they would without this patch. 

        * WebCore.exp:
        added Editor::copyURL to be called from WebKit
        
        * editing/Editor.cpp:
        (WebCore::Editor::tryDHTMLCopy):
        (WebCore::Editor::tryDHTMLCut):
        Pasteboard::clearTypes() changed to clear()

        (WebCore::Editor::writeSelectionToPasteboard):        
        (WebCore::Editor::cut):
        (WebCore::Editor::copy):
        Changed signature of writeSelection to take raw pointer instead of PassRefPtr

        (WebCore::Editor::copyURL):
        * editing/Editor.h:
        Added copyURL.
        
        * page/ContextMenuClient.h:
        * page/ContextMenuController.cpp:
        (WebCore::ContextMenuController::contextMenuItemSelected):
        Removed copyLinkToClipboard
        
        * platform/KURL.cpp:
        (WebCore::KURL::lastPathComponent):
        * platform/KURL.h:
        Added lastPathComponent. 
        
        * platform/Pasteboard.h:
        Changed some function names.
        Moved some functions out of class to static.
        
        * platform/PlatformMouseEvent.h:
        (WebCore::):
        Removed MouseEventType enum, added NoButton to MouseButton without disturbing other button values.
        
        * platform/mac/PasteboardMac.mm:
        Added writeURL, and moved some things around
        
        * platform/mac/WebCoreSystemInterface.h:
        * platform/mac/WebCoreSystemInterface.mm:
        Add some calls necessary for Pasteboard::writeURL to work

WebKit:

        Reviewed by Geoff, Adam.
        
        switch to use the Editor for copying URLs

        * DefaultDelegates/WebDefaultContextMenuDelegate.m:
        (-[WebDefaultUIDelegate copyLinkToClipboard:]):
        Call down to the editor for this. 
        * WebCoreSupport/WebSystemInterface.m:
        (InitWebCoreSystemInterface):
        Add some calls necessary for Pasteboard::writeURL to work



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18165 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/WebCore.exp b/WebCore/WebCore.exp
index f95dc45..29e33d0 100644
--- a/WebCore/WebCore.exp
+++ b/WebCore/WebCore.exp
@@ -262,6 +262,7 @@
 __ZN7WebCore6Editor3cutEv
 __ZN7WebCore6Editor4copyEv
 __ZN7WebCore6Editor5pasteEv
+__ZN7WebCore6Editor7copyURLERKNS_4KURLERKNS_6StringE
 __ZN7WebCore6Editor6indentEv
 __ZN7WebCore6Editor7outdentEv
 __ZN7WebCore6StringC1EP8NSString
@@ -436,6 +437,8 @@
 _wkConvertCharToGlyphs
 _wkCreateCustomCFReadStream
 _wkCreateNSURLConnectionDelegateProxy
+_wkCreateURLPasteboardFlavorTypeName
+_wkCreateURLNPasteboardFlavorTypeName
 _wkDrawBezeledTextArea
 _wkDrawBezeledTextFieldCell
 _wkDrawFocusRing