Bug 155304 - defaultActions in UIDelegate method previewingViewControllerForElement:defaultActions: need to be useable by a client
Summary: defaultActions in UIDelegate method previewingViewControllerForElement:defaul...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-10 11:02 PST by Beth Dakin
Modified: 2016-03-11 10:43 PST (History)
7 users (show)

See Also:


Attachments
Patch (8.42 KB, patch)
2016-03-10 11:26 PST, Beth Dakin
no flags Details | Formatted Diff | Diff
Patch (8.45 KB, patch)
2016-03-10 11:53 PST, Beth Dakin
no flags Details | Formatted Diff | Diff
Patch (21.80 KB, patch)
2016-03-10 15:45 PST, Beth Dakin
no flags Details | Formatted Diff | Diff
Patch (26.99 KB, patch)
2016-03-10 16:18 PST, Beth Dakin
andersca: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Beth Dakin 2016-03-10 11:02:18 PST
defaultActions in UIDelegate method previewingViewControllerForElement:defaultActions: need to be use-able by a client

<rdar://problem/24269296>
Comment 1 Beth Dakin 2016-03-10 11:26:48 PST
Created attachment 273586 [details]
Patch
Comment 2 WebKit Commit Bot 2016-03-10 11:28:54 PST
Attachment 273586 [details] did not pass style-queue:


ERROR: Source/WebKit2/UIProcess/API/Cocoa/WKUIDelegatePrivate.h:33:  Alphabetical sorting problem.  [build/include_order] [4]
ERROR: Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:3901:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
Total errors found: 2 in 4 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Beth Dakin 2016-03-10 11:53:20 PST
Created attachment 273591 [details]
Patch
Comment 4 WebKit Commit Bot 2016-03-10 11:54:40 PST
Attachment 273591 [details] did not pass style-queue:


ERROR: Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:3901:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
Total errors found: 1 in 4 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Beth Dakin 2016-03-10 15:45:12 PST
Created attachment 273640 [details]
Patch
Comment 6 Beth Dakin 2016-03-10 16:18:11 PST
Created attachment 273646 [details]
Patch
Comment 7 WebKit Commit Bot 2016-03-10 16:20:45 PST
Attachment 273646 [details] did not pass style-queue:


ERROR: Source/WebKit2/UIProcess/API/Cocoa/_WKPreviewAction.h:34:  Should have space between @property and attributes.  [whitespace/property] [4]
ERROR: Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:3902:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
Total errors found: 2 in 11 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 8 Anders Carlsson 2016-03-10 16:37:50 PST
Comment on attachment 273646 [details]
Patch

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

> Source/WebKit2/UIProcess/API/Cocoa/_WKElementAction.h:64
> +- (NSString *)previewIdentifier;

Why is this here?

> Source/WebKit2/UIProcess/API/Cocoa/_WKPreviewAction.h:34
> +@property(nonatomic, copy, readonly) NSString *identifier;

Newline before @proeprty

> Source/WebKit2/UIProcess/API/Cocoa/_WKPreviewAction.h:35
> +@end

Newline before @end

> Source/WebKit2/UIProcess/API/Cocoa/_WKPreviewAction.h:38
> +

No newline!
Comment 9 Beth Dakin 2016-03-10 16:47:49 PST
I addressed all of the comments: http://trac.webkit.org/changeset/197973

Thanks Anders!!
Comment 10 mitz 2016-03-10 19:44:40 PST
Why are we exposing both the class and the protocol in a private header? Can the class remain an internal implementation detail?
Comment 11 Beth Dakin 2016-03-11 10:43:07 PST
(In reply to comment #10)
> Why are we exposing both the class and the protocol in a private header? Can
> the class remain an internal implementation detail?

Patch posted: https://bugs.webkit.org/show_bug.cgi?id=155370

Good catch, Dan!