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

Unified Diff: sky/engine/bindings-dart/core/dart/DartScheduledAction.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/DartScheduledAction.h
diff --git a/sky/engine/bindings/core/v8/RetainedObjectInfo.h b/sky/engine/bindings-dart/core/dart/DartScheduledAction.h
similarity index 78%
copy from sky/engine/bindings/core/v8/RetainedObjectInfo.h
copy to sky/engine/bindings-dart/core/dart/DartScheduledAction.h
index 39c9bd1e1d6985fc06a20537ec751fda6b6301f4..c2592c778ab6bf0af1511cf087a40d87d7c8b567 100644
--- a/sky/engine/bindings/core/v8/RetainedObjectInfo.h
+++ b/sky/engine/bindings-dart/core/dart/DartScheduledAction.h
@@ -28,18 +28,28 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef SKY_ENGINE_BINDINGS_CORE_V8_RETAINEDOBJECTINFO_H_
-#define SKY_ENGINE_BINDINGS_CORE_V8_RETAINEDOBJECTINFO_H_
+#ifndef DartScheduledAction_h
+#define DartScheduledAction_h
-#include "v8/include/v8-profiler.h"
+#include "bindings/common/ScheduledAction.h"
+
+#include <dart_api.h>
namespace blink {
-class RetainedObjectInfo : public v8::RetainedObjectInfo {
+class ExecutionContext;
+
+class DartScheduledAction : public ScheduledAction {
public:
- virtual intptr_t GetEquivalenceClass() = 0;
+ DartScheduledAction(Dart_Isolate, Dart_Handle action);
+ virtual ~DartScheduledAction();
+ virtual void execute(ExecutionContext*);
+
+private:
+ Dart_Isolate m_isolate;
+ Dart_PersistentHandle m_action;
};
} // namespace blink
-#endif // SKY_ENGINE_BINDINGS_CORE_V8_RETAINEDOBJECTINFO_H_
+#endif // DartScheduledAction
« no previous file with comments | « sky/engine/bindings-dart/core/dart/DartPersistentValue.cpp ('k') | sky/engine/bindings-dart/core/dart/DartScheduledAction.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698