Bug 144832

Summary: Page overlay action context override should indicate the source of the request
Product: WebKit Reporter: Tim Horton <thorton>
Component: New BugsAssignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, bdakin, commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch darin: review+

Description Tim Horton 2015-05-09 15:12:42 PDT
Page overlay action context override should indicate the source of the request
Comment 1 Tim Horton 2015-05-09 15:13:22 PDT
Created attachment 252785 [details]
Patch
Comment 2 WebKit Commit Bot 2015-05-09 15:15:18 PDT
Attachment 252785 [details] did not pass style-queue:


ERROR: Source/WebKit2/WebProcess/WebPage/WebPageOverlay.cpp:123:  Declaration has space between type name and * in DDActionContext *WebPageOverlay  [whitespace/declaration] [3]
Total errors found: 1 in 8 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Darin Adler 2015-05-10 13:54:57 PDT
Comment on attachment 252785 [details]
Patch

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

> Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:47
> +typedef uint32_t _WKBundlePageOverlayActionContextRequestType;

Not sure I understand the rationale behind the leading underscore here.
Comment 4 Tim Horton 2015-05-11 10:42:01 PDT
(In reply to comment #3)
> Comment on attachment 252785 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=252785&action=review
> 
> > Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:47
> > +typedef uint32_t _WKBundlePageOverlayActionContextRequestType;
> 
> Not sure I understand the rationale behind the leading underscore here.

I think it's to avoid naming conflicts with potential future Modern API enum names (the enum values are similarly uniqified by the leading 'k'). Anders points out that this doesn't help if we want to add Modern SPI (because that would have a leading underscore as well), but we don't really have a plan for that yet.

https://trac.webkit.org/changeset/184106