Prefix force on MouseEvent and add constants for click and force click values
authorbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 May 2015 21:31:25 +0000 (21:31 +0000)
committerbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 May 2015 21:31:25 +0000 (21:31 +0000)
https://bugs.webkit.org/show_bug.cgi?id=145065
-and corresponding-
rdar://problem/20770052

Reviewed by Tim Horton.

(WebCore::MouseEvent::webkitForce):
* dom/MouseEvent.idl:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@184417 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/dom/MouseEvent.idl

index 8d0e6bd..be3cd7b 100644 (file)
@@ -1,3 +1,15 @@
+2015-05-15  Beth Dakin  <bdakin@apple.com>
+
+        Prefix force on MouseEvent and add constants for click and force click values
+        https://bugs.webkit.org/show_bug.cgi?id=145065
+        -and corresponding-
+        rdar://problem/20770052
+
+        Reviewed by Tim Horton.
+
+        (WebCore::MouseEvent::webkitForce):
+        * dom/MouseEvent.idl:
+
 2015-05-15  Jer Noble  <jer.noble@apple.com>
 
         [MediaControls] Refactor media controls & bring improvements made to iOS controls to Mac.
index 524cd6d..d388f34 100644 (file)
 [
     ConstructorConditional=DOM4_EVENTS_CONSTRUCTOR,
     ConstructorTemplate=Event,
+    DoNotCheckConstants,
 ] interface MouseEvent : UIEvent {
+#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
+    [Conditional=MOUSE_FORCE_EVENTS] const double WEBKIT_FORCE_AT_MOUSE_DOWN        = 1;
+    [Conditional=MOUSE_FORCE_EVENTS] const double WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN  = 2;
+#endif
+
     [InitializedByEventConstructor] readonly attribute long             screenX;
     [InitializedByEventConstructor] readonly attribute long             screenY;
     [InitializedByEventConstructor] readonly attribute long             clientX;
@@ -33,7 +39,9 @@
     [InitializedByEventConstructor] readonly attribute EventTarget      relatedTarget;
     [Conditional=POINTER_LOCK]      readonly attribute long             movementX;
     [Conditional=POINTER_LOCK]      readonly attribute long             movementY;
-    [Conditional=MOUSE_FORCE_EVENTS]readonly attribute double           force;
+#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
+    [Conditional=MOUSE_FORCE_EVENTS, ImplementedAs=force]readonly attribute double  webkitForce;
+#endif
     
     [ObjCLegacyUnnamedParameters] void initMouseEvent([Default=Undefined] optional DOMString type, 
                                        [Default=Undefined] optional boolean canBubble,