| Index: sky/engine/bindings-dart/core/dart/DartCustomElementBinding.h
|
| diff --git a/sky/engine/core/Init.h b/sky/engine/bindings-dart/core/dart/DartCustomElementBinding.h
|
| similarity index 74%
|
| copy from sky/engine/core/Init.h
|
| copy to sky/engine/bindings-dart/core/dart/DartCustomElementBinding.h
|
| index 3f049c93857cb9f5059bcf05ca186e342d79e5d8..45e6792135e21ec7e91f3ea6db224c2da30ff328 100644
|
| --- a/sky/engine/core/Init.h
|
| +++ b/sky/engine/bindings-dart/core/dart/DartCustomElementBinding.h
|
| @@ -28,29 +28,28 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef SKY_ENGINE_CORE_INIT_H_
|
| -#define SKY_ENGINE_CORE_INIT_H_
|
| +#ifndef DartCustomElementBinding_h
|
| +#define DartCustomElementBinding_h
|
| +
|
| +#include "wtf/PassOwnPtr.h"
|
| +
|
| +#include <dart_api.h>
|
|
|
| namespace blink {
|
|
|
| -class CoreInitializer {
|
| +class DartCustomElementBinding {
|
| public:
|
| - CoreInitializer() : m_isInited(false) { }
|
| - // Should be called by clients before trying to create Frames.
|
| - virtual void init();
|
| + static PassOwnPtr<DartCustomElementBinding> create(Dart_Handle customType, intptr_t nativeClassId);
|
|
|
| - // FIXME: Why is this function static?
|
| - static void shutdown();
|
| -
|
| -protected:
|
| - bool isInitialized() const { return m_isInited; }
|
| + Dart_PersistentHandle customType() { return m_customType; }
|
| + intptr_t nativeClassId() { return m_nativeClassId; }
|
|
|
| private:
|
| - void registerEventFactory();
|
| -
|
| - bool m_isInited;
|
| + DartCustomElementBinding(Dart_Handle customType, intptr_t nativeClassId);
|
| + Dart_PersistentHandle m_customType;
|
| + intptr_t m_nativeClassId;
|
| };
|
|
|
| -} // namespace blink
|
| +}
|
|
|
| -#endif // SKY_ENGINE_CORE_INIT_H_
|
| +#endif // CustomElementBinding_h
|
|
|