| Summary: | Need WK2 API to disable rubber-banding | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Beth Dakin <bdakin> | ||||
| Component: | WebKit API | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | bdakin, sam, simon.fraser, thorton | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Beth Dakin
2014-04-11 15:52:58 PDT
Created attachment 229171 [details]
Patch
Comment on attachment 229171 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=229171&action=review > Source/WebKit2/UIProcess/API/C/WKPage.h:185 > +WK_EXPORT bool WKPageVerticalRubberBandingIsDisabled(WKPageRef); > +WK_EXPORT void WKPageDisableVerticalRubberBanding(WKPageRef, bool disableVerticalRubberBanding); > +WK_EXPORT bool WKPageHorizontalRubberBandingIsDisabled(WKPageRef); > +WK_EXPORT void WKPageDisableHorizontalRubberBanding(WKPageRef, bool disableHorizontalRubberBanding); It would be slightly cleaner to have the API in positive terms (enabled, not disabled) I think. > Source/WebKit2/WebProcess/WebPage/WebPage.h:363 > + void disableVerticalRubberBanding(bool); > + void disableHorizontalRubberBanding(bool); I think setDisabled would be better terminology (or setEnabled if you want a positive term). Thanks, Simon! I switch the the positive terminology and the 'set' language. http://trac.webkit.org/changeset/167172 |