| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 AllNames = EmbedderNames | StandardNames | 56 AllNames = EmbedderNames | StandardNames |
| 57 }; | 57 }; |
| 58 static bool isValidName(const AtomicString& name, NameSet validNames = AllNa
mes); | 58 static bool isValidName(const AtomicString& name, NameSet validNames = AllNa
mes); |
| 59 static void addEmbedderCustomElementName(const AtomicString& name); | 59 static void addEmbedderCustomElementName(const AtomicString& name); |
| 60 | 60 |
| 61 // API to notify of document-level changes | 61 // API to notify of document-level changes |
| 62 static CustomElementMicrotaskImportStep* didCreateImport(HTMLImportChild*); | 62 static CustomElementMicrotaskImportStep* didCreateImport(HTMLImportChild*); |
| 63 static void didFinishLoadingImport(Document& master); | 63 static void didFinishLoadingImport(Document& master); |
| 64 | 64 |
| 65 // API for registration contexts | 65 // API for registration contexts |
| 66 static void define(Element*, PassRefPtrWillBeRawPtr<CustomElementDefinition>
); | 66 static void define(Element*, RawPtr<CustomElementDefinition>); |
| 67 | 67 |
| 68 // API for Element to kick off changes | 68 // API for Element to kick off changes |
| 69 | 69 |
| 70 static void attributeDidChange(Element*, const AtomicString& name, const Ato
micString& oldValue, const AtomicString& newValue); | 70 static void attributeDidChange(Element*, const AtomicString& name, const Ato
micString& oldValue, const AtomicString& newValue); |
| 71 static void didAttach(Element*, const Document&); | 71 static void didAttach(Element*, const Document&); |
| 72 static void didDetach(Element*, const Document&); | 72 static void didDetach(Element*, const Document&); |
| 73 static void wasDestroyed(Element*); | 73 static void wasDestroyed(Element*); |
| 74 | 74 |
| 75 private: | 75 private: |
| 76 static Vector<AtomicString>& embedderCustomElementNames(); | 76 static Vector<AtomicString>& embedderCustomElementNames(); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace blink | 79 } // namespace blink |
| 80 | 80 |
| 81 #endif // CustomElement_h | 81 #endif // CustomElement_h |
| OLD | NEW |