Index: Source/bindings/core/dart/DartCallback.h |
diff --git a/Source/modules/mediasource/HTMLVideoElementMediaSource.h b/Source/bindings/core/dart/DartCallback.h |
similarity index 77% |
copy from Source/modules/mediasource/HTMLVideoElementMediaSource.h |
copy to Source/bindings/core/dart/DartCallback.h |
index 0dd929b079d16846a64e5d3bb18af70a7dbc70f0..87e23a9da30afbfca5d0331de5032dacdb3aa884 100644 |
--- a/Source/modules/mediasource/HTMLVideoElementMediaSource.h |
+++ b/Source/bindings/core/dart/DartCallback.h |
@@ -1,5 +1,5 @@ |
/* |
- * Copyright (C) 2013 Google Inc. All rights reserved. |
+ * Copyright (C) 2006-2011 Google Inc. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are |
@@ -28,26 +28,27 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef HTMLVideoElementMediaSource_h |
-#define HTMLVideoElementMediaSource_h |
+#ifndef DartCallback_h |
+#define DartCallback_h |
-#include "platform/heap/Handle.h" |
-#include "wtf/PassRefPtr.h" |
+#include "bindings/core/dart/DartIsolateDestructionObserver.h" |
-namespace blink { |
+#include <dart_api.h> |
-class HTMLVideoElement; |
-class VideoPlaybackQuality; |
+namespace blink { |
-class HTMLVideoElementMediaSource { |
+class DartCallback : public DartIsolateDestructionObserver { |
public: |
- static VideoPlaybackQuality* getVideoPlaybackQuality(HTMLVideoElement&); |
+ DartCallback(Dart_Handle object, Dart_Handle& exception); |
+ |
+ ~DartCallback(); |
+ |
+ bool handleEvent(int argc, Dart_Handle* argv); |
private: |
- HTMLVideoElementMediaSource(); |
- ~HTMLVideoElementMediaSource(); |
+ Dart_PersistentHandle m_callback; |
}; |
} |
-#endif |
+#endif // DartCallback_h |