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

Side by Side Diff: Source/bindings/core/v8/V8MutationCallback.h

Issue 954683002: InlinedVisitor: Migrate bindings to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 public: 43 public:
44 static PassOwnPtrWillBeRawPtr<V8MutationCallback> create(v8::Handle<v8::Func tion> callback, v8::Handle<v8::Object> owner, ScriptState* scriptState) 44 static PassOwnPtrWillBeRawPtr<V8MutationCallback> create(v8::Handle<v8::Func tion> callback, v8::Handle<v8::Object> owner, ScriptState* scriptState)
45 { 45 {
46 return adoptPtrWillBeNoop(new V8MutationCallback(callback, owner, script State)); 46 return adoptPtrWillBeNoop(new V8MutationCallback(callback, owner, script State));
47 } 47 }
48 virtual ~V8MutationCallback(); 48 virtual ~V8MutationCallback();
49 49
50 virtual void call(const WillBeHeapVector<RefPtrWillBeMember<MutationRecord>> &, MutationObserver*) override; 50 virtual void call(const WillBeHeapVector<RefPtrWillBeMember<MutationRecord>> &, MutationObserver*) override;
51 virtual ExecutionContext* executionContext() const override { return Context LifecycleObserver::executionContext(); } 51 virtual ExecutionContext* executionContext() const override { return Context LifecycleObserver::executionContext(); }
52 52
53 virtual void trace(Visitor*) override; 53 DECLARE_VIRTUAL_TRACE();
54 54
55 private: 55 private:
56 V8MutationCallback(v8::Handle<v8::Function>, v8::Handle<v8::Object>, ScriptS tate*); 56 V8MutationCallback(v8::Handle<v8::Function>, v8::Handle<v8::Object>, ScriptS tate*);
57 57
58 static void setWeakCallback(const v8::WeakCallbackData<v8::Function, V8Mutat ionCallback>&); 58 static void setWeakCallback(const v8::WeakCallbackData<v8::Function, V8Mutat ionCallback>&);
59 59
60 ScopedPersistent<v8::Function> m_callback; 60 ScopedPersistent<v8::Function> m_callback;
61 RefPtr<ScriptState> m_scriptState; 61 RefPtr<ScriptState> m_scriptState;
62 }; 62 };
63 63
64 } 64 }
65 65
66 #endif // V8MutationCallback_h 66 #endif // V8MutationCallback_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698