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", |
(...skipping 12 matching lines...) Expand all Loading... |
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 |
| 34 _typemap_imports_mac = [ "//content/common/typemaps_mac.gni" ] |
| 35 |
33 _typemaps = [] | 36 _typemaps = [] |
34 | |
35 foreach(typemap_import, _typemap_imports) { | 37 foreach(typemap_import, _typemap_imports) { |
36 # Avoid reassignment error by assigning to empty scope first. | 38 # Avoid reassignment error by assigning to empty scope first. |
37 _imported = { | 39 _imported = { |
38 } | 40 } |
39 _imported = read_file(typemap_import, "scope") | 41 _imported = read_file(typemap_import, "scope") |
40 _typemaps += _imported.typemaps | 42 _typemaps += _imported.typemaps |
41 } | 43 } |
42 | 44 |
43 typemaps = [] | 45 typemaps = [] |
44 foreach(typemap, _typemaps) { | 46 foreach(typemap, _typemaps) { |
45 typemaps += [ read_file(typemap, "scope") ] | 47 typemaps += [ read_file(typemap, "scope") ] |
46 } | 48 } |
| 49 |
| 50 _typemaps_mac = [] |
| 51 foreach(typemap_import, _typemap_imports_mac) { |
| 52 _imported = { |
| 53 } |
| 54 _imported = read_file(typemap_import, "scope") |
| 55 _typemaps_mac += _imported.typemaps |
| 56 } |
| 57 |
| 58 typemaps_mac = [] |
| 59 foreach(typemap, _typemaps_mac) { |
| 60 typemaps_mac += [ read_file(typemap, "scope") ] |
| 61 } |
OLD | NEW |