Bug 133017

Summary: Expose WKUserScript as API
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: New BugsAssignee: Anders Carlsson <andersca>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, mkwst
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch sam: review+

Description Anders Carlsson 2014-05-16 16:18:14 PDT
Expose WKUserScript as API
Comment 1 Anders Carlsson 2014-05-16 16:39:10 PDT
Created attachment 231604 [details]
Patch
Comment 2 WebKit Commit Bot 2014-05-16 16:42:13 PDT
Attachment 231604 [details] did not pass style-queue:


ERROR: Source/WebKit2/UIProcess/API/Cocoa/WKUserScriptInternal.h:32:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/WebKit2/UIProcess/API/Cocoa/WKUserContentControllerInternal.h:36:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
Total errors found: 2 in 36 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Sam Weinig 2014-05-16 17:53:09 PDT
Comment on attachment 231604 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=231604&action=review

> Source/WebKit2/UIProcess/UserContent/WebUserContentControllerProxy.h:41
> +class WebUserContentControllerProxy final : public RefCounted<WebUserContentControllerProxy> {

There is nothing virtual about this class. Does adding final really help here?

> Source/WebKit2/WebProcess/UserContent/WebUserContentController.h:51
> +private:

This private is redundant.

> Source/WebKit2/WebProcess/UserContent/WebUserContentController.h:53
> +    RefPtr<WebCore::UserContentController> m_userContentController;

This could probably be a Ref<WebCore::UserContentController> m_userContentController;
Comment 4 Anders Carlsson 2014-05-17 12:58:10 PDT
Committed r168994: <http://trac.webkit.org/changeset/168994>