| OLD | NEW |
| (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 |
| OLD | NEW |