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 30 matching lines...) Expand all Loading... |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 | 43 |
44 class CustomElementDescriptor; | 44 class CustomElementDescriptor; |
45 class CustomElementMicrotaskImportStep; | 45 class CustomElementMicrotaskImportStep; |
46 class CustomElementMicrotaskStep; | 46 class CustomElementMicrotaskStep; |
47 class CustomElementRegistrationContext; | 47 class CustomElementRegistrationContext; |
48 class HTMLImportChild; | 48 class HTMLImportChild; |
49 | 49 |
50 class CustomElementScheduler final : public NoBaseWillBeGarbageCollected<CustomE
lementScheduler> { | 50 class CustomElementScheduler final : public NoBaseWillBeGarbageCollected<CustomE
lementScheduler> { |
| 51 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(CustomElementScheduler); |
51 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementScheduler); | 52 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementScheduler); |
52 public: | 53 public: |
53 | 54 |
54 static void scheduleCallback(PassRefPtrWillBeRawPtr<CustomElementLifecycleCa
llbacks>, PassRefPtrWillBeRawPtr<Element>, CustomElementLifecycleCallbacks::Call
backType); | 55 static void scheduleCallback(PassRefPtrWillBeRawPtr<CustomElementLifecycleCa
llbacks>, PassRefPtrWillBeRawPtr<Element>, CustomElementLifecycleCallbacks::Call
backType); |
55 static void scheduleAttributeChangedCallback(PassRefPtrWillBeRawPtr<CustomEl
ementLifecycleCallbacks>, PassRefPtrWillBeRawPtr<Element>, const AtomicString& n
ame, const AtomicString& oldValue, const AtomicString& newValue); | 56 static void scheduleAttributeChangedCallback(PassRefPtrWillBeRawPtr<CustomEl
ementLifecycleCallbacks>, PassRefPtrWillBeRawPtr<Element>, const AtomicString& n
ame, const AtomicString& oldValue, const AtomicString& newValue); |
56 | 57 |
57 static void resolveOrScheduleResolution(PassRefPtrWillBeRawPtr<CustomElement
RegistrationContext>, PassRefPtrWillBeRawPtr<Element>, const CustomElementDescri
ptor&); | 58 static void resolveOrScheduleResolution(PassRefPtrWillBeRawPtr<CustomElement
RegistrationContext>, PassRefPtrWillBeRawPtr<Element>, const CustomElementDescri
ptor&); |
58 static CustomElementMicrotaskImportStep* scheduleImport(HTMLImportChild*); | 59 static CustomElementMicrotaskImportStep* scheduleImport(HTMLImportChild*); |
59 | 60 |
60 static void microtaskDispatcherDidFinish(); | 61 static void microtaskDispatcherDidFinish(); |
61 static void callbackDispatcherDidFinish(); | 62 static void callbackDispatcherDidFinish(); |
62 | 63 |
63 private: | 64 private: |
64 CustomElementScheduler() { } | 65 CustomElementScheduler() { } |
65 | 66 |
66 static void enqueueMicrotaskStep(Document&, PassOwnPtrWillBeRawPtr<CustomEle
mentMicrotaskStep>, bool importIsSync = true); | 67 static void enqueueMicrotaskStep(Document&, PassOwnPtrWillBeRawPtr<CustomEle
mentMicrotaskStep>, bool importIsSync = true); |
67 }; | 68 }; |
68 | 69 |
69 } // namespace blink | 70 } // namespace blink |
70 | 71 |
71 #endif // CustomElementScheduler_h | 72 #endif // CustomElementScheduler_h |
OLD | NEW |