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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This file has been auto-generated by code_generator_web_module.py.
6 // DO NOT MODIFY!
7
8 // This file has been generated from the Jinja2 template in
9 // third_party/WebKit/Source/bindings/templates/web_module_interface.cc.tmpl
10
11 // clang-format off
12
13 #include "web/api/event.h"
14
15 // TODO(dglazkov): Properly sort the includes.
16 #include "wtf/text/WTFString.h"
17 #include "core/events/EventTarget.h"
18 #include "core/events/Event.h"
19
20 namespace web {
21
22 Event* Event::Create(blink::Event* event) {
23 return event ? new Event(event) : nullptr;
24 }
25
26 DEFINE_TRACE(Event) {
27 visitor->trace(event_);
28 }
29
30 // TODO(dglazkov): Implement constant generation
31
32 // TODO(dglazkov): Implement attribute getter/setter generation
33 // DOMString type
34 // EventTarget target
35 // EventTarget currentTarget
36 // unsigned short eventPhase
37 // boolean bubbles
38 // boolean cancelable
39 // boolean defaultPrevented
40 // boolean composed
41 // boolean isTrusted
42 // double timeStamp
43 // EventTarget srcElement
44 // boolean returnValue
45 // boolean cancelBubble
46 // None path
47
48 // TODO(dglazkov): Implement method generation
49 // None Event::composedPath
50 // void Event::stopPropagation
51 // void Event::stopImmediatePropagation
52 // void Event::preventDefault
53 // void Event::initEvent
54
55 Event::Event(blink::Event* event)
56 : event_(event) {}
57
58 blink::Event* Event::event() const {
59 return event_;
60 }
61
62 } // namespace web
OLDNEW
« 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