| 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 "//chrome/common/extensions/typemaps.gni", | 9 "//chrome/common/extensions/typemaps.gni", |
| 10 "//chrome/common/importer/typemaps.gni", | 10 "//chrome/common/importer/typemaps.gni", |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 foreach(typemap_import, _typemap_imports) { | 49 foreach(typemap_import, _typemap_imports) { |
| 50 # Avoid reassignment error by assigning to empty scope first. | 50 # Avoid reassignment error by assigning to empty scope first. |
| 51 _imported = { | 51 _imported = { |
| 52 } | 52 } |
| 53 _imported = read_file(typemap_import, "scope") | 53 _imported = read_file(typemap_import, "scope") |
| 54 _typemaps += _imported.typemaps | 54 _typemaps += _imported.typemaps |
| 55 } | 55 } |
| 56 | 56 |
| 57 typemaps = [] | 57 typemaps = [] |
| 58 foreach(typemap, _typemaps) { | 58 foreach(typemap, _typemaps) { |
| 59 typemaps += [ read_file(typemap, "scope") ] | 59 typemaps += [ { |
| 60 filename = typemap |
| 61 config = read_file(typemap, "scope") |
| 62 } ] |
| 60 } | 63 } |
| 61 | 64 |
| 62 _typemaps_mac = [] | 65 _typemaps_mac = [] |
| 63 foreach(typemap_import, _typemap_imports_mac) { | 66 foreach(typemap_import, _typemap_imports_mac) { |
| 64 _imported = { | 67 _imported = { |
| 65 } | 68 } |
| 66 _imported = read_file(typemap_import, "scope") | 69 _imported = read_file(typemap_import, "scope") |
| 67 _typemaps_mac += _imported.typemaps | 70 _typemaps_mac += _imported.typemaps |
| 68 } | 71 } |
| 69 | 72 |
| 70 typemaps_mac = [] | 73 typemaps_mac = [] |
| 71 foreach(typemap, _typemaps_mac) { | 74 foreach(typemap, _typemaps_mac) { |
| 72 typemaps_mac += [ read_file(typemap, "scope") ] | 75 typemaps_mac += [ { |
| 76 filename = typemap |
| 77 config = read_file(typemap, "scope") |
| 78 } ] |
| 73 } | 79 } |
| OLD | NEW |