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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 RegisterSchema("experimental.bookmarkManager", ReadFromResource( | 358 RegisterSchema("experimental.bookmarkManager", ReadFromResource( |
359 IDR_EXTENSION_API_JSON_EXPERIMENTAL_BOOKMARKMANAGER)); | 359 IDR_EXTENSION_API_JSON_EXPERIMENTAL_BOOKMARKMANAGER)); |
360 RegisterSchema("experimental.downloads", ReadFromResource( | 360 RegisterSchema("experimental.downloads", ReadFromResource( |
361 IDR_EXTENSION_API_JSON_EXPERIMENTAL_DOWNLOADS)); | 361 IDR_EXTENSION_API_JSON_EXPERIMENTAL_DOWNLOADS)); |
362 RegisterSchema("experimental.fontSettings", ReadFromResource( | 362 RegisterSchema("experimental.fontSettings", ReadFromResource( |
363 IDR_EXTENSION_API_JSON_EXPERIMENTAL_FONTSSETTINGS)); | 363 IDR_EXTENSION_API_JSON_EXPERIMENTAL_FONTSSETTINGS)); |
364 RegisterSchema("experimental.identity", ReadFromResource( | 364 RegisterSchema("experimental.identity", ReadFromResource( |
365 IDR_EXTENSION_API_JSON_EXPERIMENTAL_IDENTITY)); | 365 IDR_EXTENSION_API_JSON_EXPERIMENTAL_IDENTITY)); |
366 RegisterSchema("experimental.infobars", ReadFromResource( | 366 RegisterSchema("experimental.infobars", ReadFromResource( |
367 IDR_EXTENSION_API_JSON_EXPERIMENTAL_INFOBARS)); | 367 IDR_EXTENSION_API_JSON_EXPERIMENTAL_INFOBARS)); |
368 RegisterSchema("experimental.input.ui", ReadFromResource( | |
369 IDR_EXTENSION_API_JSON_EXPERIMENTAL_INPUT_UI)); | |
370 RegisterSchema("experimental.input.virtualKeyboard", ReadFromResource( | 368 RegisterSchema("experimental.input.virtualKeyboard", ReadFromResource( |
371 IDR_EXTENSION_API_JSON_EXPERIMENTAL_INPUT_VIRTUALKEYBOARD)); | 369 IDR_EXTENSION_API_JSON_EXPERIMENTAL_INPUT_VIRTUALKEYBOARD)); |
372 RegisterSchema("experimental.keybinding", ReadFromResource( | 370 RegisterSchema("experimental.keybinding", ReadFromResource( |
373 IDR_EXTENSION_API_JSON_EXPERIMENTAL_KEYBINDING)); | 371 IDR_EXTENSION_API_JSON_EXPERIMENTAL_KEYBINDING)); |
374 RegisterSchema("experimental.mediaGalleries", ReadFromResource( | 372 RegisterSchema("experimental.mediaGalleries", ReadFromResource( |
375 IDR_EXTENSION_API_JSON_EXPERIMENTAL_MEDIAGALLERIES)); | 373 IDR_EXTENSION_API_JSON_EXPERIMENTAL_MEDIAGALLERIES)); |
376 RegisterSchema("experimental.offscreenTabs", ReadFromResource( | 374 RegisterSchema("experimental.offscreenTabs", ReadFromResource( |
377 IDR_EXTENSION_API_JSON_EXPERIMENTAL_OFFSCREENTABS)); | 375 IDR_EXTENSION_API_JSON_EXPERIMENTAL_OFFSCREENTABS)); |
378 RegisterSchema("experimental.processes", ReadFromResource( | 376 RegisterSchema("experimental.processes", ReadFromResource( |
379 IDR_EXTENSION_API_JSON_EXPERIMENTAL_PROCESSES)); | 377 IDR_EXTENSION_API_JSON_EXPERIMENTAL_PROCESSES)); |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 | 795 |
798 void ExtensionAPI::LoadAllSchemas() { | 796 void ExtensionAPI::LoadAllSchemas() { |
799 while (unloaded_schemas_.size()) { | 797 while (unloaded_schemas_.size()) { |
800 std::map<std::string, base::StringPiece>::iterator it = | 798 std::map<std::string, base::StringPiece>::iterator it = |
801 unloaded_schemas_.begin(); | 799 unloaded_schemas_.begin(); |
802 LoadSchema(it->first, it->second); | 800 LoadSchema(it->first, it->second); |
803 } | 801 } |
804 } | 802 } |
805 | 803 |
806 } // namespace extensions | 804 } // namespace extensions |
OLD | NEW |