| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 _typemap_imports = [ | 5 _typemap_imports = [ |
| 6 "//cc/ipc/typemaps.gni", | 6 "//cc/ipc/typemaps.gni", |
| 7 "//chrome/browser/media/router/mojo/typemaps.gni", | 7 "//chrome/browser/media/router/mojo/typemaps.gni", |
| 8 "//components/arc/common/typemaps.gni", | 8 "//components/arc/common/typemaps.gni", |
| 9 "//components/typemaps.gni", | 9 "//components/typemaps.gni", |
| 10 "//content/common/bluetooth/typemaps.gni", | 10 "//content/common/bluetooth/typemaps.gni", |
| 11 "//device/bluetooth/public/interfaces/typemaps.gni", | 11 "//device/bluetooth/public/interfaces/typemaps.gni", |
| 12 "//gpu/ipc/common/typemaps.gni", | 12 "//gpu/ipc/common/typemaps.gni", |
| 13 "//media/mojo/interfaces/typemaps.gni", | 13 "//media/mojo/interfaces/typemaps.gni", |
| 14 "//mojo/common/typemaps.gni", | 14 "//mojo/common/typemaps.gni", |
| 15 "//mojo/public/cpp/bindings/tests/chromium_typemaps.gni", | 15 "//mojo/public/cpp/bindings/tests/chromium_typemaps.gni", |
| 16 "//net/typemaps.gni", |
| 16 "//services/ui/public/interfaces/display/typemaps.gni", | 17 "//services/ui/public/interfaces/display/typemaps.gni", |
| 17 "//skia/public/interfaces/typemaps.gni", | 18 "//skia/public/interfaces/typemaps.gni", |
| 18 "//ui/events/devices/mojo/typemaps.gni", | 19 "//ui/events/devices/mojo/typemaps.gni", |
| 19 "//ui/events/mojo/typemaps.gni", | 20 "//ui/events/mojo/typemaps.gni", |
| 20 "//ui/gfx/typemaps.gni", | 21 "//ui/gfx/typemaps.gni", |
| 21 "//url/mojo/typemaps.gni", | 22 "//url/mojo/typemaps.gni", |
| 22 ] | 23 ] |
| 23 _typemaps = [] | 24 _typemaps = [] |
| 24 | 25 |
| 25 foreach(typemap_import, _typemap_imports) { | 26 foreach(typemap_import, _typemap_imports) { |
| 26 # Avoid reassignment error by assigning to empty scope first. | 27 # Avoid reassignment error by assigning to empty scope first. |
| 27 _imported = { | 28 _imported = { |
| 28 } | 29 } |
| 29 _imported = read_file(typemap_import, "scope") | 30 _imported = read_file(typemap_import, "scope") |
| 30 _typemaps += _imported.typemaps | 31 _typemaps += _imported.typemaps |
| 31 } | 32 } |
| 32 | 33 |
| 33 typemaps = [] | 34 typemaps = [] |
| 34 foreach(typemap, _typemaps) { | 35 foreach(typemap, _typemaps) { |
| 35 typemaps += [ read_file(typemap, "scope") ] | 36 typemaps += [ read_file(typemap, "scope") ] |
| 36 } | 37 } |
| OLD | NEW |