OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/common/extensions/api/extension_api.h" | 5 #include "chrome/common/extensions/api/extension_api.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 RegisterSchemaResource("app", IDR_EXTENSION_API_JSON_APP); | 236 RegisterSchemaResource("app", IDR_EXTENSION_API_JSON_APP); |
237 RegisterSchemaResource("browserAction", IDR_EXTENSION_API_JSON_BROWSERACTION); | 237 RegisterSchemaResource("browserAction", IDR_EXTENSION_API_JSON_BROWSERACTION); |
238 RegisterSchemaResource("browsingData", IDR_EXTENSION_API_JSON_BROWSINGDATA); | 238 RegisterSchemaResource("browsingData", IDR_EXTENSION_API_JSON_BROWSINGDATA); |
239 RegisterSchemaResource("commands", IDR_EXTENSION_API_JSON_COMMANDS); | 239 RegisterSchemaResource("commands", IDR_EXTENSION_API_JSON_COMMANDS); |
240 RegisterSchemaResource("declarativeContent", | 240 RegisterSchemaResource("declarativeContent", |
241 IDR_EXTENSION_API_JSON_DECLARATIVE_CONTENT); | 241 IDR_EXTENSION_API_JSON_DECLARATIVE_CONTENT); |
242 RegisterSchemaResource("declarativeWebRequest", | 242 RegisterSchemaResource("declarativeWebRequest", |
243 IDR_EXTENSION_API_JSON_DECLARATIVE_WEBREQUEST); | 243 IDR_EXTENSION_API_JSON_DECLARATIVE_WEBREQUEST); |
244 RegisterSchemaResource("experimental.input.virtualKeyboard", | 244 RegisterSchemaResource("experimental.input.virtualKeyboard", |
245 IDR_EXTENSION_API_JSON_EXPERIMENTAL_INPUT_VIRTUALKEYBOARD); | 245 IDR_EXTENSION_API_JSON_EXPERIMENTAL_INPUT_VIRTUALKEYBOARD); |
246 RegisterSchemaResource("experimental.processes", | |
247 IDR_EXTENSION_API_JSON_EXPERIMENTAL_PROCESSES); | |
248 RegisterSchemaResource("experimental.rlz", | 246 RegisterSchemaResource("experimental.rlz", |
249 IDR_EXTENSION_API_JSON_EXPERIMENTAL_RLZ); | 247 IDR_EXTENSION_API_JSON_EXPERIMENTAL_RLZ); |
250 RegisterSchemaResource("runtime", IDR_EXTENSION_API_JSON_RUNTIME); | 248 RegisterSchemaResource("runtime", IDR_EXTENSION_API_JSON_RUNTIME); |
251 RegisterSchemaResource("fileBrowserHandler", | 249 RegisterSchemaResource("fileBrowserHandler", |
252 IDR_EXTENSION_API_JSON_FILEBROWSERHANDLER); | 250 IDR_EXTENSION_API_JSON_FILEBROWSERHANDLER); |
253 RegisterSchemaResource("fileBrowserPrivate", | 251 RegisterSchemaResource("fileBrowserPrivate", |
254 IDR_EXTENSION_API_JSON_FILEBROWSERPRIVATE); | 252 IDR_EXTENSION_API_JSON_FILEBROWSERPRIVATE); |
255 RegisterSchemaResource("inputMethodPrivate", | 253 RegisterSchemaResource("inputMethodPrivate", |
256 IDR_EXTENSION_API_JSON_INPUTMETHODPRIVATE); | 254 IDR_EXTENSION_API_JSON_INPUTMETHODPRIVATE); |
257 RegisterSchemaResource("pageAction", IDR_EXTENSION_API_JSON_PAGEACTION); | 255 RegisterSchemaResource("pageAction", IDR_EXTENSION_API_JSON_PAGEACTION); |
258 RegisterSchemaResource("pageActions", IDR_EXTENSION_API_JSON_PAGEACTIONS); | 256 RegisterSchemaResource("pageActions", IDR_EXTENSION_API_JSON_PAGEACTIONS); |
259 RegisterSchemaResource("privacy", IDR_EXTENSION_API_JSON_PRIVACY); | 257 RegisterSchemaResource("privacy", IDR_EXTENSION_API_JSON_PRIVACY); |
| 258 RegisterSchemaResource("processes", IDR_EXTENSION_API_JSON_PROCESSES); |
260 RegisterSchemaResource("proxy", IDR_EXTENSION_API_JSON_PROXY); | 259 RegisterSchemaResource("proxy", IDR_EXTENSION_API_JSON_PROXY); |
261 RegisterSchemaResource("scriptBadge", IDR_EXTENSION_API_JSON_SCRIPTBADGE); | 260 RegisterSchemaResource("scriptBadge", IDR_EXTENSION_API_JSON_SCRIPTBADGE); |
262 RegisterSchemaResource("streamsPrivate", | 261 RegisterSchemaResource("streamsPrivate", |
263 IDR_EXTENSION_API_JSON_STREAMSPRIVATE); | 262 IDR_EXTENSION_API_JSON_STREAMSPRIVATE); |
264 RegisterSchemaResource("ttsEngine", IDR_EXTENSION_API_JSON_TTSENGINE); | 263 RegisterSchemaResource("ttsEngine", IDR_EXTENSION_API_JSON_TTSENGINE); |
265 RegisterSchemaResource("tts", IDR_EXTENSION_API_JSON_TTS); | 264 RegisterSchemaResource("tts", IDR_EXTENSION_API_JSON_TTS); |
266 RegisterSchemaResource("types", IDR_EXTENSION_API_JSON_TYPES); | 265 RegisterSchemaResource("types", IDR_EXTENSION_API_JSON_TYPES); |
267 RegisterSchemaResource("types.private", IDR_EXTENSION_API_JSON_TYPES_PRIVATE); | 266 RegisterSchemaResource("types.private", IDR_EXTENSION_API_JSON_TYPES_PRIVATE); |
268 RegisterSchemaResource("webRequestInternal", | 267 RegisterSchemaResource("webRequestInternal", |
269 IDR_EXTENSION_API_JSON_WEBREQUESTINTERNAL); | 268 IDR_EXTENSION_API_JSON_WEBREQUESTINTERNAL); |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 break; | 414 break; |
416 | 415 |
417 api_name_candidate = api_name_candidate.substr(0, last_dot_index); | 416 api_name_candidate = api_name_candidate.substr(0, last_dot_index); |
418 } | 417 } |
419 | 418 |
420 *child_name = ""; | 419 *child_name = ""; |
421 return std::string(); | 420 return std::string(); |
422 } | 421 } |
423 | 422 |
424 } // namespace extensions | 423 } // namespace extensions |
OLD | NEW |