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

Side by Side Diff: sky/engine/bindings-dart/core/dart/DartMutationCallback.cpp

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, 10 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 unified diff | Download patch
OLDNEW
(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 #include "config.h"
6 #include "bindings/core/dart/DartMutationCallback.h"
7
8 #include "bindings/core/dart/DartMutationObserver.h"
9 #include "bindings/core/dart/DartMutationRecord.h"
10
11 namespace blink {
12
13 void DartMutationCallback::call(const Vector<RefPtr<MutationRecord> >& mutations , MutationObserver* observer)
14 {
15 if (!m_callback.isIsolateAlive())
16 return;
17
18 DartIsolateScope scope(m_callback.isolate());
19 DartApiScope apiScope;
20
21 Dart_Handle arguments[] = {
22 DartDOMWrapper::vectorToDart<DartMutationRecord>(mutations),
23 DartMutationObserver::toDart(observer)
24 };
25 m_callback.handleEvent(2, arguments);
26 }
27
28 }
OLDNEW
« no previous file with comments | « sky/engine/bindings-dart/core/dart/DartMutationCallback.h ('k') | sky/engine/bindings-dart/core/dart/DartNativeUtilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698