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

Side by Side Diff: Source/core/dom/custom/CustomElement.h

Issue 1074703002: Componentization: make core/dom visible for blink_web and blink_tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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) 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
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 CustomElement_h 31 #ifndef CustomElement_h
32 #define CustomElement_h 32 #define CustomElement_h
33 33
34 #include "core/CoreExport.h"
34 #include "core/dom/custom/CustomElementDefinition.h" 35 #include "core/dom/custom/CustomElementDefinition.h"
35 #include "wtf/HashMap.h" 36 #include "wtf/HashMap.h"
36 #include "wtf/Noncopyable.h" 37 #include "wtf/Noncopyable.h"
37 #include "wtf/PassRefPtr.h" 38 #include "wtf/PassRefPtr.h"
38 #include "wtf/RefPtr.h" 39 #include "wtf/RefPtr.h"
39 #include "wtf/Vector.h" 40 #include "wtf/Vector.h"
40 #include "wtf/text/AtomicString.h" 41 #include "wtf/text/AtomicString.h"
41 42
42 namespace blink { 43 namespace blink {
43 44
44 class CustomElementMicrotaskImportStep; 45 class CustomElementMicrotaskImportStep;
45 class Document; 46 class Document;
46 class HTMLImportChild; 47 class HTMLImportChild;
47 48
48 class CustomElement { 49 class CORE_EXPORT CustomElement {
49 public: 50 public:
50 enum NameSet { 51 enum NameSet {
51 EmbedderNames = 1 << 0, 52 EmbedderNames = 1 << 0,
52 StandardNames = 1 << 1, 53 StandardNames = 1 << 1,
53 AllNames = EmbedderNames | StandardNames 54 AllNames = EmbedderNames | StandardNames
54 }; 55 };
55 static bool isValidName(const AtomicString& name, NameSet validNames = AllNa mes); 56 static bool isValidName(const AtomicString& name, NameSet validNames = AllNa mes);
56 static void addEmbedderCustomElementName(const AtomicString& name); 57 static void addEmbedderCustomElementName(const AtomicString& name);
57 58
58 // API to notify of document-level changes 59 // API to notify of document-level changes
(...skipping 12 matching lines...) Expand all
71 72
72 private: 73 private:
73 CustomElement(); 74 CustomElement();
74 75
75 static Vector<AtomicString>& embedderCustomElementNames(); 76 static Vector<AtomicString>& embedderCustomElementNames();
76 }; 77 };
77 78
78 } // namespace blink 79 } // namespace blink
79 80
80 #endif // CustomElement_h 81 #endif // CustomElement_h
OLDNEW
« no previous file with comments | « Source/core/dom/ViewportDescription.h ('k') | Source/core/dom/custom/CustomElementProcessingStack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698