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

Unified Diff: Source/bindings/dart/DartCustomElementBinding.h

Issue 24294002: Dartium changes for custom element lifecycle events. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 7 years, 3 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: Source/bindings/dart/DartCustomElementBinding.h
diff --git a/Source/modules/crypto/WorkerCrypto.h b/Source/bindings/dart/DartCustomElementBinding.h
similarity index 77%
copy from Source/modules/crypto/WorkerCrypto.h
copy to Source/bindings/dart/DartCustomElementBinding.h
index 2b72aba570ab975dac5e0c1c15bfd36d840c769e..9e09e2db5d0847d3d1c6963c52681b4b64120875 100644
--- a/Source/modules/crypto/WorkerCrypto.h
+++ b/Source/bindings/dart/DartCustomElementBinding.h
@@ -28,24 +28,29 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WorkerCrypto_h
-#define WorkerCrypto_h
+#ifndef DartCustomElementBinding_h
+#define DartCustomElementBinding_h
-#include "bindings/v8/ScriptWrappable.h"
-#include "wtf/Forward.h"
+#include "wtf/PassOwnPtr.h"
#include "wtf/PassRefPtr.h"
-#include "wtf/RefCounted.h"
+
+#include <dart_api.h>
namespace WebCore {
-class WorkerCrypto : public ScriptWrappable, public RefCounted<WorkerCrypto> {
+class DartCustomElementBinding {
public:
- static PassRefPtr<WorkerCrypto> create() { return adoptRef(new WorkerCrypto()); }
+ static PassOwnPtr<DartCustomElementBinding> create(Dart_Handle customType);
+
+ ~DartCustomElementBinding() { }
vsm 2013/09/19 23:12:26 Don't think you need an explicit destructor here.
blois 2013/09/20 00:10:25 Done.
+
+ Dart_Handle customType() { return Dart_HandleFromPersistent(m_customType); }
private:
- WorkerCrypto();
+ DartCustomElementBinding(Dart_Handle customType);
+ Dart_PersistentHandle m_customType;
};
}
-#endif
+#endif // CustomElementBinding_h

Powered by Google App Engine
This is Rietveld 408576698