Bug 78554

Summary: Refactor ClipboardMac class to use PlatformStrategies
Product: WebKit Reporter: Enrica Casucci <enrica>
Component: HTML EditingAssignee: Enrica Casucci <enrica>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: Unspecified   
Attachments:
Description Flags
Patch andersca: review+

Enrica Casucci
Reported 2012-02-13 16:58:56 PST
This bug track another step in the direction of removing access to NSPasteboard from the WebProcess. The Mac implementation of the Clipboard class needs to be redesigned to use a platform strategy that can provide different implementations for WebKit and WebKit2.
Attachments
Patch (41.53 KB, patch)
2012-02-13 17:14 PST, Enrica Casucci
andersca: review+
Enrica Casucci
Comment 1 2012-02-13 17:14:57 PST
Anders Carlsson
Comment 2 2012-02-15 14:19:33 PST
Comment on attachment 126872 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=126872&action=review > Source/WebCore/platform/PasteboardStrategy.h:46 > + virtual const String uniqueName() = 0; This doesn't need to return a const String. > Source/WebCore/platform/PlatformPasteboard.h:43 > + static const String uniqueName(); Ditto. > Source/WebCore/platform/PlatformPasteboard.h:49 > + int changeCount(); Can this member function be const? > Source/WebCore/platform/mac/ClipboardMac.mm:73 > +static const String cocoaTypeFromHTMLClipboardType(const String& type) No need for const.
Enrica Casucci
Comment 3 2012-02-15 14:36:39 PST
(In reply to comment #2) > (From update of attachment 126872 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=126872&action=review > > > Source/WebCore/platform/PasteboardStrategy.h:46 > > + virtual const String uniqueName() = 0; > > This doesn't need to return a const String. > > > Source/WebCore/platform/PlatformPasteboard.h:43 > > + static const String uniqueName(); > > Ditto. > > > Source/WebCore/platform/PlatformPasteboard.h:49 > > + int changeCount(); > > Can this member function be const? > > > Source/WebCore/platform/mac/ClipboardMac.mm:73 > > +static const String cocoaTypeFromHTMLClipboardType(const String& type) > > No need for const. Thanks for the review! I'll address your comments.
Enrica Casucci
Comment 4 2012-02-15 15:09:21 PST
Note You need to log in before you can comment on or make changes to this bug.