[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.22-985-g3c00f00
eric at webkit.org
eric at webkit.org
Wed Mar 17 18:32:00 UTC 2010
The following commit has been merged in the webkit-1.1 branch:
commit 3ebb8aec2be7905afa968253983d10c5578c54d6
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Wed Mar 10 22:26:49 2010 +0000
2010-03-10 Evan Stade <estade at chromium.org>
Reviewed by David Levin.
[chromium] add functionality to activate the focused node in a WebView
https://bugs.webkit.org/show_bug.cgi?id=35407
* public/WebDocument.h:
* public/WebNode.h:
* src/WebDocument.cpp:
(WebKit::WebDocument::focusedNode): Added
* src/WebNode.cpp:
(WebKit::WebNode::simulateClick): Added
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55808 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit/chromium/ChangeLog b/WebKit/chromium/ChangeLog
index e8d8abb..ed8a0e1 100644
--- a/WebKit/chromium/ChangeLog
+++ b/WebKit/chromium/ChangeLog
@@ -1,3 +1,17 @@
+2010-03-10 Evan Stade <estade at chromium.org>
+
+ Reviewed by David Levin.
+
+ [chromium] add functionality to activate the focused node in a WebView
+ https://bugs.webkit.org/show_bug.cgi?id=35407
+
+ * public/WebDocument.h:
+ * public/WebNode.h:
+ * src/WebDocument.cpp:
+ (WebKit::WebDocument::focusedNode): Added
+ * src/WebNode.cpp:
+ (WebKit::WebNode::simulateClick): Added
+
2010-03-10 John Abd-El-Malek <jam at chromium.org>
Reviewed by Darin Fisher.
diff --git a/WebKit/chromium/public/WebDocument.h b/WebKit/chromium/public/WebDocument.h
index 78809ea..8397af7 100644
--- a/WebKit/chromium/public/WebDocument.h
+++ b/WebKit/chromium/public/WebDocument.h
@@ -72,6 +72,7 @@ public:
WEBKIT_API WebElement getElementById(const WebString& id) const;
WEBKIT_API WebNodeList getElementsByTagName(const WebString&);
WEBKIT_API WebString applicationID() const;
+ WEBKIT_API WebNode focusedNode() const;
#if WEBKIT_IMPLEMENTATION
WebDocument(const WTF::PassRefPtr<WebCore::Document>&);
diff --git a/WebKit/chromium/public/WebNode.h b/WebKit/chromium/public/WebNode.h
index d2cf60c..5141789 100644
--- a/WebKit/chromium/public/WebNode.h
+++ b/WebKit/chromium/public/WebNode.h
@@ -106,6 +106,7 @@ public:
WEBKIT_API bool isElementNode() const;
WEBKIT_API void addEventListener(const WebString& eventType, WebEventListener* listener, bool useCapture);
WEBKIT_API void removeEventListener(const WebString& eventType, WebEventListener* listener, bool useCapture);
+ WEBKIT_API void simulateClick();
template<typename T> T toElement()
{
diff --git a/WebKit/chromium/src/WebDocument.cpp b/WebKit/chromium/src/WebDocument.cpp
index 8515685..a84ce4f 100644
--- a/WebKit/chromium/src/WebDocument.cpp
+++ b/WebKit/chromium/src/WebDocument.cpp
@@ -157,4 +157,9 @@ WebString WebDocument::applicationID() const
return WebString();
}
+WebNode WebDocument::focusedNode() const
+{
+ return WebNode(constUnwrap<Document>()->focusedNode());
+}
+
} // namespace WebKit
diff --git a/WebKit/chromium/src/WebNode.cpp b/WebKit/chromium/src/WebNode.cpp
index 644792f..9c5e827 100644
--- a/WebKit/chromium/src/WebNode.cpp
+++ b/WebKit/chromium/src/WebNode.cpp
@@ -199,4 +199,11 @@ void WebNode::removeEventListener(const WebString& eventType, WebEventListener*
// listenerWrapper is now deleted.
}
+void WebNode::simulateClick()
+{
+ ASSERT(m_private);
+ RefPtr<Event> noEvent;
+ m_private->dispatchSimulatedClick(noEvent);
+}
+
} // namespace WebKit
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list