Changeset 84574 in webkit
- Timestamp:
- Apr 21, 2011 5:33:21 PM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r84566 r84574 1 2011-04-21 Ryosuke Niwa <rniwa@webkit.org> 2 3 Reviewed by Sam Weinig. 4 5 Add Frame* to the argument lists of canCopyCut and canPaste 6 https://bugs.webkit.org/show_bug.cgi?id=59153 7 8 canCopyCut and canPaste now takes Frame* for which supportedCopyCut and supportedPaste are called. 9 This allows editor client to grant copy/cut and paste permissions per origin. 10 11 * editing/EditorCommand.cpp: 12 (WebCore::supportedCopyCut): 13 (WebCore::supportedPaste): 14 * loader/EmptyClients.h: 15 (WebCore::EmptyEditorClient::canCopyCut): 16 (WebCore::EmptyEditorClient::canPaste): 17 * page/EditorClient.h: 18 1 19 2011-04-21 Oliver Hunt <oliver@apple.com> 2 20 -
trunk/Source/WebCore/editing/EditorCommand.cpp
r83245 r84574 1132 1132 1133 1133 EditorClient* client = frame->editor()->client(); 1134 return client ? client->canCopyCut( defaultValue) : defaultValue;1134 return client ? client->canCopyCut(frame, defaultValue) : defaultValue; 1135 1135 } 1136 1136 … … 1144 1144 1145 1145 EditorClient* client = frame->editor()->client(); 1146 return client ? client->canPaste( defaultValue) : defaultValue;1146 return client ? client->canPaste(frame, defaultValue) : defaultValue; 1147 1147 } 1148 1148 -
trunk/Source/WebCore/loader/EmptyClients.h
r84238 r84574 465 465 virtual void clearUndoRedoOperations() { } 466 466 467 virtual bool canCopyCut( bool defaultValue) const { return defaultValue; }468 virtual bool canPaste( bool defaultValue) const { return defaultValue; }467 virtual bool canCopyCut(Frame*, bool defaultValue) const { return defaultValue; } 468 virtual bool canPaste(Frame*, bool defaultValue) const { return defaultValue; } 469 469 virtual bool canUndo() const { return false; } 470 470 virtual bool canRedo() const { return false; } -
trunk/Source/WebCore/page/EditorClient.h
r83344 r84574 109 109 virtual void clearUndoRedoOperations() = 0; 110 110 111 virtual bool canCopyCut( bool defaultValue) const = 0;112 virtual bool canPaste( bool defaultValue) const = 0;111 virtual bool canCopyCut(Frame*, bool defaultValue) const = 0; 112 virtual bool canPaste(Frame*, bool defaultValue) const = 0; 113 113 virtual bool canUndo() const = 0; 114 114 virtual bool canRedo() const = 0; -
trunk/Source/WebKit/chromium/ChangeLog
r84520 r84574 1 2011-04-21 Ryosuke Niwa <rniwa@webkit.org> 2 3 Reviewed by Sam Weinig. 4 5 Add Frame* to the argument lists of canCopyCut and canPaste 6 https://bugs.webkit.org/show_bug.cgi?id=59153 7 8 * src/EditorClientImpl.cpp: 9 (WebKit::EditorClientImpl::canCopyCut): 10 (WebKit::EditorClientImpl::canPaste): 11 * src/EditorClientImpl.h: 12 1 13 2011-04-21 Roland Steiner <rolandsteiner@chromium.org> 2 14 -
trunk/Source/WebKit/chromium/src/EditorClientImpl.cpp
r83617 r84574 321 321 } 322 322 323 bool EditorClientImpl::canCopyCut( bool defaultValue) const323 bool EditorClientImpl::canCopyCut(Frame*, bool defaultValue) const 324 324 { 325 325 return defaultValue; 326 326 } 327 327 328 bool EditorClientImpl::canPaste( bool defaultValue) const328 bool EditorClientImpl::canPaste(Frame*, bool defaultValue) const 329 329 { 330 330 return defaultValue; -
trunk/Source/WebKit/chromium/src/EditorClientImpl.h
r82952 r84574 80 80 virtual void registerCommandForRedo(PassRefPtr<WebCore::EditCommand>); 81 81 virtual void clearUndoRedoOperations(); 82 virtual bool canCopyCut( bool defaultValue) const;83 virtual bool canPaste( bool defaultValue) const;82 virtual bool canCopyCut(WebCore::Frame*, bool defaultValue) const; 83 virtual bool canPaste(WebCore::Frame*, bool defaultValue) const; 84 84 virtual bool canUndo() const; 85 85 virtual bool canRedo() const; -
trunk/Source/WebKit/efl/ChangeLog
r84260 r84574 1 2011-04-21 Ryosuke Niwa <rniwa@webkit.org> 2 3 Reviewed by Sam Weinig. 4 5 Add Frame* to the argument lists of canCopyCut and canPaste 6 https://bugs.webkit.org/show_bug.cgi?id=59153 7 8 * WebCoreSupport/EditorClientEfl.cpp: 9 (WebCore::EditorClientEfl::canCopyCut): 10 (WebCore::EditorClientEfl::canPaste): 11 * WebCoreSupport/EditorClientEfl.h: 12 1 13 2011-04-19 Vsevolod Vlasov <vsevik@chromium.org> 2 14 -
trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.cpp
r79953 r84574 161 161 } 162 162 163 bool EditorClientEfl::canCopyCut( bool defaultValue) const163 bool EditorClientEfl::canCopyCut(Frame*, bool defaultValue) const 164 164 { 165 165 return defaultValue; 166 166 } 167 167 168 bool EditorClientEfl::canPaste( bool defaultValue) const168 bool EditorClientEfl::canPaste(Frame*, bool defaultValue) const 169 169 { 170 170 return defaultValue; -
trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.h
r82952 r84574 83 83 virtual void clearUndoRedoOperations(); 84 84 85 virtual bool canCopyCut( bool defaultValue) const;86 virtual bool canPaste( bool defaultValue) const;85 virtual bool canCopyCut(Frame*, bool defaultValue) const; 86 virtual bool canPaste(Frame*, bool defaultValue) const; 87 87 virtual bool canUndo() const; 88 88 virtual bool canRedo() const; -
trunk/Source/WebKit/gtk/ChangeLog
r84540 r84574 1 2011-04-21 Ryosuke Niwa <rniwa@webkit.org> 2 3 Reviewed by Sam Weinig. 4 5 Add Frame* to the argument lists of canCopyCut and canPaste 6 https://bugs.webkit.org/show_bug.cgi?id=59153 7 8 * WebCoreSupport/EditorClientGtk.cpp: 9 (WebKit::EditorClient::canCopyCut): 10 (WebKit::EditorClient::canPaste): 11 * WebCoreSupport/EditorClientGtk.h: 12 1 13 2011-04-21 Martin Robinson <mrobinson@igalia.com> 2 14 -
trunk/Source/WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp
r79953 r84574 502 502 } 503 503 504 bool EditorClient::canCopyCut( bool defaultValue) const504 bool EditorClient::canCopyCut(WebCore::Frame*, bool defaultValue) const 505 505 { 506 506 return defaultValue; 507 507 } 508 508 509 bool EditorClient::canPaste( bool defaultValue) const509 bool EditorClient::canPaste(WebCore::Frame*, bool defaultValue) const 510 510 { 511 511 return defaultValue; -
trunk/Source/WebKit/gtk/WebCoreSupport/EditorClientGtk.h
r79953 r84574 109 109 virtual void clearUndoRedoOperations(); 110 110 111 virtual bool canCopyCut( bool defaultValue) const;112 virtual bool canPaste( bool defaultValue) const;111 virtual bool canCopyCut(WebCore::Frame*, bool defaultValue) const; 112 virtual bool canPaste(WebCore::Frame*, bool defaultValue) const; 113 113 virtual bool canUndo() const; 114 114 virtual bool canRedo() const; -
trunk/Source/WebKit/haiku/ChangeLog
r82952 r84574 1 2011-04-21 Ryosuke Niwa <rniwa@webkit.org> 2 3 Reviewed by Sam Weinig. 4 5 Add Frame* to the argument lists of canCopyCut and canPaste 6 https://bugs.webkit.org/show_bug.cgi?id=59153 7 8 * WebCoreSupport/EditorClientHaiku.cpp: 9 (WebCore::EditorClientHaiku::canCopyCut): 10 (WebCore::EditorClientHaiku::canPaste): 11 * WebCoreSupport/EditorClientHaiku.h: 12 1 13 2011-04-04 MORITA Hajime <morrita@google.com> 2 14 -
trunk/Source/WebKit/haiku/WebCoreSupport/EditorClientHaiku.cpp
r82886 r84574 205 205 } 206 206 207 bool EditorClientHaiku::canCopyCut( bool defaultValue) const207 bool EditorClientHaiku::canCopyCut(WebCore::Frame*, bool defaultValue) const 208 208 { 209 209 return defaultValue; 210 210 } 211 211 212 bool EditorClientHaiku::canPaste( bool defaultValue) const212 bool EditorClientHaiku::canPaste(WebCore::Frame*, bool defaultValue) const 213 213 { 214 214 return defaultValue; -
trunk/Source/WebKit/haiku/WebCoreSupport/EditorClientHaiku.h
r82952 r84574 80 80 virtual void clearUndoRedoOperations(); 81 81 82 virtual bool canCopyCut( bool defaultValue) const;83 virtual bool canPaste( bool defaultValue) const;82 virtual bool canCopyCut(Frame*, bool defaultValue) const; 83 virtual bool canPaste(Frame*, bool defaultValue) const; 84 84 virtual bool canUndo() const; 85 85 virtual bool canRedo() const; -
trunk/Source/WebKit/mac/ChangeLog
r84561 r84574 1 2011-04-21 Ryosuke Niwa <rniwa@webkit.org> 2 3 Reviewed by Sam Weinig. 4 5 Add Frame* to the argument lists of canCopyCut and canPaste 6 https://bugs.webkit.org/show_bug.cgi?id=59153 7 8 * WebCoreSupport/WebEditorClient.h: 9 * WebCoreSupport/WebEditorClient.mm: 10 (WebEditorClient::canCopyCut): 11 (WebEditorClient::canPaste): 12 1 13 2011-04-21 Sheriff Bot <webkit.review.bot@gmail.com> 2 14 -
trunk/Source/WebKit/mac/WebCoreSupport/WebEditorClient.h
r82952 r84574 108 108 virtual void clearUndoRedoOperations(); 109 109 110 virtual bool canCopyCut( bool defaultValue) const;111 virtual bool canPaste( bool defaultValue) const;110 virtual bool canCopyCut(WebCore::Frame*, bool defaultValue) const; 111 virtual bool canPaste(WebCore::Frame*, bool defaultValue) const; 112 112 virtual bool canUndo() const; 113 113 virtual bool canRedo() const; -
trunk/Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm
r84220 r84574 573 573 } 574 574 575 bool WebEditorClient::canCopyCut( bool defaultValue) const575 bool WebEditorClient::canCopyCut(Frame*, bool defaultValue) const 576 576 { 577 577 return defaultValue; 578 578 } 579 579 580 bool WebEditorClient::canPaste( bool defaultValue) const580 bool WebEditorClient::canPaste(Frame*, bool defaultValue) const 581 581 { 582 582 return defaultValue; -
trunk/Source/WebKit/qt/ChangeLog
r84501 r84574 1 2011-04-21 Ryosuke Niwa <rniwa@webkit.org> 2 3 Reviewed by Sam Weinig. 4 5 Add Frame* to the argument lists of canCopyCut and canPaste 6 https://bugs.webkit.org/show_bug.cgi?id=59153 7 8 * WebCoreSupport/EditorClientQt.cpp: 9 (WebCore::EditorClientQt::canCopyCut): 10 (WebCore::EditorClientQt::canPaste): 11 * WebCoreSupport/EditorClientQt.h: 12 1 13 2011-04-21 Yi Shen <yi.4.shen@nokia.com> 2 14 -
trunk/Source/WebKit/qt/WebCoreSupport/EditorClientQt.cpp
r83305 r84574 260 260 } 261 261 262 bool EditorClientQt::canCopyCut( bool defaultValue) const262 bool EditorClientQt::canCopyCut(WebCore::Frame*, bool defaultValue) const 263 263 { 264 264 return defaultValue; 265 265 } 266 266 267 bool EditorClientQt::canPaste( bool defaultValue) const267 bool EditorClientQt::canPaste(WebCore::Frame*, bool defaultValue) const 268 268 { 269 269 return defaultValue; -
trunk/Source/WebKit/qt/WebCoreSupport/EditorClientQt.h
r82952 r84574 80 80 virtual void clearUndoRedoOperations(); 81 81 82 virtual bool canCopyCut( bool defaultValue) const;83 virtual bool canPaste( bool defaultValue) const;82 virtual bool canCopyCut(Frame*, bool defaultValue) const; 83 virtual bool canPaste(Frame*, bool defaultValue) const; 84 84 virtual bool canUndo() const; 85 85 virtual bool canRedo() const; -
trunk/Source/WebKit/win/ChangeLog
r84435 r84574 1 2011-04-21 Ryosuke Niwa <rniwa@webkit.org> 2 3 Reviewed by Sam Weinig. 4 5 Add Frame* to the argument lists of canCopyCut and canPaste 6 https://bugs.webkit.org/show_bug.cgi?id=59153 7 8 * WebCoreSupport/WebEditorClient.cpp: 9 (WebEditorClient::canCopyCut): 10 (WebEditorClient::canPaste): 11 * WebCoreSupport/WebEditorClient.h: 12 1 13 2011-04-20 Brent Fulgham <bfulgham@webkit.org> 2 14 -
trunk/Source/WebKit/win/WebCoreSupport/WebEditorClient.cpp
r84094 r84574 565 565 } 566 566 567 bool WebEditorClient::canCopyCut( bool defaultValue) const567 bool WebEditorClient::canCopyCut(Frame*, bool defaultValue) const 568 568 { 569 569 return defaultValue; 570 570 } 571 571 572 bool WebEditorClient::canPaste( bool defaultValue) const572 bool WebEditorClient::canPaste(Frame*, bool defaultValue) const 573 573 { 574 574 return defaultValue; -
trunk/Source/WebKit/win/WebCoreSupport/WebEditorClient.h
r82952 r84574 79 79 void clearUndoRedoOperations(); 80 80 81 bool canCopyCut( bool defaultValue) const;82 bool canPaste( bool defaultValue) const;81 bool canCopyCut(Frame*, bool defaultValue) const; 82 bool canPaste(Frame*, bool defaultValue) const; 83 83 bool canUndo() const; 84 84 bool canRedo() const; -
trunk/Source/WebKit/wx/ChangeLog
r83869 r84574 1 2011-04-21 Ryosuke Niwa <rniwa@webkit.org> 2 3 Reviewed by Sam Weinig. 4 5 Add Frame* to the argument lists of canCopyCut and canPaste 6 https://bugs.webkit.org/show_bug.cgi?id=59153 7 8 * WebKitSupport/EditorClientWx.cpp: 9 (WebCore::EditorClientWx::canCopyCut): 10 (WebCore::EditorClientWx::canPaste): 11 * WebKitSupport/EditorClientWx.h: 12 1 13 2011-04-14 Kevin Ollivier <kevino@theolliviers.com> 2 14 -
trunk/Source/WebKit/wx/WebKitSupport/EditorClientWx.cpp
r79953 r84574 314 314 } 315 315 316 bool EditorClientWx::canCopyCut( bool defaultValue) const316 bool EditorClientWx::canCopyCut(Frame*, bool defaultValue) const 317 317 { 318 318 return defaultValue; 319 319 } 320 320 321 bool EditorClientWx::canPaste( bool defaultValue) const321 bool EditorClientWx::canPaste(Frame*, bool defaultValue) const 322 322 { 323 323 return defaultValue; -
trunk/Source/WebKit/wx/WebKitSupport/EditorClientWx.h
r82952 r84574 82 82 virtual void clearUndoRedoOperations(); 83 83 84 virtual bool canCopyCut( bool defaultValue) const;85 virtual bool canPaste( bool defaultValue) const;84 virtual bool canCopyCut(Frame*, bool defaultValue) const; 85 virtual bool canPaste(Frame*, bool defaultValue) const; 86 86 virtual bool canUndo() const; 87 87 virtual bool canRedo() const; -
trunk/Source/WebKit2/ChangeLog
r84571 r84574 1 2011-04-21 Ryosuke Niwa <rniwa@webkit.org> 2 3 Reviewed by Sam Weinig. 4 5 Add Frame* to the argument lists of canCopyCut and canPaste 6 https://bugs.webkit.org/show_bug.cgi?id=59153 7 8 * WebProcess/WebCoreSupport/WebEditorClient.cpp: 9 (WebKit::WebEditorClient::canCopyCut): 10 (WebKit::WebEditorClient::canPaste): 11 * WebProcess/WebCoreSupport/WebEditorClient.h: 12 1 13 2011-04-21 Ivan Krstić <ike@apple.com> 2 14 -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp
r84304 r84574 244 244 } 245 245 246 bool WebEditorClient::canCopyCut( bool defaultValue) const246 bool WebEditorClient::canCopyCut(Frame*, bool defaultValue) const 247 247 { 248 248 return defaultValue; 249 249 } 250 250 251 bool WebEditorClient::canPaste( bool defaultValue) const251 bool WebEditorClient::canPaste(Frame*, bool defaultValue) const 252 252 { 253 253 return defaultValue; -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.h
r82952 r84574 76 76 virtual void clearUndoRedoOperations(); 77 77 78 virtual bool canCopyCut( bool defaultValue) const;79 virtual bool canPaste( bool defaultValue) const;78 virtual bool canCopyCut(WebCore::Frame*, bool defaultValue) const; 79 virtual bool canPaste(WebCore::Frame*, bool defaultValue) const; 80 80 virtual bool canUndo() const; 81 81 virtual bool canRedo() const;
Note: See TracChangeset
for help on using the changeset viewer.