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