1
Index: src/chrome/browser/infobars/infobar_extension_api.h
2
===================================================================
3
--- src/chrome/browser/infobars/infobar_extension_api.h (revision 158531)
4
+++ src/chrome/browser/infobars/infobar_extension_api.h (working copy)
6
class ShowInfoBarFunction : public SyncExtensionFunction {
7
virtual ~ShowInfoBarFunction() {}
8
virtual bool RunImpl() OVERRIDE;
9
- DECLARE_EXTENSION_FUNCTION_NAME("experimental.infobars.show")
10
+ DECLARE_EXTENSION_FUNCTION_NAME("infobars.show")
13
#endif // CHROME_BROWSER_INFOBARS_INFOBAR_EXTENSION_API_H_
14
Index: src/chrome/common/extensions_api_resources.grd
15
===================================================================
16
--- src/chrome/common/extensions_api_resources.grd (revision 165188)
17
+++ src/chrome/common/extensions_api_resources.grd (working copy)
19
<include name="IDR_EXTENSION_API_JSON_EXPERIMENTAL_ACCESSIBILITY" file="extensions\api\experimental_accessibility.json" type="BINDATA" />
20
<include name="IDR_EXTENSION_API_JSON_EXPERIMENTAL_APP" file="extensions\api\experimental_app.json" type="BINDATA" />
21
<include name="IDR_EXTENSION_API_JSON_EXPERIMENTAL_HISTORY" file="extensions\api\experimental_history.json" type="BINDATA" />
22
- <include name="IDR_EXTENSION_API_JSON_EXPERIMENTAL_INFOBARS" file="extensions\api\experimental_infobars.json" type="BINDATA" />
23
<include name="IDR_EXTENSION_API_JSON_EXPERIMENTAL_INPUT_VIRTUALKEYBOARD" file="extensions\api\experimental_input_virtual_keyboard.json" type="BINDATA" />
24
<include name="IDR_EXTENSION_API_JSON_EXPERIMENTAL_OFFSCREENTABS" file="extensions\api\experimental_offscreen_tabs.json" type="BINDATA" />
25
<include name="IDR_EXTENSION_API_JSON_EXPERIMENTAL_POWER" file="extensions\api\experimental_power.json" type="BINDATA" />
27
<include name="IDR_EXTENSION_API_JSON_I18N" file="extensions\api\i18n.json" type="BINDATA" />
28
<include name="IDR_EXTENSION_API_JSON_INPUT_IME" file="extensions\api\input_ime.json" type="BINDATA" />
29
<include name="IDR_EXTENSION_API_JSON_IDLE" file="extensions\api\idle.json" type="BINDATA" />
30
+ <include name="IDR_EXTENSION_API_JSON_INFOBARS" file="extensions\api\infobars.json" type="BINDATA" />
31
<include name="IDR_EXTENSION_API_JSON_INPUTMETHODPRIVATE" file="extensions\api\input_method_private.json" type="BINDATA" />
32
<include name="IDR_EXTENSION_API_JSON_MANAGEDMODEPRIVATE" file="extensions\api\managed_mode_private.json" type="BINDATA" />
33
<include name="IDR_EXTENSION_API_JSON_MANAGEMENT" file="extensions\api\management.json" type="BINDATA" />
34
Index: src/chrome/common/extensions/permissions/permission_set.cc
35
===================================================================
36
--- src/chrome/common/extensions/permissions/permission_set.cc (revision 165188)
37
+++ src/chrome/common/extensions/permissions/permission_set.cc (working copy)
46
Index: src/chrome/common/extensions/api/infobars.json
47
===================================================================
48
--- src/chrome/common/extensions/api/infobars.json (revision 0)
49
+++ src/chrome/common/extensions/api/infobars.json (working copy)
51
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
52
+// Use of this source code is governed by a BSD-style license that can be
53
+// found in the LICENSE file.
57
+ "namespace": "infobars",
58
+ "dependencies": [ "windows" ],
64
+ "description": "Shows an infobar in the specified tab. The infobar will be closed automatically when the tab navigates. Use window.close() to close the infobar before then.",
72
+ "description": "The tab id for the tab to display the infobar in."
76
+ "description": "The html file that contains the infobar."
80
+ "description": "The height (in pixels) of the infobar to show. If omitted, the default infobar height will be used.",
93
+ "name": "window", "$ref": "windows.Window", "description": "Contains details about the window in which the infobar was created."
102
Index: src/chrome/common/extensions/api/extension_api.cc
103
===================================================================
104
--- src/chrome/common/extensions/api/extension_api.cc (revision 165188)
105
+++ src/chrome/common/extensions/api/extension_api.cc (working copy)
107
IDR_EXTENSION_API_JSON_EXPERIMENTAL_APP));
108
RegisterSchema("experimental.history", ReadFromResource(
109
IDR_EXTENSION_API_JSON_EXPERIMENTAL_HISTORY));
110
- RegisterSchema("experimental.infobars", ReadFromResource(
111
- IDR_EXTENSION_API_JSON_EXPERIMENTAL_INFOBARS));
112
RegisterSchema("experimental.input.virtualKeyboard", ReadFromResource(
113
IDR_EXTENSION_API_JSON_EXPERIMENTAL_INPUT_VIRTUALKEYBOARD));
114
RegisterSchema("experimental.offscreenTabs", ReadFromResource(
116
IDR_EXTENSION_API_JSON_I18N));
117
RegisterSchema("idle", ReadFromResource(
118
IDR_EXTENSION_API_JSON_IDLE));
119
+ RegisterSchema("infobars", ReadFromResource(
120
+ IDR_EXTENSION_API_JSON_INFOBARS));
121
RegisterSchema("input.ime", ReadFromResource(
122
IDR_EXTENSION_API_JSON_INPUT_IME));
123
RegisterSchema("inputMethodPrivate", ReadFromResource(
124
Index: src/chrome/common/extensions/api/experimental_infobars.json
125
===================================================================
126
--- src/chrome/common/extensions/api/experimental_infobars.json (revision 158531)
127
+++ src/chrome/common/extensions/api/experimental_infobars.json (working copy)
129
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
130
-// Use of this source code is governed by a BSD-style license that can be
131
-// found in the LICENSE file.
135
- "namespace": "experimental.infobars",
136
- "dependencies": [ "windows" ],
141
- "type": "function",
142
- "description": "Shows an infobar in the specified tab. The infobar will be closed automatically when the tab navigates. Use window.close() to close the infobar before then.",
150
- "description": "The tab id for the tab to display the infobar in."
154
- "description": "The html file that contains the infobar."
158
- "description": "The height (in pixels) of the infobar to show. If omitted, the default infobar height will be used.",
166
- "type": "function",
167
- "name": "callback",
171
- "name": "window", "$ref": "windows.Window", "description": "Contains details about the window in which the infobar was created."