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

Side by Side Diff: third_party/WebKit/Source/core/dom/custom/CustomElementDefinitionBuilder.h

Issue 2024073002: Add callbacks to ScriptCustomElementDefinition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix when no callbacks, cleanup, and reset-result 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
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 CustomElementDefinitionBuilder_h 5 #ifndef CustomElementDefinitionBuilder_h
6 #define CustomElementDefinitionBuilder_h 6 #define CustomElementDefinitionBuilder_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
10 #include "wtf/Noncopyable.h" 10 #include "wtf/Noncopyable.h"
(...skipping 25 matching lines...) Expand all
36 virtual bool checkConstructorIntrinsics() = 0; 36 virtual bool checkConstructorIntrinsics() = 0;
37 37
38 // Check the constructor is not already registered in the calling 38 // Check the constructor is not already registered in the calling
39 // registry. Return false if processing should not proceed. 39 // registry. Return false if processing should not proceed.
40 virtual bool checkConstructorNotRegistered() = 0; 40 virtual bool checkConstructorNotRegistered() = 0;
41 41
42 // Checking the prototype may destroy the window. Return false if 42 // Checking the prototype may destroy the window. Return false if
43 // processing should not proceed. 43 // processing should not proceed.
44 virtual bool checkPrototype() = 0; 44 virtual bool checkPrototype() = 0;
45 45
46 // Cache properties for build to use. Return false if processing
47 // should not proceed.
48 virtual bool cacheProperties() = 0;
49
46 // Produce the definition. This must produce a definition. 50 // Produce the definition. This must produce a definition.
47 virtual CustomElementDefinition* build(const CustomElementDescriptor&) = 0; 51 virtual CustomElementDefinition* build(const CustomElementDescriptor&) = 0;
48 }; 52 };
49 53
50 } // namespace blink 54 } // namespace blink
51 55
52 #endif // CustomElementDefinitionBuilder_h 56 #endif // CustomElementDefinitionBuilder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698