| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 // WARNING: Do not edit - generated code. | |
| 6 | |
| 7 #ifndef DartMutationCallback_h | |
| 8 #define DartMutationCallback_h | |
| 9 | |
| 10 #include "bindings/core/dart/DartCallback.h" | |
| 11 #include "bindings/core/dart/DartDOMWrapper.h" | |
| 12 #include "bindings/core/v8/ActiveDOMCallback.h" | |
| 13 #include "core/dom/MutationCallback.h" | |
| 14 | |
| 15 namespace blink { | |
| 16 | |
| 17 class DartMutationCallback : public MutationCallback, public ActiveDOMCallback { | |
| 18 public: | |
| 19 static PassOwnPtr<DartMutationCallback> create(Dart_Handle object, Execution
Context* context, Dart_Handle& exception) | |
| 20 { | |
| 21 return adoptPtr(new DartMutationCallback(object, exception, context)); | |
| 22 } | |
| 23 | |
| 24 virtual ExecutionContext* executionContext() const { return ActiveDOMCallbac
k::executionContext(); } | |
| 25 | |
| 26 virtual void call(const Vector<RefPtr<MutationRecord> >& mutations, Mutation
Observer* observer); | |
| 27 | |
| 28 | |
| 29 private: | |
| 30 DartMutationCallback(Dart_Handle object, Dart_Handle& exception, ExecutionCo
ntext* context) | |
| 31 : ActiveDOMCallback(context) | |
| 32 , m_callback(object, exception) | |
| 33 { | |
| 34 } | |
| 35 | |
| 36 DartCallback m_callback; | |
| 37 }; | |
| 38 | |
| 39 } | |
| 40 | |
| 41 #endif // DartMutationCallback_h | |
| OLD | NEW |