| OLD | NEW |
| 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 25 matching lines...) Expand all Loading... |
| 36 #include "wtf/Noncopyable.h" | 36 #include "wtf/Noncopyable.h" |
| 37 #include "wtf/PassRefPtr.h" | 37 #include "wtf/PassRefPtr.h" |
| 38 #include "wtf/RefPtr.h" | 38 #include "wtf/RefPtr.h" |
| 39 #include "wtf/Vector.h" | 39 #include "wtf/Vector.h" |
| 40 #include "wtf/text/AtomicString.h" | 40 #include "wtf/text/AtomicString.h" |
| 41 | 41 |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| 44 class CustomElementMicrotaskImportStep; | 44 class CustomElementMicrotaskImportStep; |
| 45 class Document; | 45 class Document; |
| 46 class Element; | |
| 47 class HTMLImportChild; | 46 class HTMLImportChild; |
| 48 | 47 |
| 49 class CustomElement { | 48 class CustomElement { |
| 50 public: | 49 public: |
| 51 enum NameSet { | 50 enum NameSet { |
| 52 EmbedderNames = 1 << 0, | 51 EmbedderNames = 1 << 0, |
| 53 StandardNames = 1 << 1, | 52 StandardNames = 1 << 1, |
| 54 AllNames = EmbedderNames | StandardNames | 53 AllNames = EmbedderNames | StandardNames |
| 55 }; | 54 }; |
| 56 static bool isValidName(const AtomicString& name, NameSet validNames = AllNa
mes); | 55 static bool isValidName(const AtomicString& name, NameSet validNames = AllNa
mes); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 69 static void didAttach(Element*, const Document&); | 68 static void didAttach(Element*, const Document&); |
| 70 static void didDetach(Element*, const Document&); | 69 static void didDetach(Element*, const Document&); |
| 71 static void wasDestroyed(Element*); | 70 static void wasDestroyed(Element*); |
| 72 | 71 |
| 73 private: | 72 private: |
| 74 CustomElement(); | 73 CustomElement(); |
| 75 | 74 |
| 76 static Vector<AtomicString>& embedderCustomElementNames(); | 75 static Vector<AtomicString>& embedderCustomElementNames(); |
| 77 }; | 76 }; |
| 78 | 77 |
| 79 } | 78 } // namespace blink |
| 80 | 79 |
| 81 #endif // CustomElement_h | 80 #endif // CustomElement_h |
| OLD | NEW |