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

Unified Diff: third_party/WebKit/public/web/WebInputElement.h

Issue 1365203002: Make WebNode::to<Type>() (and toConst) casts contain type asserts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add BLINK_IMPLEMENTATION guard. Created 5 years, 3 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 | « third_party/WebKit/public/web/WebFormElement.h ('k') | third_party/WebKit/public/web/WebLabelElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebInputElement.h
diff --git a/third_party/WebKit/public/web/WebInputElement.h b/third_party/WebKit/public/web/WebInputElement.h
index de38d60656bab882a4bd90346f1494c451f794c9..f374d40732b9f2f4c3bb11a30dd45e01b2bf812e 100644
--- a/third_party/WebKit/public/web/WebInputElement.h
+++ b/third_party/WebKit/public/web/WebInputElement.h
@@ -39,7 +39,7 @@ class HTMLInputElement;
class WebElementCollection;
// Provides readonly access to some properties of a DOM input element node.
-class WebInputElement : public WebFormControlElement {
+class WebInputElement final : public WebFormControlElement {
public:
WebInputElement() : WebFormControlElement() { }
WebInputElement(const WebInputElement& element) : WebFormControlElement(element) { }
@@ -91,6 +91,8 @@ public:
#endif
};
+DECLARE_WEB_NODE_TYPE_CASTS(WebInputElement);
+
// This returns 0 if the specified WebElement is not a WebInputElement.
BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*);
// This returns 0 if the specified WebElement is not a WebInputElement.
« no previous file with comments | « third_party/WebKit/public/web/WebFormElement.h ('k') | third_party/WebKit/public/web/WebLabelElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698