Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Unified Diff: sky/engine/bindings-dart/core/dart/DartCustomElementBinding.h

Issue 875013003: Import Dart bindings as of Blink r188698. This merely copies the files over and does not attach any… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « sky/engine/bindings-dart/core/dart/DartController.cpp ('k') | sky/engine/bindings-dart/core/dart/DartCustomElementBinding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698