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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/test_interface_3.cc

Issue 2688933003: [Web Agents API]: Start fleshing out generated code. (Closed)
Patch Set: Rebased. Created 3 years, 10 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/Source/bindings/tests/results/core/test_interface_3.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/tests/results/core/test_interface_3.cc
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/test_interface_3.cc b/third_party/WebKit/Source/bindings/tests/results/core/test_interface_3.cc
index ab992162f6083ff26e3d233fcd32d3181e6f51fd..3e47c8795cfb84395f1652fa20f9554f5852bbcb 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/test_interface_3.cc
+++ b/third_party/WebKit/Source/bindings/tests/results/core/test_interface_3.cc
@@ -10,17 +10,23 @@
// clang-format off
-#include "test_interface_3.h"
+#include "web/api/test_interface_3.h"
-// TODO(dglazkov): Implement generating includes.
-#include "wtf/text/WTFString.h.h"
+// TODO(dglazkov): Properly sort the includes.
+#include "wtf/text/WTFString.h"
+#include "bindings/tests/idls/core/TestInterface3.h"
-namespace blink {
-namespace api {
+namespace web {
-// TODO(dglazkov): Implement constant generation
+TestInterface3* TestInterface3::Create(blink::TestInterface3* test_interface_3) {
+ return test_interface_3 ? new TestInterface3(test_interface_3) : nullptr;
+}
+
+DEFINE_TRACE(TestInterface3) {
+ visitor->trace(test_interface_3_);
+}
-// TODO(dglazkov): Implement constructor generation
+// TODO(dglazkov): Implement constant generation
// TODO(dglazkov): Implement attribute getter/setter generation
// unsigned long length
@@ -29,5 +35,11 @@ namespace api {
// TODO(dglazkov): Implement method generation
// void TestInterface3::voidMethodDocument
-} // namespace api
-} // namespace blink
+TestInterface3::TestInterface3(blink::TestInterface3* test_interface_3)
+ : test_interface_3_(test_interface_3) {}
+
+blink::TestInterface3* TestInterface3::test_interface_3() const {
+ return test_interface_3_;
+}
+
+} // namespace web
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/core/test_interface_3.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698