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

Unified Diff: third_party/WebKit/fake_gen/web/api/event.cc

Issue 2591803002: NOT FOR LANDING: Thread the needle through all webmodules.
Patch Set: AddEventListener sketched out. 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/fake_gen/web/api/event.h ('k') | third_party/WebKit/fake_gen/web/api/event_target.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/fake_gen/web/api/event.cc
diff --git a/third_party/WebKit/fake_gen/web/api/event.cc b/third_party/WebKit/fake_gen/web/api/event.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3eb8aa6a8b596d27d73c68bd8acf8aa30d5bd926
--- /dev/null
+++ b/third_party/WebKit/fake_gen/web/api/event.cc
@@ -0,0 +1,62 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file has been auto-generated by code_generator_web_module.py.
+// DO NOT MODIFY!
+
+// This file has been generated from the Jinja2 template in
+// third_party/WebKit/Source/bindings/templates/web_module_interface.cc.tmpl
+
+// clang-format off
+
+#include "web/api/event.h"
+
+// TODO(dglazkov): Properly sort the includes.
+#include "wtf/text/WTFString.h"
+#include "core/events/EventTarget.h"
+#include "core/events/Event.h"
+
+namespace web {
+
+Event* Event::Create(blink::Event* event) {
+ return event ? new Event(event) : nullptr;
+}
+
+DEFINE_TRACE(Event) {
+ visitor->trace(event_);
+}
+
+// TODO(dglazkov): Implement constant generation
+
+// TODO(dglazkov): Implement attribute getter/setter generation
+// DOMString type
+// EventTarget target
+// EventTarget currentTarget
+// unsigned short eventPhase
+// boolean bubbles
+// boolean cancelable
+// boolean defaultPrevented
+// boolean composed
+// boolean isTrusted
+// double timeStamp
+// EventTarget srcElement
+// boolean returnValue
+// boolean cancelBubble
+// None path
+
+// TODO(dglazkov): Implement method generation
+// None Event::composedPath
+// void Event::stopPropagation
+// void Event::stopImmediatePropagation
+// void Event::preventDefault
+// void Event::initEvent
+
+Event::Event(blink::Event* event)
+ : event_(event) {}
+
+blink::Event* Event::event() const {
+ return event_;
+}
+
+} // namespace web
« no previous file with comments | « third_party/WebKit/fake_gen/web/api/event.h ('k') | third_party/WebKit/fake_gen/web/api/event_target.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698