Changeset 18899 in webkit
- Timestamp:
- Jan 16, 2007 8:37:25 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r18895 r18899 1 2007-01-16 Alice Liu <alice.liu@apple.com> 2 3 Reviewed by harrison. 4 5 Fixed <rdar://problem/4921134> WebKit needs extensible cut/copy to allow additional types to be written to pasteboard 6 7 * WebCore.xcodeproj/project.pbxproj: 8 * bridge/EditorClient.h: 9 * editing/Editor.cpp: 10 (WebCore::Editor::copy): 11 (WebCore::Editor::didWriteSelectionToPasteboard): 12 * editing/Editor.h: 13 * platform/graphics/svg/SVGImageEmptyClients.h: 14 (WebCore::SVGEmptyEditorClient::didWriteSelectionToPasteboard): 15 1 16 2007-01-16 Justin Garcia <justin.garcia@apple.com> 2 17 -
trunk/WebCore/bridge/EditorClient.h
r18874 r18899 75 75 virtual void respondToChangedContents() = 0; 76 76 virtual void didEndEditing() = 0; 77 virtual void didWriteSelectionToPasteboard() = 0; 77 78 // virtual void webViewDidChangeTypingStyle:(NSNotification *)notification = 0; 78 79 // virtual void webViewDidChangeSelection:(NSNotification *)notification = 0; -
trunk/WebCore/editing/Editor.cpp
r18286 r18899 1173 1173 } 1174 1174 Pasteboard::generalPasteboard()->writeSelection(selectedRange().get(), canSmartCopyOrDelete(), m_frame); 1175 didWriteSelectionToPasteboard(); 1175 1176 } 1176 1177 … … 1292 1293 } 1293 1294 1295 void Editor::didWriteSelectionToPasteboard() 1296 { 1297 if (client()) 1298 client()->didWriteSelectionToPasteboard(); 1299 } 1300 1294 1301 void Editor::toggleBold() 1295 1302 { -
trunk/WebCore/editing/Editor.h
r18391 r18899 162 162 void didBeginEditing(); 163 163 void didEndEditing(); 164 void didWriteSelectionToPasteboard(); 164 165 165 166 void showFontPanel(); -
trunk/WebCore/platform/graphics/svg/SVGImageEmptyClients.h
r18874 r18899 298 298 virtual void respondToChangedContents() { } 299 299 virtual void didEndEditing() { } 300 virtual void didWriteSelectionToPasteboard() { } 300 301 // virtual void webViewDidChangeTypingStyle:(NSNotification *)notification { } 301 302 // virtual void webViewDidChangeSelection:(NSNotification *)notification { } -
trunk/WebKit/ChangeLog
r18875 r18899 1 2007-01-16 Alice Liu <alice.liu@apple.com> 2 3 Reviewed by harrison. 4 5 Fixed <rdar://problem/4921134> WebKit needs extensible cut/copy to allow additional types to be written to pasteboard 6 7 * DefaultDelegates/WebDefaultEditingDelegate.m: 8 (-[WebDefaultEditingDelegate webView:didWriteSelectionToPasteboard:]): 9 * WebCoreSupport/WebEditorClient.h: 10 * WebCoreSupport/WebEditorClient.mm: 11 (WebEditorClient::didWriteSelectionToPasteboard): 12 * WebKit.xcodeproj/project.pbxproj: 13 * WebView/WebEditingDelegate.h: 14 1 15 2007-01-15 Justin Garcia <justin.garcia@apple.com> 2 16 -
trunk/WebKit/DefaultDelegates/WebDefaultEditingDelegate.m
r17196 r18899 98 98 } 99 99 100 - (void)webView:(WebView *)webView didWriteSelectionToPasteboard:(NSPasteboard *)pasteboard 101 { 102 } 103 100 104 - (void)webViewDidBeginEditing:(NSNotification *)notification 101 105 { -
trunk/WebKit/WebCoreSupport/WebEditorClient.h
r18166 r18899 62 62 virtual void didBeginEditing(); 63 63 virtual void didEndEditing(); 64 virtual void didWriteSelectionToPasteboard(); 64 65 65 66 virtual NSData* dataForArchivedSelection(WebCore::Frame*); -
trunk/WebKit/WebCoreSupport/WebEditorClient.mm
r18166 r18899 241 241 { 242 242 [[NSNotificationCenter defaultCenter] postNotificationName:WebViewDidEndEditingNotification object:m_webView]; 243 } 244 245 void WebEditorClient::didWriteSelectionToPasteboard() 246 { 247 [[m_webView _editingDelegateForwarder] webView:m_webView didWriteSelectionToPasteboard:[NSPasteboard generalPasteboard]]; 243 248 } 244 249 -
trunk/WebKit/WebView/WebEditingDelegate.h
r12070 r18899 49 49 - (BOOL)webView:(WebView *)webView shouldChangeTypingStyle:(DOMCSSStyleDeclaration *)currentStyle toStyle:(DOMCSSStyleDeclaration *)proposedStyle; 50 50 - (BOOL)webView:(WebView *)webView doCommandBySelector:(SEL)selector; 51 - (void)webView:(WebView *)webView didWriteSelectionToPasteboard:(NSPasteboard *)pasteboard; 51 52 - (void)webViewDidBeginEditing:(NSNotification *)notification; 52 53 - (void)webViewDidChange:(NSNotification *)notification; -
trunk/WebKitQt/ChangeLog
r18886 r18899 1 2007-01-16 Alice Liu <alice.liu@apple.com> 2 3 Added these stubs to keep the Qt build from failing. 4 5 * WebCoreSupport/EditorClientQt.cpp: 6 (WebCore::EditorClientQt::didWriteSelectionToPasteboard): 7 * WebCoreSupport/EditorClientQt.h: 8 1 9 2007-01-16 Lars Knoll <lars@trolltech.com> 2 10 -
trunk/WebKitQt/WebCoreSupport/EditorClientQt.cpp
r18176 r18899 118 118 } 119 119 120 void EditorClientQt::didWriteSelectionToPasteboard() 121 { 122 notImplemented(); 123 } 124 120 125 bool EditorClientQt::selectWordBeforeMenuEvent() 121 126 { -
trunk/WebKitQt/WebCoreSupport/EditorClientQt.h
r18176 r18899 62 62 virtual void respondToChangedContents(); 63 63 virtual void didEndEditing(); 64 virtual void didWriteSelectionToPasteboard(); 64 65 65 66 virtual bool selectWordBeforeMenuEvent();
Note: See TracChangeset
for help on using the changeset viewer.