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

Unified Diff: third_party/WebKit/Source/core/html/HTMLObjectElement.h

Issue 2537133005: New interface and function for form association (Closed)
Patch Set: Added to BUILD.gn Created 4 years 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
Index: third_party/WebKit/Source/core/html/HTMLObjectElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLObjectElement.h b/third_party/WebKit/Source/core/html/HTMLObjectElement.h
index fea5c46594473c6a7982fafad5c74048df212207..818329ec32f41cb532f59e0dd4af08dc11de91a0 100644
--- a/third_party/WebKit/Source/core/html/HTMLObjectElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLObjectElement.h
@@ -24,6 +24,7 @@
#define HTMLObjectElement_h
#include "core/CoreExport.h"
+#include "core/html/FormAssociated.h"
#include "core/html/HTMLPlugInElement.h"
#include "core/html/ListedElement.h"
@@ -36,7 +37,8 @@ class HTMLFormElement;
// working according to the spec. See:
// https://html.spec.whatwg.org/multipage/embedded-content.html#the-object-element
class CORE_EXPORT HTMLObjectElement final : public HTMLPlugInElement,
- public ListedElement {
+ public ListedElement,
+ public FormAssociated {
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(HTMLObjectElement);
@@ -76,6 +78,9 @@ class CORE_EXPORT HTMLObjectElement final : public HTMLPlugInElement,
bool willUseFallbackContentAtLayout() const;
+ FormAssociated* toFormAssociatedOrNull() override { return this; };
+ void associateWith(HTMLFormElement*) override;
+
private:
HTMLObjectElement(Document&, HTMLFormElement*, bool createdByParser);
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLImageElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLObjectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698