| Summary: | Prefix force on MouseEvent and add constants for click and force click values | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Beth Dakin <bdakin> | ||||
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | bdakin, commit-queue, dino, sam, simon.fraser, thorton | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Beth Dakin
2015-05-15 11:54:38 PDT
Created attachment 253211 [details]
Patch
Attachment 253211 [details] did not pass style-queue:
ERROR: Source/WebCore/dom/MouseEvent.h:52: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4]
ERROR: Source/WebCore/dom/MouseEvent.h:53: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4]
Total errors found: 2 in 3 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 253211 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=253211&action=review > Source/WebCore/dom/MouseEvent.h:95 > double force() const { return m_force; } > + double webkitForce() const { return m_force; } Isn't there a way in the IDL to have an alias like this without having to have the function twice? (In reply to comment #3) > Comment on attachment 253211 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=253211&action=review > > > Source/WebCore/dom/MouseEvent.h:95 > > double force() const { return m_force; } > > + double webkitForce() const { return m_force; } > > Isn't there a way in the IDL to have an alias like this without having to > have the function twice? Yes! I think you want something like this: [Conditional=MOUSE_FORCE_EVENTS, ImplementedAs=force] readonly attribute double webkitForce; Thanks, Tim! http://trac.webkit.org/changeset/184417 |