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

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

Issue 2030443003: Make ScriptCustomeElementDefinition class to hold ScriptState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-06-01T12:59:29 Created 4 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ScriptCustomElementDefinition_h 5 #ifndef ScriptCustomElementDefinition_h
6 #define ScriptCustomElementDefinition_h 6 #define ScriptCustomElementDefinition_h
7 7
8 #include "bindings/core/v8/ScopedPersistent.h" 8 #include "bindings/core/v8/ScopedPersistent.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/dom/custom/CustomElementDefinition.h" 10 #include "core/dom/custom/CustomElementDefinition.h"
(...skipping 17 matching lines...) Expand all
28 28
29 static ScriptCustomElementDefinition* create( 29 static ScriptCustomElementDefinition* create(
30 ScriptState*, 30 ScriptState*,
31 CustomElementsRegistry*, 31 CustomElementsRegistry*,
32 const CustomElementDescriptor&, 32 const CustomElementDescriptor&,
33 const v8::Local<v8::Object>& constructor, 33 const v8::Local<v8::Object>& constructor,
34 const v8::Local<v8::Object>& prototype); 34 const v8::Local<v8::Object>& prototype);
35 35
36 virtual ~ScriptCustomElementDefinition() = default; 36 virtual ~ScriptCustomElementDefinition() = default;
37 37
38 v8::Local<v8::Object> constructor(ScriptState*) const; 38 v8::Local<v8::Object> constructor() const;
39 v8::Local<v8::Object> prototype(ScriptState*) const; 39 v8::Local<v8::Object> prototype() const;
40 40
41 private: 41 private:
42 ScriptCustomElementDefinition( 42 ScriptCustomElementDefinition(
43 ScriptState*, 43 ScriptState*,
44 const CustomElementDescriptor&, 44 const CustomElementDescriptor&,
45 const v8::Local<v8::Object>& constructor, 45 const v8::Local<v8::Object>& constructor,
46 const v8::Local<v8::Object>& prototype); 46 const v8::Local<v8::Object>& prototype);
47 47
48 RefPtr<ScriptState> m_scriptState;
48 ScopedPersistent<v8::Object> m_constructor; 49 ScopedPersistent<v8::Object> m_constructor;
49 ScopedPersistent<v8::Object> m_prototype; 50 ScopedPersistent<v8::Object> m_prototype;
50 }; 51 };
51 52
52 } // namespace blink 53 } // namespace blink
53 54
54 #endif // ScriptCustomElementDefinition_h 55 #endif // ScriptCustomElementDefinition_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698