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

Unified Diff: Source/bindings/core/dart/DartCallback.h

Issue 1532413002: Added Dartium changes onto 45.0.2454.104 (Closed) Base URL: http://src.chromium.org/blink/branches/chromium/2454
Patch Set: Created 5 years 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
« no previous file with comments | « Source/bindings/core/dart/DartBindingsCommonIncludes.h ('k') | Source/bindings/core/dart/DartCallback.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/bindings/core/dart/DartBindingsCommonIncludes.h ('k') | Source/bindings/core/dart/DartCallback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698