summaryrefslogtreecommitdiffstats
path: root/webkit/glue/dom_operations.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/dom_operations.h')
-rw-r--r--webkit/glue/dom_operations.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/webkit/glue/dom_operations.h b/webkit/glue/dom_operations.h
index c6276de..a088ef7 100644
--- a/webkit/glue/dom_operations.h
+++ b/webkit/glue/dom_operations.h
@@ -12,6 +12,11 @@
#include "googleurl/src/gurl.h"
#include "webkit/glue/password_form_dom_manager.h"
+namespace WebCore {
+class Element;
+class Node;
+}
+
struct FormData;
class WebFrameImpl;
class WebView;
@@ -146,6 +151,11 @@ bool ElementDoesAutoCompleteForElementWithId(WebView* view,
// Returns the number of animations currently running.
int NumberOfActiveAnimations(WebView* view);
+// Returns the passed element/node casted to an HTMLInputElement if it is one,
+// NULL if it is not an HTMLInputElement.
+WebCore::HTMLInputElement* ElementToHTMLInputElement(WebCore::Element* element);
+WebCore::HTMLInputElement* NodeToHTMLInputElement(WebCore::Node* node);
+
} // namespace webkit_glue
#endif // WEBKIT_GLUE_DOM_OPERATIONS_H__