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

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

Issue 2561573002: Remove ContextLifecycleObserver from V8V0CustomElementLifecycleCallbacks (Closed)
Patch Set: Created 4 years 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) 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 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 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef V8V0CustomElementLifecycleCallbacks_h 31 #ifndef V8V0CustomElementLifecycleCallbacks_h
32 #define V8V0CustomElementLifecycleCallbacks_h 32 #define V8V0CustomElementLifecycleCallbacks_h
33 33
34 #include "bindings/core/v8/ScopedPersistent.h" 34 #include "bindings/core/v8/ScopedPersistent.h"
35 #include "bindings/core/v8/ScriptState.h" 35 #include "bindings/core/v8/ScriptState.h"
36 #include "core/dom/ContextLifecycleObserver.h"
37 #include "core/dom/custom/V0CustomElementLifecycleCallbacks.h" 36 #include "core/dom/custom/V0CustomElementLifecycleCallbacks.h"
38 #include "wtf/PassRefPtr.h" 37 #include "wtf/PassRefPtr.h"
39 #include <memory> 38 #include <memory>
40 #include <v8.h> 39 #include <v8.h>
41 40
42 namespace blink { 41 namespace blink {
43 42
44 class V0CustomElementLifecycleCallbacks; 43 class V0CustomElementLifecycleCallbacks;
45 class Element; 44 class Element;
46 class V8PerContextData; 45 class V8PerContextData;
47 46
48 class V8V0CustomElementLifecycleCallbacks final 47 class V8V0CustomElementLifecycleCallbacks final
49 : public V0CustomElementLifecycleCallbacks, 48 : public V0CustomElementLifecycleCallbacks {
50 public ContextLifecycleObserver {
51 USING_GARBAGE_COLLECTED_MIXIN(V8V0CustomElementLifecycleCallbacks);
52
53 public: 49 public:
54 static V8V0CustomElementLifecycleCallbacks* create( 50 static V8V0CustomElementLifecycleCallbacks* create(
55 ScriptState*, 51 ScriptState*,
56 v8::Local<v8::Object> prototype, 52 v8::Local<v8::Object> prototype,
57 v8::MaybeLocal<v8::Function> created, 53 v8::MaybeLocal<v8::Function> created,
58 v8::MaybeLocal<v8::Function> attached, 54 v8::MaybeLocal<v8::Function> attached,
59 v8::MaybeLocal<v8::Function> detached, 55 v8::MaybeLocal<v8::Function> detached,
60 v8::MaybeLocal<v8::Function> attributeChanged); 56 v8::MaybeLocal<v8::Function> attributeChanged);
61 57
62 ~V8V0CustomElementLifecycleCallbacks() override; 58 ~V8V0CustomElementLifecycleCallbacks() override;
(...skipping 27 matching lines...) Expand all
90 ScopedPersistent<v8::Object> m_prototype; 86 ScopedPersistent<v8::Object> m_prototype;
91 ScopedPersistent<v8::Function> m_created; 87 ScopedPersistent<v8::Function> m_created;
92 ScopedPersistent<v8::Function> m_attached; 88 ScopedPersistent<v8::Function> m_attached;
93 ScopedPersistent<v8::Function> m_detached; 89 ScopedPersistent<v8::Function> m_detached;
94 ScopedPersistent<v8::Function> m_attributeChanged; 90 ScopedPersistent<v8::Function> m_attributeChanged;
95 }; 91 };
96 92
97 } // namespace blink 93 } // namespace blink
98 94
99 #endif // V8V0CustomElementLifecycleCallbacks_h 95 #endif // V8V0CustomElementLifecycleCallbacks_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698