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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // API to notify of document-level changes | 59 // API to notify of document-level changes |
60 static CustomElementMicrotaskImportStep* didCreateImport(HTMLImportChild*); | 60 static CustomElementMicrotaskImportStep* didCreateImport(HTMLImportChild*); |
61 static void didFinishLoadingImport(Document& master); | 61 static void didFinishLoadingImport(Document& master); |
62 | 62 |
63 // API for registration contexts | 63 // API for registration contexts |
64 static void define(Element*, PassRefPtr<CustomElementDefinition>); | 64 static void define(Element*, PassRefPtr<CustomElementDefinition>); |
65 | 65 |
66 // API for Element to kick off changes | 66 // API for Element to kick off changes |
67 | 67 |
68 static void attributeDidChange(Element*, const AtomicString& name, const Ato
micString& oldValue, const AtomicString& newValue); | 68 static void attributeDidChange(Element*, const AtomicString& name, const Ato
micString& oldValue, const AtomicString& newValue); |
69 static void didEnterDocument(Element*, const Document&); | 69 static void didAttach(Element*, const Document&); |
70 static void didLeaveDocument(Element*, const Document&); | 70 static void didDetach(Element*, const Document&); |
71 static void wasDestroyed(Element*); | 71 static void wasDestroyed(Element*); |
72 | 72 |
73 private: | 73 private: |
74 CustomElement(); | 74 CustomElement(); |
75 | 75 |
76 static Vector<AtomicString>& embedderCustomElementNames(); | 76 static Vector<AtomicString>& embedderCustomElementNames(); |
77 }; | 77 }; |
78 | 78 |
79 } | 79 } |
80 | 80 |
81 #endif // CustomElement_h | 81 #endif // CustomElement_h |
OLD | NEW |