Title: [100871] trunk/Source/WebKit/chromium
Revision
100871
Author
[email protected]
Date
2011-11-20 08:40:40 -0800 (Sun, 20 Nov 2011)

Log Message

Add WebNode::hasEventListeners for Android
https://bugs.webkit.org/show_bug.cgi?id=72817

Reviewed by Darin Fisher.

Expose this EventTarget interface in the Chromium WebKit API for use by
Android.

* public/WebNode.h:
* src/WebNode.cpp:
(WebKit::WebNode::hasEventListeners):

Modified Paths

Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (100870 => 100871)


--- trunk/Source/WebKit/chromium/ChangeLog	2011-11-20 16:38:57 UTC (rev 100870)
+++ trunk/Source/WebKit/chromium/ChangeLog	2011-11-20 16:40:40 UTC (rev 100871)
@@ -1,5 +1,19 @@
 2011-11-20  Adam Barth  <[email protected]>
 
+        Add WebNode::hasEventListeners for Android
+        https://bugs.webkit.org/show_bug.cgi?id=72817
+
+        Reviewed by Darin Fisher.
+
+        Expose this EventTarget interface in the Chromium WebKit API for use by
+        Android.
+
+        * public/WebNode.h:
+        * src/WebNode.cpp:
+        (WebKit::WebNode::hasEventListeners):
+
+2011-11-20  Adam Barth  <[email protected]>
+
         [Chromium] Add GestureFlingStart and GestureFlingCancel to WebGestureEvent for Android
         https://bugs.webkit.org/show_bug.cgi?id=72819
 

Modified: trunk/Source/WebKit/chromium/public/WebNode.h (100870 => 100871)


--- trunk/Source/WebKit/chromium/public/WebNode.h	2011-11-20 16:38:57 UTC (rev 100870)
+++ trunk/Source/WebKit/chromium/public/WebNode.h	2011-11-20 16:40:40 UTC (rev 100871)
@@ -65,7 +65,7 @@
     // Required for using WebNodes in std maps.  Note the order used is
     // arbitrary and should not be expected to have any specific meaning.
     WEBKIT_EXPORT bool lessThan(const WebNode&) const;
-    
+
     bool isNull() const { return m_private.isNull(); }
 
     enum NodeType {
@@ -84,6 +84,7 @@
         XPathNamespaceNode,
         ShadowRootNode
     };
+
     WEBKIT_EXPORT NodeType nodeType() const;
     WEBKIT_EXPORT WebNode parentNode() const;
     WEBKIT_EXPORT WebString nodeName() const;
@@ -102,6 +103,7 @@
     WEBKIT_EXPORT bool isFocusable() const;
     WEBKIT_EXPORT bool isContentEditable() const;
     WEBKIT_EXPORT bool isElementNode() const;
+    WEBKIT_EXPORT bool hasEventListeners(const WebString& eventType) const;
     WEBKIT_EXPORT void addEventListener(const WebString& eventType, WebDOMEventListener* listener, bool useCapture);
     WEBKIT_EXPORT void removeEventListener(const WebString& eventType, WebDOMEventListener* listener, bool useCapture);
     WEBKIT_EXPORT bool dispatchEvent(const WebDOMEvent&);

Modified: trunk/Source/WebKit/chromium/src/WebNode.cpp (100870 => 100871)


--- trunk/Source/WebKit/chromium/src/WebNode.cpp	2011-11-20 16:38:57 UTC (rev 100870)
+++ trunk/Source/WebKit/chromium/src/WebNode.cpp	2011-11-20 16:40:40 UTC (rev 100871)
@@ -166,6 +166,11 @@
     return m_private->isElementNode();
 }
 
+bool WebNode::hasEventListeners(const WebString& eventType) const
+{
+    return m_private->hasEventListeners(eventType);
+}
+
 void WebNode::addEventListener(const WebString& eventType, WebDOMEventListener* listener, bool useCapture)
 {
     EventListenerWrapper* listenerWrapper =
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to