| 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 "//ash/public/interfaces/typemaps.gni", | 6 "//ash/public/interfaces/typemaps.gni", |
| 7 "//cc/ipc/typemaps.gni", | 7 "//cc/ipc/typemaps.gni", |
| 8 "//chrome/browser/media/router/mojo/typemaps.gni", | 8 "//chrome/browser/media/router/mojo/typemaps.gni", |
| 9 "//components/arc/common/typemaps.gni", | 9 "//components/arc/common/typemaps.gni", |
| 10 "//components/metrics/public/cpp/typemaps.gni", | 10 "//components/metrics/public/cpp/typemaps.gni", |
| 11 "//components/typemaps.gni", | 11 "//components/typemaps.gni", |
| 12 "//content/common/bluetooth/typemaps.gni", | 12 "//content/common/bluetooth/typemaps.gni", |
| 13 "//content/common/typemaps.gni", | 13 "//content/common/typemaps.gni", |
| 14 "//content/public/common/typemaps.gni", |
| 14 "//device/bluetooth/public/interfaces/typemaps.gni", | 15 "//device/bluetooth/public/interfaces/typemaps.gni", |
| 15 "//device/generic_sensor/public/interfaces/typemaps.gni", | 16 "//device/generic_sensor/public/interfaces/typemaps.gni", |
| 16 "//gpu/ipc/common/typemaps.gni", | 17 "//gpu/ipc/common/typemaps.gni", |
| 17 "//media/mojo/interfaces/typemaps.gni", | 18 "//media/mojo/interfaces/typemaps.gni", |
| 18 "//mojo/common/typemaps.gni", | 19 "//mojo/common/typemaps.gni", |
| 19 "//mojo/public/cpp/bindings/tests/chromium_typemaps.gni", | 20 "//mojo/public/cpp/bindings/tests/chromium_typemaps.gni", |
| 20 "//services/shell/public/cpp/typemaps.gni", | 21 "//services/shell/public/cpp/typemaps.gni", |
| 21 "//services/ui/public/interfaces/display/typemaps.gni", | 22 "//services/ui/public/interfaces/display/typemaps.gni", |
| 22 "//skia/public/interfaces/typemaps.gni", | 23 "//skia/public/interfaces/typemaps.gni", |
| 24 "//third_party/WebKit/public/public_typemaps.gni", |
| 23 "//ui/base/mojo/typemaps.gni", | 25 "//ui/base/mojo/typemaps.gni", |
| 24 "//ui/events/devices/mojo/typemaps.gni", | 26 "//ui/events/devices/mojo/typemaps.gni", |
| 25 "//ui/events/mojo/typemaps.gni", | 27 "//ui/events/mojo/typemaps.gni", |
| 26 "//ui/gfx/typemaps.gni", | 28 "//ui/gfx/typemaps.gni", |
| 27 "//url/mojo/typemaps.gni", | 29 "//url/mojo/typemaps.gni", |
| 28 ] | 30 ] |
| 29 _typemaps = [] | 31 _typemaps = [] |
| 30 | 32 |
| 31 foreach(typemap_import, _typemap_imports) { | 33 foreach(typemap_import, _typemap_imports) { |
| 32 # Avoid reassignment error by assigning to empty scope first. | 34 # Avoid reassignment error by assigning to empty scope first. |
| 33 _imported = { | 35 _imported = { |
| 34 } | 36 } |
| 35 _imported = read_file(typemap_import, "scope") | 37 _imported = read_file(typemap_import, "scope") |
| 36 _typemaps += _imported.typemaps | 38 _typemaps += _imported.typemaps |
| 37 } | 39 } |
| 38 | 40 |
| 39 typemaps = [] | 41 typemaps = [] |
| 40 foreach(typemap, _typemaps) { | 42 foreach(typemap, _typemaps) { |
| 41 typemaps += [ read_file(typemap, "scope") ] | 43 typemaps += [ read_file(typemap, "scope") ] |
| 42 } | 44 } |
| OLD | NEW |