Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: chrome/common/extensions/api/extension_api.cc

Issue 10453032: Add wallpaper experimental api framework and add a simple category list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 RegisterSchema("experimental.processes", ReadFromResource( 376 RegisterSchema("experimental.processes", ReadFromResource(
377 IDR_EXTENSION_API_JSON_EXPERIMENTAL_PROCESSES)); 377 IDR_EXTENSION_API_JSON_EXPERIMENTAL_PROCESSES));
378 RegisterSchema("experimental.record", ReadFromResource( 378 RegisterSchema("experimental.record", ReadFromResource(
379 IDR_EXTENSION_API_JSON_EXPERIMENTAL_RECORD)); 379 IDR_EXTENSION_API_JSON_EXPERIMENTAL_RECORD));
380 RegisterSchema("experimental.rlz", ReadFromResource( 380 RegisterSchema("experimental.rlz", ReadFromResource(
381 IDR_EXTENSION_API_JSON_EXPERIMENTAL_RLZ)); 381 IDR_EXTENSION_API_JSON_EXPERIMENTAL_RLZ));
382 RegisterSchema("runtime", ReadFromResource( 382 RegisterSchema("runtime", ReadFromResource(
383 IDR_EXTENSION_API_JSON_RUNTIME)); 383 IDR_EXTENSION_API_JSON_RUNTIME));
384 RegisterSchema("experimental.speechInput", ReadFromResource( 384 RegisterSchema("experimental.speechInput", ReadFromResource(
385 IDR_EXTENSION_API_JSON_EXPERIMENTAL_SPEECHINPUT)); 385 IDR_EXTENSION_API_JSON_EXPERIMENTAL_SPEECHINPUT));
386 RegisterSchema("experimental.wallpaperManager", ReadFromResource(
387 IDR_EXTENSION_API_JSON_EXPERIMENTAL_WALLPAPERMANAGER));
386 RegisterSchema("extension", ReadFromResource( 388 RegisterSchema("extension", ReadFromResource(
387 IDR_EXTENSION_API_JSON_EXTENSION)); 389 IDR_EXTENSION_API_JSON_EXTENSION));
388 RegisterSchema("fileBrowserHandler", ReadFromResource( 390 RegisterSchema("fileBrowserHandler", ReadFromResource(
389 IDR_EXTENSION_API_JSON_FILEBROWSERHANDLER)); 391 IDR_EXTENSION_API_JSON_FILEBROWSERHANDLER));
390 RegisterSchema("fileBrowserPrivate", ReadFromResource( 392 RegisterSchema("fileBrowserPrivate", ReadFromResource(
391 IDR_EXTENSION_API_JSON_FILEBROWSERPRIVATE)); 393 IDR_EXTENSION_API_JSON_FILEBROWSERPRIVATE));
392 RegisterSchema("history", ReadFromResource( 394 RegisterSchema("history", ReadFromResource(
393 IDR_EXTENSION_API_JSON_HISTORY)); 395 IDR_EXTENSION_API_JSON_HISTORY));
394 RegisterSchema("i18n", ReadFromResource( 396 RegisterSchema("i18n", ReadFromResource(
395 IDR_EXTENSION_API_JSON_I18N)); 397 IDR_EXTENSION_API_JSON_I18N));
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 797
796 void ExtensionAPI::LoadAllSchemas() { 798 void ExtensionAPI::LoadAllSchemas() {
797 while (unloaded_schemas_.size()) { 799 while (unloaded_schemas_.size()) {
798 std::map<std::string, base::StringPiece>::iterator it = 800 std::map<std::string, base::StringPiece>::iterator it =
799 unloaded_schemas_.begin(); 801 unloaded_schemas_.begin();
800 LoadSchema(it->first, it->second); 802 LoadSchema(it->first, it->second);
801 } 803 }
802 } 804 }
803 805
804 } // namespace extensions 806 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698