| 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 29 matching lines...) Expand all Loading... |
| 40 #include "wtf/text/AtomicString.h" | 40 #include "wtf/text/AtomicString.h" |
| 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 GarbageCollected<CustomElementSchedu
ler> { |
| 51 USING_FAST_MALLOC_WILL_BE_REMOVED(CustomElementScheduler); | |
| 52 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementScheduler); | |
| 53 public: | 51 public: |
| 54 | 52 |
| 55 static void scheduleCallback(PassRefPtrWillBeRawPtr<CustomElementLifecycleCa
llbacks>, PassRefPtrWillBeRawPtr<Element>, CustomElementLifecycleCallbacks::Call
backType); | 53 static void scheduleCallback(RawPtr<CustomElementLifecycleCallbacks>, RawPtr
<Element>, CustomElementLifecycleCallbacks::CallbackType); |
| 56 static void scheduleAttributeChangedCallback(PassRefPtrWillBeRawPtr<CustomEl
ementLifecycleCallbacks>, PassRefPtrWillBeRawPtr<Element>, const AtomicString& n
ame, const AtomicString& oldValue, const AtomicString& newValue); | 54 static void scheduleAttributeChangedCallback(RawPtr<CustomElementLifecycleCa
llbacks>, RawPtr<Element>, const AtomicString& name, const AtomicString& oldValu
e, const AtomicString& newValue); |
| 57 | 55 |
| 58 static void resolveOrScheduleResolution(PassRefPtrWillBeRawPtr<CustomElement
RegistrationContext>, PassRefPtrWillBeRawPtr<Element>, const CustomElementDescri
ptor&); | 56 static void resolveOrScheduleResolution(RawPtr<CustomElementRegistrationCont
ext>, RawPtr<Element>, const CustomElementDescriptor&); |
| 59 static CustomElementMicrotaskImportStep* scheduleImport(HTMLImportChild*); | 57 static CustomElementMicrotaskImportStep* scheduleImport(HTMLImportChild*); |
| 60 | 58 |
| 61 static void microtaskDispatcherDidFinish(); | 59 static void microtaskDispatcherDidFinish(); |
| 62 static void callbackDispatcherDidFinish(); | 60 static void callbackDispatcherDidFinish(); |
| 63 | 61 |
| 64 private: | 62 private: |
| 65 CustomElementScheduler() { } | 63 CustomElementScheduler() { } |
| 66 | 64 |
| 67 static void enqueueMicrotaskStep(Document&, PassOwnPtrWillBeRawPtr<CustomEle
mentMicrotaskStep>, bool importIsSync = true); | 65 static void enqueueMicrotaskStep(Document&, RawPtr<CustomElementMicrotaskSte
p>, bool importIsSync = true); |
| 68 }; | 66 }; |
| 69 | 67 |
| 70 } // namespace blink | 68 } // namespace blink |
| 71 | 69 |
| 72 #endif // CustomElementScheduler_h | 70 #endif // CustomElementScheduler_h |
| OLD | NEW |