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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.h

Issue 1883663005: Remove remaining binding layer RawPtr<>s. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698