~allanlesage/unity-chromium-extension/lcov-versioning

« back to all changes in this revision

Viewing changes to chromium-patches/stable-24.0.1312.52/1-infobars.patch

  • Committer: CI bot
  • Author(s): Justin McPherson
  • Date: 2014-02-17 23:43:23 UTC
  • mfrom: (239.2.1 remove-patches)
  • Revision ID: ps-jenkins@lists.canonical.com-20140217234323-4pw656wfrooeinde
Chromium patches are no longer maintained in this repo, remove them to avoid confusion. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
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)
5
 
@@ -10,7 +10,7 @@
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")
11
 
 };
12
 
 
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)
18
 
@@ -28,7 +28,6 @@
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" />
26
 
@@ -45,6 +44,7 @@
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)
38
 
@@ -41,6 +41,7 @@
39
 
   "events",
40
 
   "extension",
41
 
   "i18n",
42
 
+  "infobars",
43
 
   "omnibox",
44
 
   "pageAction",
45
 
   "pageActions",
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)
50
 
@@ -0,0 +1,51 @@
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.
54
 
+
55
 
+[
56
 
+  {
57
 
+    "namespace": "infobars",
58
 
+    "dependencies": [ "windows" ],
59
 
+    "types": [],
60
 
+    "functions": [
61
 
+      {
62
 
+        "name": "show",
63
 
+        "type": "function",
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.",
65
 
+        "parameters": [
66
 
+          {
67
 
+            "name": "details",
68
 
+            "type": "object",
69
 
+            "properties": {
70
 
+              "tabId": {
71
 
+                "type": "integer",
72
 
+                "description": "The tab id for the tab to display the infobar in."
73
 
+              },
74
 
+              "path": {
75
 
+                "type": "string",
76
 
+                "description": "The html file that contains the infobar."
77
 
+              },
78
 
+              "height": {
79
 
+                "type": "integer",
80
 
+                "description": "The height (in pixels) of the infobar to show. If omitted, the default infobar height will be used.",
81
 
+                "optional": true,
82
 
+                "minimum": 0,
83
 
+                "maximum": 72
84
 
+              }
85
 
+            }
86
 
+          },
87
 
+          {
88
 
+            "type": "function",
89
 
+            "name": "callback",
90
 
+            "optional": true,
91
 
+            "parameters": [
92
 
+              {
93
 
+                "name": "window", "$ref": "windows.Window", "description": "Contains details about the window in which the infobar was created."
94
 
+              }
95
 
+            ]
96
 
+          }
97
 
+        ]
98
 
+      }
99
 
+    ]
100
 
+  }
101
 
+]
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)
106
 
@@ -378,8 +378,6 @@
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(
115
 
@@ -412,6 +410,8 @@
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)
128
 
@@ -1,51 +0,0 @@
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.
132
 
-
133
 
-[
134
 
-  {
135
 
-    "namespace": "experimental.infobars",
136
 
-    "dependencies": [ "windows" ],
137
 
-    "types": [],
138
 
-    "functions": [
139
 
-      {
140
 
-        "name": "show",
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.",
143
 
-        "parameters": [
144
 
-          {
145
 
-            "name": "details",
146
 
-            "type": "object",
147
 
-            "properties": {
148
 
-              "tabId": {
149
 
-                "type": "integer",
150
 
-                "description": "The tab id for the tab to display the infobar in."
151
 
-              },
152
 
-              "path": {
153
 
-                "type": "string",
154
 
-                "description": "The html file that contains the infobar."
155
 
-              },
156
 
-              "height": {
157
 
-                "type": "integer",
158
 
-                "description": "The height (in pixels) of the infobar to show. If omitted, the default infobar height will be used.",
159
 
-                "optional": true,
160
 
-                "minimum": 0,
161
 
-                "maximum": 72
162
 
-              }
163
 
-            }
164
 
-          },
165
 
-          {
166
 
-            "type": "function",
167
 
-            "name": "callback",
168
 
-            "optional": true,
169
 
-            "parameters": [
170
 
-              {
171
 
-                "name": "window", "$ref": "windows.Window", "description": "Contains details about the window in which the infobar was created."
172
 
-              }
173
 
-            ]
174
 
-          }
175
 
-        ]
176
 
-      }
177
 
-    ]
178
 
-  }
179
 
-]