WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 78554
Refactor ClipboardMac class to use PlatformStrategies
https://bugs.webkit.org/show_bug.cgi?id=78554
Summary
Refactor ClipboardMac class to use PlatformStrategies
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+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Enrica Casucci
Comment 1
2012-02-13 17:14:57 PST
Created
attachment 126872
[details]
Patch
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
http://trac.webkit.org/changeset/107844
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug