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

Unified Diff: sky/engine/bindings-dart/core/dart/DartMutationCallback.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/DartMutationCallback.h
diff --git a/sky/engine/bindings-dart/core/dart/DartMutationCallback.h b/sky/engine/bindings-dart/core/dart/DartMutationCallback.h
new file mode 100644
index 0000000000000000000000000000000000000000..ed4f60962a0306db828a5e573dd847b5406d8d5d
--- /dev/null
+++ b/sky/engine/bindings-dart/core/dart/DartMutationCallback.h
@@ -0,0 +1,41 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// WARNING: Do not edit - generated code.
+
+#ifndef DartMutationCallback_h
+#define DartMutationCallback_h
+
+#include "bindings/core/dart/DartCallback.h"
+#include "bindings/core/dart/DartDOMWrapper.h"
+#include "bindings/core/v8/ActiveDOMCallback.h"
+#include "core/dom/MutationCallback.h"
+
+namespace blink {
+
+class DartMutationCallback : public MutationCallback, public ActiveDOMCallback {
+public:
+ static PassOwnPtr<DartMutationCallback> create(Dart_Handle object, ExecutionContext* context, Dart_Handle& exception)
+ {
+ return adoptPtr(new DartMutationCallback(object, exception, context));
+ }
+
+ virtual ExecutionContext* executionContext() const { return ActiveDOMCallback::executionContext(); }
+
+ virtual void call(const Vector<RefPtr<MutationRecord> >& mutations, MutationObserver* observer);
+
+
+private:
+ DartMutationCallback(Dart_Handle object, Dart_Handle& exception, ExecutionContext* context)
+ : ActiveDOMCallback(context)
+ , m_callback(object, exception)
+ {
+ }
+
+ DartCallback m_callback;
+};
+
+}
+
+#endif // DartMutationCallback_h
« no previous file with comments | « sky/engine/bindings-dart/core/dart/DartLibraryIds.h ('k') | sky/engine/bindings-dart/core/dart/DartMutationCallback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698