OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class Event; | 41 class Event; |
42 class Node; | 42 class Node; |
43 | 43 |
44 // V8LazyEventListener is a wrapper for a JavaScript code string that is compile
d and evaluated when an event is fired. | 44 // V8LazyEventListener is a wrapper for a JavaScript code string that is compile
d and evaluated when an event is fired. |
45 // A V8LazyEventListener is either a HTML or SVG event handler. | 45 // A V8LazyEventListener is either a HTML or SVG event handler. |
46 class V8LazyEventListener final : public V8AbstractEventListener { | 46 class V8LazyEventListener final : public V8AbstractEventListener { |
47 public: | 47 public: |
48 static RawPtr<V8LazyEventListener> create(const AtomicString& functionName,
const AtomicString& eventParameterName, const String& code, const String& source
URL, const TextPosition& position, Node* node, v8::Isolate* isolate) | 48 static V8LazyEventListener* create(const AtomicString& functionName, const A
tomicString& eventParameterName, const String& code, const String& sourceURL, co
nst TextPosition& position, Node* node, v8::Isolate* isolate) |
49 { | 49 { |
50 return new V8LazyEventListener(isolate, functionName, eventParameterName
, code, sourceURL, position, node); | 50 return new V8LazyEventListener(isolate, functionName, eventParameterName
, code, sourceURL, position, node); |
51 } | 51 } |
52 | 52 |
53 DEFINE_INLINE_VIRTUAL_TRACE() | 53 DEFINE_INLINE_VIRTUAL_TRACE() |
54 { | 54 { |
55 visitor->trace(m_node); | 55 visitor->trace(m_node); |
56 V8AbstractEventListener::trace(visitor); | 56 V8AbstractEventListener::trace(visitor); |
57 } | 57 } |
58 | 58 |
(...skipping 19 matching lines...) Expand all Loading... |
78 AtomicString m_eventParameterName; | 78 AtomicString m_eventParameterName; |
79 String m_code; | 79 String m_code; |
80 String m_sourceURL; | 80 String m_sourceURL; |
81 Member<Node> m_node; | 81 Member<Node> m_node; |
82 TextPosition m_position; | 82 TextPosition m_position; |
83 }; | 83 }; |
84 | 84 |
85 } // namespace blink | 85 } // namespace blink |
86 | 86 |
87 #endif // V8LazyEventListener_h | 87 #endif // V8LazyEventListener_h |
OLD | NEW |