| 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 NoBaseWillBeGarbageCollected<CustomE
    lementScheduler> { | 
| 51     DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementScheduler); | 51     DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementScheduler); | 
| 52 public: | 52 public: | 
| 53 | 53 | 
| 54     static void scheduleCallback(PassRefPtr<CustomElementLifecycleCallbacks>, Pa
    ssRefPtrWillBeRawPtr<Element>, CustomElementLifecycleCallbacks::CallbackType); | 54     static void scheduleCallback(PassRefPtr<CustomElementLifecycleCallbacks>, Pa
    ssRefPtrWillBeRawPtr<Element>, CustomElementLifecycleCallbacks::CallbackType); | 
| 55     static void scheduleAttributeChangedCallback(PassRefPtr<CustomElementLifecyc
    leCallbacks>, PassRefPtrWillBeRawPtr<Element>, const AtomicString& name, const A
    tomicString& oldValue, const AtomicString& newValue); | 55     static void scheduleAttributeChangedCallback(PassRefPtr<CustomElementLifecyc
    leCallbacks>, PassRefPtrWillBeRawPtr<Element>, const AtomicString& name, const A
    tomicString& oldValue, const AtomicString& newValue); | 
| 56 | 56 | 
| 57     static void resolveOrScheduleResolution(PassRefPtrWillBeRawPtr<CustomElement
    RegistrationContext>, PassRefPtrWillBeRawPtr<Element>, const CustomElementDescri
    ptor&); | 57     static void resolveOrScheduleResolution(PassRefPtrWillBeRawPtr<CustomElement
    RegistrationContext>, PassRefPtrWillBeRawPtr<Element>, const CustomElementDescri
    ptor&); | 
| 58     static CustomElementMicrotaskImportStep* scheduleImport(HTMLImportChild*); | 58     static CustomElementMicrotaskImportStep* scheduleImport(HTMLImportChild*); | 
| 59 | 59 | 
| 60     static void microtaskDispatcherDidFinish(); | 60     static void microtaskDispatcherDidFinish(); | 
| 61     static void callbackDispatcherDidFinish(); | 61     static void callbackDispatcherDidFinish(); | 
| 62 | 62 | 
| 63 private: | 63 private: | 
| 64     CustomElementScheduler() { } | 64     CustomElementScheduler() { } | 
| 65 | 65 | 
| 66     static void enqueueMicrotaskStep(Document&, PassOwnPtrWillBeRawPtr<CustomEle
    mentMicrotaskStep>, bool importIsSync = true); | 66     static void enqueueMicrotaskStep(Document&, PassOwnPtrWillBeRawPtr<CustomEle
    mentMicrotaskStep>, bool importIsSync = true); | 
| 67 }; | 67 }; | 
| 68 | 68 | 
| 69 } // namespace blink | 69 } // namespace blink | 
| 70 | 70 | 
| 71 #endif // CustomElementScheduler_h | 71 #endif // CustomElementScheduler_h | 
| OLD | NEW | 
|---|