~justinmcp/unity-chromium-extension/native-messaging-base

« back to all changes in this revision

Viewing changes to chromium-patches/stable-25.0.1364/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/common/extensions_api_resources.grd
2
 
===================================================================
3
 
--- src/chrome/common/extensions_api_resources.grd      (revision 179520)
4
 
+++ src/chrome/common/extensions_api_resources.grd      (working copy)
5
 
@@ -28,7 +28,6 @@
6
 
       <include name="IDR_EXTENSION_API_JSON_EXPERIMENTAL_ACCESSIBILITY" file="extensions\api\experimental_accessibility.json" type="BINDATA" />
7
 
       <include name="IDR_EXTENSION_API_JSON_EXPERIMENTAL_APP" file="extensions\api\experimental_app.json" type="BINDATA" />
8
 
       <include name="IDR_EXTENSION_API_JSON_EXPERIMENTAL_HISTORY" file="extensions\api\experimental_history.json" type="BINDATA" />
9
 
-      <include name="IDR_EXTENSION_API_JSON_EXPERIMENTAL_INFOBARS" file="extensions\api\experimental_infobars.json" type="BINDATA" />
10
 
       <include name="IDR_EXTENSION_API_JSON_EXPERIMENTAL_INPUT_VIRTUALKEYBOARD" file="extensions\api\experimental_input_virtual_keyboard.json" type="BINDATA" />
11
 
       <include name="IDR_EXTENSION_API_JSON_EXPERIMENTAL_POWER" file="extensions\api\experimental_power.json" type="BINDATA" />
12
 
       <include name="IDR_EXTENSION_API_JSON_EXPERIMENTAL_PROCESSES" file="extensions\api\experimental_processes.json" type="BINDATA" />
13
 
@@ -44,6 +43,7 @@
14
 
       <include name="IDR_EXTENSION_API_JSON_I18N" file="extensions\api\i18n.json" type="BINDATA" />
15
 
       <include name="IDR_EXTENSION_API_JSON_INPUT_IME" file="extensions\api\input_ime.json" type="BINDATA" />
16
 
       <include name="IDR_EXTENSION_API_JSON_IDLE" file="extensions\api\idle.json" type="BINDATA" />
17
 
+      <include name="IDR_EXTENSION_API_JSON_INFOBARS" file="extensions\api\infobars.json" type="BINDATA" />
18
 
       <include name="IDR_EXTENSION_API_JSON_INPUTMETHODPRIVATE" file="extensions\api\input_method_private.json" type="BINDATA" />
19
 
       <include name="IDR_EXTENSION_API_JSON_MANAGEDMODEPRIVATE" file="extensions\api\managed_mode_private.json" type="BINDATA" />
20
 
       <include name="IDR_EXTENSION_API_JSON_MANAGEMENT" file="extensions\api\management.json" type="BINDATA" />
21
 
Index: src/chrome/common/extensions/api/extension_api.cc
22
 
===================================================================
23
 
--- src/chrome/common/extensions/api/extension_api.cc   (revision 179520)
24
 
+++ src/chrome/common/extensions/api/extension_api.cc   (working copy)
25
 
@@ -378,8 +378,6 @@
26
 
       IDR_EXTENSION_API_JSON_EXPERIMENTAL_APP));
27
 
   RegisterSchema("experimental.history", ReadFromResource(
28
 
       IDR_EXTENSION_API_JSON_EXPERIMENTAL_HISTORY));
29
 
-  RegisterSchema("experimental.infobars", ReadFromResource(
30
 
-      IDR_EXTENSION_API_JSON_EXPERIMENTAL_INFOBARS));
31
 
   RegisterSchema("experimental.input.virtualKeyboard", ReadFromResource(
32
 
       IDR_EXTENSION_API_JSON_EXPERIMENTAL_INPUT_VIRTUALKEYBOARD));
33
 
   RegisterSchema("experimental.power", ReadFromResource(
34
 
@@ -410,6 +408,8 @@
35
 
       IDR_EXTENSION_API_JSON_I18N));
36
 
   RegisterSchema("idle", ReadFromResource(
37
 
       IDR_EXTENSION_API_JSON_IDLE));
