| 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); |
| 1056 source_map_.RegisterSource("extension", IDR_EXTENSION_CUSTOM_BINDINGS_JS); | 1058 source_map_.RegisterSource("extension", IDR_EXTENSION_CUSTOM_BINDINGS_JS); |
| 1057 source_map_.RegisterSource("i18n", IDR_I18N_CUSTOM_BINDINGS_JS); | 1059 source_map_.RegisterSource("i18n", IDR_I18N_CUSTOM_BINDINGS_JS); |
| 1058 source_map_.RegisterSource("permissions", IDR_PERMISSIONS_CUSTOM_BINDINGS_JS); | 1060 source_map_.RegisterSource("permissions", IDR_PERMISSIONS_CUSTOM_BINDINGS_JS); |
| 1059 source_map_.RegisterSource("runtime", IDR_RUNTIME_CUSTOM_BINDINGS_JS); | 1061 source_map_.RegisterSource("runtime", IDR_RUNTIME_CUSTOM_BINDINGS_JS); |
| 1060 source_map_.RegisterSource("binding", IDR_BINDING_JS); | 1062 source_map_.RegisterSource("binding", IDR_BINDING_JS); |
| 1061 | 1063 |
| 1062 // Custom types sources. | 1064 // Custom types sources. |
| 1063 source_map_.RegisterSource("StorageArea", IDR_STORAGE_AREA_JS); | 1065 source_map_.RegisterSource("StorageArea", IDR_STORAGE_AREA_JS); |
| 1064 | 1066 |
| 1065 // Platform app sources that are not API-specific.. | 1067 // 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>(); | 1209 return v8::Handle<v8::Object>(); |
| 1208 | 1210 |
| 1209 if (bind_name) | 1211 if (bind_name) |
| 1210 *bind_name = split.back(); | 1212 *bind_name = split.back(); |
| 1211 | 1213 |
| 1212 return bind_object.IsEmpty() ? AsObjectOrEmpty(GetOrCreateChrome(context)) | 1214 return bind_object.IsEmpty() ? AsObjectOrEmpty(GetOrCreateChrome(context)) |
| 1213 : bind_object; | 1215 : bind_object; |
| 1214 } | 1216 } |
| 1215 | 1217 |
| 1216 } // namespace extensions | 1218 } // namespace extensions |
| OLD | NEW |