Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Unified Diff: Source/WebKit/chromium/src/WebInputElement.cpp

Issue 10037002: Datalist UI (WebKit part) (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk
Patch Set: fixed Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebKit/chromium/src/WebDataListElement.cpp ('k') | Source/WebKit/chromium/src/WebViewImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/WebInputElement.cpp
diff --git a/Source/WebKit/chromium/src/WebInputElement.cpp b/Source/WebKit/chromium/src/WebInputElement.cpp
index f5d52da80c69ac48012b33f8ce0aaf742e3a8c40..ed572f7b7744fdb92f91eb5b068f0935a1c8057b 100644
--- a/Source/WebKit/chromium/src/WebInputElement.cpp
+++ b/Source/WebKit/chromium/src/WebInputElement.cpp
@@ -31,10 +31,12 @@
#include "config.h"
#include "WebInputElement.h"
+#include "HTMLDataListElement.h"
#include "HTMLInputElement.h"
#include "HTMLNames.h"
#include "TextControlInnerElements.h"
#include "platform/WebString.h"
+#include "WebDataListElement.h"
#include <wtf/PassRefPtr.h>
using namespace WebCore;
@@ -151,6 +153,15 @@ bool WebInputElement::isChecked() const
return constUnwrap<HTMLInputElement>()->checked();
}
+WebDataListElement WebInputElement::dataList() const
+{
+#if ENABLE(DATALIST)
+ return WebDataListElement(static_cast<HTMLDataListElement*>(constUnwrap<HTMLInputElement>()->list()));
+#else
+ return WebDataListElement();
+#endif
+}
+
bool WebInputElement::isSpeechInputEnabled() const
{
#if ENABLE(INPUT_SPEECH)
« no previous file with comments | « Source/WebKit/chromium/src/WebDataListElement.cpp ('k') | Source/WebKit/chromium/src/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698