| 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
|
|
|