| 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 are |   5  * modification, are permitted provided that the following conditions are | 
|   6  * met: |   6  * met: | 
|   7  * |   7  * | 
|   8  *     * Redistributions of source code must retain the above copyright |   8  *     * 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  *     * Redistributions in binary form must reproduce the above |  10  *     * Redistributions in binary form must reproduce the above | 
| (...skipping 29 matching lines...) Expand all  Loading... | 
|  40 #include "wtf/PassRefPtr.h" |  40 #include "wtf/PassRefPtr.h" | 
|  41 #include <v8.h> |  41 #include <v8.h> | 
|  42  |  42  | 
|  43 namespace blink { |  43 namespace blink { | 
|  44  |  44  | 
|  45 class CustomElementLifecycleCallbacks; |  45 class CustomElementLifecycleCallbacks; | 
|  46 class Element; |  46 class Element; | 
|  47 class V8PerContextData; |  47 class V8PerContextData; | 
|  48  |  48  | 
|  49 class V8CustomElementLifecycleCallbacks final : public CustomElementLifecycleCal
    lbacks, public ContextLifecycleObserver { |  49 class V8CustomElementLifecycleCallbacks final : public CustomElementLifecycleCal
    lbacks, public ContextLifecycleObserver { | 
|  50     WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(V8CustomElementLifecycleCallbacks); |  50     USING_GARBAGE_COLLECTED_MIXIN(V8CustomElementLifecycleCallbacks); | 
|  51 public: |  51 public: | 
|  52     static PassRefPtrWillBeRawPtr<V8CustomElementLifecycleCallbacks> create(Scri
    ptState*, v8::Local<v8::Object> prototype, v8::MaybeLocal<v8::Function> created,
     v8::MaybeLocal<v8::Function> attached, v8::MaybeLocal<v8::Function> detached, v
    8::MaybeLocal<v8::Function> attributeChanged); |  52     static RawPtr<V8CustomElementLifecycleCallbacks> create(ScriptState*, v8::Lo
    cal<v8::Object> prototype, v8::MaybeLocal<v8::Function> created, v8::MaybeLocal<
    v8::Function> attached, v8::MaybeLocal<v8::Function> detached, v8::MaybeLocal<v8
    ::Function> attributeChanged); | 
|  53  |  53  | 
|  54     ~V8CustomElementLifecycleCallbacks() override; |  54     ~V8CustomElementLifecycleCallbacks() override; | 
|  55  |  55  | 
|  56     bool setBinding(CustomElementDefinition* owner, PassOwnPtr<CustomElementBind
    ing>); |  56     bool setBinding(CustomElementDefinition* owner, PassOwnPtr<CustomElementBind
    ing>); | 
|  57  |  57  | 
|  58     DECLARE_VIRTUAL_TRACE(); |  58     DECLARE_VIRTUAL_TRACE(); | 
|  59  |  59  | 
|  60 private: |  60 private: | 
|  61     V8CustomElementLifecycleCallbacks(ScriptState*, v8::Local<v8::Object> protot
    ype, v8::MaybeLocal<v8::Function> created, v8::MaybeLocal<v8::Function> attached
    , v8::MaybeLocal<v8::Function> detached, v8::MaybeLocal<v8::Function> attributeC
    hanged); |  61     V8CustomElementLifecycleCallbacks(ScriptState*, v8::Local<v8::Object> protot
    ype, v8::MaybeLocal<v8::Function> created, v8::MaybeLocal<v8::Function> attached
    , v8::MaybeLocal<v8::Function> detached, v8::MaybeLocal<v8::Function> attributeC
    hanged); | 
|  62  |  62  | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
|  73     ScopedPersistent<v8::Object> m_prototype; |  73     ScopedPersistent<v8::Object> m_prototype; | 
|  74     ScopedPersistent<v8::Function> m_created; |  74     ScopedPersistent<v8::Function> m_created; | 
|  75     ScopedPersistent<v8::Function> m_attached; |  75     ScopedPersistent<v8::Function> m_attached; | 
|  76     ScopedPersistent<v8::Function> m_detached; |  76     ScopedPersistent<v8::Function> m_detached; | 
|  77     ScopedPersistent<v8::Function> m_attributeChanged; |  77     ScopedPersistent<v8::Function> m_attributeChanged; | 
|  78 }; |  78 }; | 
|  79  |  79  | 
|  80 } // namespace blink |  80 } // namespace blink | 
|  81  |  81  | 
|  82 #endif // V8CustomElementLifecycleCallbacks_h |  82 #endif // V8CustomElementLifecycleCallbacks_h | 
| OLD | NEW |