OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "extensions/renderer/dispatcher.h" | 5 #include "extensions/renderer/dispatcher.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/debug/alias.h" | 9 #include "base/debug/alias.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1046 source_map_.RegisterSource("sendRequest", IDR_SEND_REQUEST_JS); | 1046 source_map_.RegisterSource("sendRequest", IDR_SEND_REQUEST_JS); |
1047 source_map_.RegisterSource("setIcon", IDR_SET_ICON_JS); | 1047 source_map_.RegisterSource("setIcon", IDR_SET_ICON_JS); |
1048 source_map_.RegisterSource("test", IDR_TEST_CUSTOM_BINDINGS_JS); | 1048 source_map_.RegisterSource("test", IDR_TEST_CUSTOM_BINDINGS_JS); |
1049 source_map_.RegisterSource("unload_event", IDR_UNLOAD_EVENT_JS); | 1049 source_map_.RegisterSource("unload_event", IDR_UNLOAD_EVENT_JS); |
1050 source_map_.RegisterSource("utils", IDR_UTILS_JS); | 1050 source_map_.RegisterSource("utils", IDR_UTILS_JS); |
1051 | 1051 |
1052 // Custom bindings. | 1052 // Custom bindings. |
1053 source_map_.RegisterSource("app.runtime", IDR_APP_RUNTIME_CUSTOM_BINDINGS_JS); | 1053 source_map_.RegisterSource("app.runtime", IDR_APP_RUNTIME_CUSTOM_BINDINGS_JS); |
1054 source_map_.RegisterSource("contextMenus", | 1054 source_map_.RegisterSource("contextMenus", |
1055 IDR_CONTEXT_MENUS_CUSTOM_BINDINGS_JS); | 1055 IDR_CONTEXT_MENUS_CUSTOM_BINDINGS_JS); |
1056 source_map_.RegisterSource("enterprise.platformKeys", | |
1057 IDR_ENTERPRISE_PLATFORM_KEYS_CUSTOM_BINDINGS_JS); | |
1058 source_map_.RegisterSource("enterprise.platformKeys.Key", | |
1059 IDR_ENTERPRISE_PLATFORM_KEYS_KEY_JS); | |
1060 source_map_.RegisterSource("enterprise.platformKeys.SubtleCrypto", | |
1061 IDR_ENTERPRISE_PLATFORM_KEYS_SUBTLE_CRYPTO_JS); | |
1062 source_map_.RegisterSource("enterprise.platformKeys.Token", | |
1063 IDR_ENTERPRISE_PLATFORM_KEYS_TOKEN_JS); | |
1064 source_map_.RegisterSource("enterprise.platformKeys.utils", | |
1065 IDR_ENTERPRISE_PLATFORM_KEYS_UTILS_JS); | |
1066 source_map_.RegisterSource( | |
1067 "enterprise.platformKeysInternal", | |
1068 IDR_ENTERPRISE_PLATFORM_KEYS_INTERNAL_CUSTOM_BINDINGS_JS); | |
not at google - send to devlin
2014/05/05 21:09:24
this is a chrome feature, so should go in chrome/r
pneubeck (no reviews)
2014/05/06 14:07:21
Done.
| |
1056 source_map_.RegisterSource("extension", IDR_EXTENSION_CUSTOM_BINDINGS_JS); | 1069 source_map_.RegisterSource("extension", IDR_EXTENSION_CUSTOM_BINDINGS_JS); |
1057 source_map_.RegisterSource("i18n", IDR_I18N_CUSTOM_BINDINGS_JS); | 1070 source_map_.RegisterSource("i18n", IDR_I18N_CUSTOM_BINDINGS_JS); |
1058 source_map_.RegisterSource("permissions", IDR_PERMISSIONS_CUSTOM_BINDINGS_JS); | 1071 source_map_.RegisterSource("permissions", IDR_PERMISSIONS_CUSTOM_BINDINGS_JS); |
1059 source_map_.RegisterSource("runtime", IDR_RUNTIME_CUSTOM_BINDINGS_JS); | 1072 source_map_.RegisterSource("runtime", IDR_RUNTIME_CUSTOM_BINDINGS_JS); |
1060 source_map_.RegisterSource("binding", IDR_BINDING_JS); | 1073 source_map_.RegisterSource("binding", IDR_BINDING_JS); |
1061 | 1074 |
1062 // Custom types sources. | 1075 // Custom types sources. |
1063 source_map_.RegisterSource("StorageArea", IDR_STORAGE_AREA_JS); | 1076 source_map_.RegisterSource("StorageArea", IDR_STORAGE_AREA_JS); |
1064 | 1077 |
1065 // Platform app sources that are not API-specific.. | 1078 // Platform app sources that are not API-specific.. |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1207 return v8::Handle<v8::Object>(); | 1220 return v8::Handle<v8::Object>(); |
1208 | 1221 |
1209 if (bind_name) | 1222 if (bind_name) |
1210 *bind_name = split.back(); | 1223 *bind_name = split.back(); |
1211 | 1224 |
1212 return bind_object.IsEmpty() ? AsObjectOrEmpty(GetOrCreateChrome(context)) | 1225 return bind_object.IsEmpty() ? AsObjectOrEmpty(GetOrCreateChrome(context)) |
1213 : bind_object; | 1226 : bind_object; |
1214 } | 1227 } |
1215 | 1228 |
1216 } // namespace extensions | 1229 } // namespace extensions |
OLD | NEW |