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