OLD | NEW |
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/common/shell_extensions_client.h" | 5 #include "apps/shell/common/shell_extensions_client.h" |
6 | 6 |
7 #include "apps/shell/common/api/generated_schemas.h" | 7 #include "apps/shell/common/api/generated_schemas.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "extensions/common/api/generated_schemas.h" | 10 #include "extensions/common/api/generated_schemas.h" |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 | 200 |
201 base::StringPiece ShellExtensionsClient::GetAPISchema( | 201 base::StringPiece ShellExtensionsClient::GetAPISchema( |
202 const std::string& name) const { | 202 const std::string& name) const { |
203 // Schema for chrome.shell APIs. | 203 // Schema for chrome.shell APIs. |
204 if (apps::shell_api::GeneratedSchemas::IsGenerated(name)) | 204 if (apps::shell_api::GeneratedSchemas::IsGenerated(name)) |
205 return apps::shell_api::GeneratedSchemas::Get(name); | 205 return apps::shell_api::GeneratedSchemas::Get(name); |
206 | 206 |
207 return extensions::core_api::GeneratedSchemas::Get(name); | 207 return extensions::core_api::GeneratedSchemas::Get(name); |
208 } | 208 } |
209 | 209 |
| 210 void ShellExtensionsClient::RegisterAPISchemaResources( |
| 211 extensions::ExtensionAPI* api) const { |
| 212 } |
| 213 |
210 bool ShellExtensionsClient::ShouldSuppressFatalErrors() const { return true; } | 214 bool ShellExtensionsClient::ShouldSuppressFatalErrors() const { return true; } |
211 | 215 |
212 } // namespace apps | 216 } // namespace apps |
OLD | NEW |