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

Side by Side Diff: sky/engine/bindings2/scripts/templates/global_cpp.template

Issue 914413004: Add a new bindings2/scripts directory for Dart bindings (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Remove idlrenderer.py it's not used 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 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // WARNING: Do not edit - generated code.
6
7 #include "sky/engine/config.h"
8 #include "gen/sky/bindings/DartGlobal.h"
9
10 {% for interface in interfaces %}
11 #include "gen/sky/bindings/Dart{{interface.name}}.h"
12 {% endfor %}
13
14 namespace blink {
15
16 Dart_NativeFunction skySnapshotResolver(Dart_Handle name, int argumentCount, boo l* autoSetupScope)
17 {
18 {% for interface in interfaces %}
19 {% if interface.has_resolver %}
20 if (Dart_NativeFunction func = Dart{{interface.name}}::Resolver(name, argume ntCount, autoSetupScope))
21 return func;
22 {% endif %}
23 {% endfor %}
24 return 0;
25 }
26
27 const uint8_t* skySnapshotSymbolizer(Dart_NativeFunction nf)
28 {
29 {% for interface in interfaces %}
30 {% if interface.has_resolver %}
31 if (const uint8_t* r = Dart{{interface.name}}::Symbolizer(nf))
32 return r;
33 {% endif %}
34 {% endfor %}
35 return 0;
36 }
37
38 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/bindings2/scripts/templates/dart_blink.template ('k') | sky/engine/bindings2/scripts/templates/global_h.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698