WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
128396
[iOS][WK2] Add empty definition for an API allowing clients to define obscured edges over the scrollview
https://bugs.webkit.org/show_bug.cgi?id=128396
Summary
[iOS][WK2] Add empty definition for an API allowing clients to define obscure...
Benjamin Poulain
Reported
2014-02-07 14:00:52 PST
[iOS][WK2] Add empty definition for an API allowing clients to define obscured edges over the scrollview
Attachments
Patch
(4.71 KB, patch)
2014-02-07 14:01 PST
,
Benjamin Poulain
no flags
Details
Formatted Diff
Diff
Patch
(5.38 KB, patch)
2014-02-07 15:19 PST
,
Benjamin Poulain
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Benjamin Poulain
Comment 1
2014-02-07 14:01:56 PST
Created
attachment 223494
[details]
Patch
WebKit Commit Bot
Comment 2
2014-02-07 14:04:35 PST
Attachment 223494
[details]
did not pass style-queue: ERROR: Source/WebKit2/UIProcess/API/Cocoa/WKViewPrivate.h:48: Missing spaces around = [whitespace/operators] [4] ERROR: Source/WebKit2/UIProcess/API/Cocoa/WKWebViewPrivate.h:40: Missing spaces around = [whitespace/operators] [4] Total errors found: 2 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Ian Henderson
Comment 3
2014-02-07 14:08:46 PST
Comment on
attachment 223494
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=223494&action=review
> Source/WebKit2/UIProcess/API/Cocoa/WKViewPrivate.h:48 > +@property (nonatomic, setter=_setObscuredInset:) UIEdgeInsets _obscuredInset;
I think the usual UIKit style for private properties is to omit the underscore from the property name and define both setter=_setProperty: and getter=_property.
> Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:374 > +- (UIEdgeInsets)_obscuredInset > +{ > + return _obscuredInset; > +}
If we don't define this method, the compiler should autosynthesize it and the ivar for us.
Anders Carlsson
Comment 4
2014-02-07 14:14:07 PST
(In reply to
comment #3
)
> (From update of
attachment 223494
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=223494&action=review
> > > Source/WebKit2/UIProcess/API/Cocoa/WKViewPrivate.h:48 > > +@property (nonatomic, setter=_setObscuredInset:) UIEdgeInsets _obscuredInset; > > I think the usual UIKit style for private properties is to omit the underscore from the property name and define both setter=_setProperty: and getter=_property.
We've decided against doing that for properties. If we decide to make a private property public with slightly different semantics we don't want clients to break.
Simon Fraser (smfr)
Comment 5
2014-02-07 14:32:06 PST
Comment on
attachment 223494
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=223494&action=review
> Source/WebKit2/UIProcess/API/ios/WKViewIOS.mm:276 > +- (void)_commitObscuredInset > +{ > +}
Not sure why committing is separate from setting.
Simon Fraser (smfr)
Comment 6
2014-02-07 14:45:25 PST
Comment on
attachment 223494
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=223494&action=review
> Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:376 > +- (void)_setObscuredInset:(UIEdgeInsets)obscuredInset
_setObscuredInsets
> Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:385 > +- (void)_commitObscuredInset
Need a better name for this, or use a flag on -_setObscuredInsets:
Ian Henderson
Comment 7
2014-02-07 14:49:17 PST
Comment on
attachment 223494
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=223494&action=review
> Source/WebKit2/UIProcess/API/Cocoa/WKViewPrivate.h:51 > +// Inform the web content that the unobscured area has reached a stable state. > +- (void)_commitObscuredInset;
Ben and I discussed this, and we think it makes sense to have a pair of methods: - (void)beginInteractiveObscuredInsetChange; - (void)endInteractiveObscuredInsetChange; When every begin call has been balanced by an end call, we'll inform the web content of the change.
Benjamin Poulain
Comment 8
2014-02-07 15:19:14 PST
Created
attachment 223502
[details]
Patch
WebKit Commit Bot
Comment 9
2014-02-07 15:20:51 PST
Attachment 223502
[details]
did not pass style-queue: ERROR: Source/WebKit2/UIProcess/API/Cocoa/WKViewPrivate.h:48: Missing spaces around = [whitespace/operators] [4] ERROR: Source/WebKit2/UIProcess/API/Cocoa/WKWebViewPrivate.h:40: Missing spaces around = [whitespace/operators] [4] Total errors found: 2 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Benjamin Poulain
Comment 10
2014-02-10 13:52:40 PST
Comment on
attachment 223502
[details]
Patch Clearing flags on attachment: 223502 Committed
r163814
: <
http://trac.webkit.org/changeset/163814
>
Benjamin Poulain
Comment 11
2014-02-10 13:52:42 PST
All reviewed patches have been landed. Closing bug.
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