| OLD | NEW |
| (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 |
| OLD | NEW |