| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Document; | 48 class Document; |
| 49 class Element; | 49 class Element; |
| 50 class HTMLImportChild; | 50 class HTMLImportChild; |
| 51 | 51 |
| 52 class CustomElementScheduler final : public DummyBase<CustomElementScheduler> { | 52 class CustomElementScheduler final { |
| 53 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementScheduler); | 53 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementScheduler); |
| 54 public: | 54 public: |
| 55 | 55 |
| 56 static void scheduleCallback(PassRefPtr<CustomElementLifecycleCallbacks>, Pa
ssRefPtr<Element>, CustomElementLifecycleCallbacks::CallbackType); | 56 static void scheduleCallback(PassRefPtr<CustomElementLifecycleCallbacks>, Pa
ssRefPtr<Element>, CustomElementLifecycleCallbacks::CallbackType); |
| 57 static void scheduleAttributeChangedCallback(PassRefPtr<CustomElementLifecyc
leCallbacks>, PassRefPtr<Element>, const AtomicString& name, const AtomicString&
oldValue, const AtomicString& newValue); | 57 static void scheduleAttributeChangedCallback(PassRefPtr<CustomElementLifecyc
leCallbacks>, PassRefPtr<Element>, const AtomicString& name, const AtomicString&
oldValue, const AtomicString& newValue); |
| 58 | 58 |
| 59 static void resolveOrScheduleResolution(PassRefPtr<CustomElementRegistration
Context>, PassRefPtr<Element>, const CustomElementDescriptor&); | 59 static void resolveOrScheduleResolution(PassRefPtr<CustomElementRegistration
Context>, PassRefPtr<Element>, const CustomElementDescriptor&); |
| 60 static CustomElementMicrotaskImportStep* scheduleImport(HTMLImportChild*); | 60 static CustomElementMicrotaskImportStep* scheduleImport(HTMLImportChild*); |
| 61 | 61 |
| 62 static void microtaskDispatcherDidFinish(); | 62 static void microtaskDispatcherDidFinish(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 80 | 80 |
| 81 // The element -> callback queue map is populated by the scheduler | 81 // The element -> callback queue map is populated by the scheduler |
| 82 // and owns the lifetimes of the CustomElementCallbackQueues. | 82 // and owns the lifetimes of the CustomElementCallbackQueues. |
| 83 typedef HashMap<RawPtr<Element>, OwnPtr<CustomElementCallbackQueue> > Elemen
tCallbackQueueMap; | 83 typedef HashMap<RawPtr<Element>, OwnPtr<CustomElementCallbackQueue> > Elemen
tCallbackQueueMap; |
| 84 ElementCallbackQueueMap m_elementCallbackQueueMap; | 84 ElementCallbackQueueMap m_elementCallbackQueueMap; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } | 87 } |
| 88 | 88 |
| 89 #endif // CustomElementScheduler_h | 89 #endif // CustomElementScheduler_h |
| OLD | NEW |