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

Side by Side Diff: apps/shell/browser/shell_extensions_browser_client.cc

Issue 254473011: Introduce chrome.shell.createWindow stub API for app_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase (shell-api) Created 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "apps/shell/browser/shell_extensions_browser_client.h" 5 #include "apps/shell/browser/shell_extensions_browser_client.h"
6 6
7 #include "apps/shell/browser/shell_app_sorting.h" 7 #include "apps/shell/browser/shell_app_sorting.h"
8 #include "apps/shell/browser/shell_app_window_api.h" 8 #include "apps/shell/browser/shell_app_window_api.h"
9 #include "apps/shell/browser/shell_extension_system_factory.h" 9 #include "apps/shell/browser/shell_extension_system_factory.h"
10 #include "apps/shell/browser/shell_extension_web_contents_observer.h" 10 #include "apps/shell/browser/shell_extension_web_contents_observer.h"
11 #include "apps/shell/common/api/generated_api.h"
11 #include "base/prefs/pref_service.h" 12 #include "base/prefs/pref_service.h"
12 #include "base/prefs/pref_service_factory.h" 13 #include "base/prefs/pref_service_factory.h"
13 #include "base/prefs/testing_pref_store.h" 14 #include "base/prefs/testing_pref_store.h"
14 #include "chrome/common/extensions/api/generated_api.h" 15 #include "chrome/common/extensions/api/generated_api.h"
15 #include "components/user_prefs/pref_registry_syncable.h" 16 #include "components/user_prefs/pref_registry_syncable.h"
16 #include "components/user_prefs/user_prefs.h" 17 #include "components/user_prefs/user_prefs.h"
17 #include "extensions/browser/api/extensions_api_client.h" 18 #include "extensions/browser/api/extensions_api_client.h"
18 #include "extensions/browser/app_sorting.h" 19 #include "extensions/browser/app_sorting.h"
19 #include "extensions/browser/extension_function_registry.h" 20 #include "extensions/browser/extension_function_registry.h"
20 #include "extensions/browser/extension_host_delegate.h" 21 #include "extensions/browser/extension_host_delegate.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 225
225 void ShellExtensionsBrowserClient::RegisterExtensionFunctions( 226 void ShellExtensionsBrowserClient::RegisterExtensionFunctions(
226 ExtensionFunctionRegistry* registry) const { 227 ExtensionFunctionRegistry* registry) const {
227 // Register core extension-system APIs. 228 // Register core extension-system APIs.
228 extensions::core_api::GeneratedFunctionRegistry::RegisterAll(registry); 229 extensions::core_api::GeneratedFunctionRegistry::RegisterAll(registry);
229 230
230 // TODO(rockot): Remove dependency on src/chrome once we have some core APIs 231 // TODO(rockot): Remove dependency on src/chrome once we have some core APIs
231 // moved out. Also clean up the comment below. See http://crbug.com/349042. 232 // moved out. Also clean up the comment below. See http://crbug.com/349042.
232 extensions::api::GeneratedFunctionRegistry::RegisterAll(registry); 233 extensions::api::GeneratedFunctionRegistry::RegisterAll(registry);
233 234
235 // Register chrome.shell APIs.
236 apps::shell_api::GeneratedFunctionRegistry::RegisterAll(registry);
237
234 // Register our simplified implementation for chrome.app.window.create(). 238 // Register our simplified implementation for chrome.app.window.create().
235 registry->RegisterFunction<ShellAppWindowCreateFunction>(); 239 registry->RegisterFunction<ShellAppWindowCreateFunction>();
236 } 240 }
237 241
238 } // namespace extensions 242 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698