1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "apps/shell/common/shell_app_runtime.h"
6
7 #include "base/memory/scoped_ptr.h"
8 #include "base/values.h"
9 #include "extensions/browser/event_router.h"
10 #include "extensions/common/extension.h"
11
12 namespace extensions {
13
14 // static
GetName()15 const char* ShellAppRuntime::GetName() { return "app.runtime"; }
16
17 // static
GetSchema()18 const char* ShellAppRuntime::GetSchema() {
19 return "["
20 " {"
21 " \"compiler_options\": {},"
22 " \"functions\": [],"
23 " \"deprecated\": null,"
24 " \"nodoc\": false,"
25 " \"platforms\": null,"
26 " \"internal\": false,"
27 " \"namespace\": \"app.runtime\","
28 " \"events\": ["
29 " {"
30 " \"type\": \"function\","
31 " \"name\": \"onLaunched\","
32 " \"parameters\": ["
33 " {"
34 " \"optional\": true,"
35 " \"name\": \"launchDataPlaceholder\"" // No launch data.
36 " }"
37 " ]"
38 " }"
39 " ]"
40 " }"
41 "]";
42 }
43
44 } // namespace extensions
45