RESOLVED WONTFIX 34293
Add writeToPasteboard function to Clipboard interface and add stub implementations
https://bugs.webkit.org/show_bug.cgi?id=34293
Summary Add writeToPasteboard function to Clipboard interface and add stub implementa...
Daniel Cheng
Reported 2010-01-28 16:57:33 PST
This particular implementation was chosen to simplify potential Windows implementations of Clipboard::clearData(). It also helps with copy-and-paste as drag-and-drop; though that part of the spec is current in flux, it doesn't hurt keep it in mind when making patches in this area. Calling writeToPasteboard() should do the following: if (!isForDragging()) return false; if (!isDirty()) return true; // Dirty bit is tracked by each implementation. /* copy data to system pasteboard */ Since the first two lines should be common to all implementations, should I split it into two functions, writeToPasteboard() and virtual writeToPasteboardImpl()?
Attachments
Patch (9.55 KB, patch)
2010-01-28 17:00 PST, Daniel Cheng
no flags
Daniel Cheng
Comment 1 2010-01-28 17:00:02 PST
Daniel Cheng
Comment 2 2010-02-04 15:36:46 PST
After talking with dimich, I have decided to refactor the Clipboard class instead.
Note You need to log in before you can comment on or make changes to this bug.