38
 
+  RegisterSchema("infobars", ReadFromResource(
39
 
+      IDR_EXTENSION_API_JSON_INFOBARS));
40
 
   RegisterSchema("input.ime", ReadFromResource(
41
 
       IDR_EXTENSION_API_JSON_INPUT_IME));
42
 
   RegisterSchema("inputMethodPrivate", ReadFromResource(
43
 
Index: src/chrome/common/extensions/api/experimental_infobars.json
44
 
===================================================================
45
 
--- src/chrome/common/extensions/api/experimental_infobars.json (revision 179520)
46
 
+++ src/chrome/common/extensions/api/experimental_infobars.json (working copy)
47
 
@@ -1,51 +0,0 @@
48
 
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
49
 
-// Use of this source code is governed by a BSD-style license that can be
50
 
-// found in the LICENSE file.
51
 
-
52
 
-[
53
 
-  {
54
 
-    "namespace": "experimental.infobars",
55
 
-    "dependencies": [ "windows" ],
56
 
-    "types": [],
57
 
-    "functions": [
58
 
-      {
59
 
-        "name": "show",
60
 
-        "type": "function",
61
 
-        "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.",
62
 
-        "parameters": [
63
 
-          {
64
 
-            "name": "details",
65
 
-            "type": "object",
66
 
-            "properties": {
67
 
-              "tabId": {
68
 
-                "type": "integer",
69
 
-                "description": "The tab id for the tab to display the infobar in."
70
 
-              },
71
 
-              "path": {
72
 
-                "type": "string",
73
 
-                "description": "The html file that contains the infobar."
74
 
-              },
75
 
-              "height": {
76
 
-                "type": "integer",
77
 
-                "description": "The height (in pixels) of the infobar to show. If omitted, the default infobar height will be used.",
78
 
-                "optional": true,
79
 
-                "minimum": 0,
80
 
-                "maximum": 72
81
 
-              }
82
 
-            }
83
 
-          },
84
 
-          {
85
 
-            "type": "function",
86
 
-            "name": "callback",
87
 
-            "optional": true,
88
 
-            "parameters": [
89
 
-              {
90
 
-                "name": "window", "$ref": "windows.Window", "description": "Contains details about the window in which the infobar was created."
91
 
-              }
92
 
-            ]
93
 
-          }
94
 
-        ]
95
 
-      }
96
 
-    ]
97
 
-  }
98
 
-]
99
 
Index: src/chrome/common/extensions/permissions/permission_set.cc
100
 
===================================================================
101
 
--- src/chrome/common/extensions/permissions/permission_set.cc  (revision 179520)
102
 
+++ src/chrome/common/extensions/permissions/permission_set.cc  (working copy)
103
 
@@ -43,6 +43,7 @@
104
 
   "events",
105
 
   "extension",
106
 
   "i18n",
107
 
+  "infobars",
108
 
   "omnibox",
109
 
   "pageAction",
110
 
   "pageActions",
111
 
Index: src/chrome/browser/infobars/infobar_extension_api.h
112
 
===================================================================
113
 
--- src/chrome/browser/infobars/infobar_extension_api.h (revision 179520)
114
 
+++ src/chrome/browser/infobars/infobar_extension_api.h (working copy)
115
 
@@ -10,7 +10,7 @@
116
 
 class ShowInfoBarFunction : public SyncExtensionFunction {
117
 
   virtual ~ShowInfoBarFunction() {}
118
 
   virtual bool RunImpl() OVERRIDE;
119
 
-  DECLARE_EXTENSION_FUNCTION_NAME("experimental.infobars.show")
120
 
+  DECLARE_EXTENSION_FUNCTION_NAME("infobars.show")
121
 
 };
122
 
 
123
 
 #endif  // CHROME_BROWSER_INFOBARS_INFOBAR_EXTENSION_API_H_
124
 
Index: src/chrome/common/extensions/api/infobars.json
125
 
===================================================================
126
 
--- src/chrome/common/extensions/api/infobars.json      (revision 0)
127
 
+++ src/chrome/common/extensions/api/infobars.json      (working copy)
128
 
@@ -0,0 +1,51 @@
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": "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
 
+]