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