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

« back to all changes in this revision

Viewing changes to chromium-patches/stable-28.0.1500.45/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 205727)
4
 
+++ src/chrome/browser/infobars/infobar_extension_api.h (working copy)
5
 
@@ -10,7 +10,7 @@
6
 
 class InfobarsShowFunction : public SyncExtensionFunction {
7
 
   virtual ~InfobarsShowFunction() {}
8
 
   virtual bool RunImpl() OVERRIDE;
9
 
-  DECLARE_EXTENSION_FUNCTION("experimental.infobars.show",
10
 
+  DECLARE_EXTENSION_FUNCTION("infobars.show",
11
 
                              EXPERIMENTAL_INFOBARS_SHOW)
12
 
 };
13
 
 
14
 
Index: src/chrome/common/extensions/api/api.gyp
15
 
===================================================================
16
 
--- src/chrome/common/extensions/api/api.gyp    (revision 205727)
17
 
+++ src/chrome/common/extensions/api/api.gyp    (working copy)
18
 
@@ -48,7 +48,6 @@
19
 
           'experimental_history.json',
20
 
           'experimental_identity.idl',
21
 
           'experimental_idltest.idl',
22
 
-          'experimental_infobars.json',
23
 
           'location.idl',
24
 
           'experimental_media_galleries.idl',
25
 
           'experimental_record.json',
26
 
@@ -63,6 +62,7 @@
27
 
           'i18n.json',
28
 
           'identity.idl',
29
 
           'idle.json',
30
 
+          'infobars.json',
31
 
           'managed_mode_private.json',
32
 
           'management.json',
33
 
           'manifest_types.json',
34
 
Index: src/chrome/common/extensions/api/experimental_infobars.json
35
 
===================================================================
36
 
--- src/chrome/common/extensions/api/experimental_infobars.json (revision 205727)
37
 
+++ src/chrome/common/extensions/api/experimental_infobars.json (working copy)
38
 
@@ -1,53 +0,0 @@
39
 
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
40
 
-// Use of this source code is governed by a BSD-style license that can be
41
 
-// found in the LICENSE file.
42
 
-
43
 
-[
44
 
-  {
45
 
-    "namespace": "experimental.infobars",
46
 
-    "compiler_options": {
47
 
-      "implemented_in": "chrome/browser/infobars/infobar_extension_api.h"
48
 
-    },
49
 
-    "types": [],
50
 
-    "functions": [
51
 
-      {
52
 
-        "name": "show",
53
 
-        "type": "function",
54
 
-        "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.",
55
 
-        "parameters": [
56
 
-          {
57
 
-            "name": "details",
58
 
-            "type": "object",
59
 
-            "properties": {
60
 
-              "tabId": {
61
 
-                "type": "integer",
62
 
-                "description": "The tab id for the tab to display the infobar in."
63
 
-              },
64
 
-              "path": {
65
 
-                "type": "string",
66
 
-                "description": "The html file that contains the infobar."
67
 
-              },
68
 
-              "height": {
69
 
-                "type": "integer",
70
 
-                "description": "The height (in pixels) of the infobar to show. If omitted, the default infobar height will be used.",
71
 
-                "optional": true,
72
 
-                "minimum": 0,
73
 
-                "maximum": 72
74
 
-              }
75
 
-            }
76
 
-          },
77
 
-          {
78
 
-            "type": "function",
79
 
-            "name": "callback",
80
 
-            "optional": true,
81
 
-            "parameters": [
82
 
-              {
83
 
-                "name": "window", "$ref": "windows.Window", "description": "Contains details about the window in which the infobar was created."
84
 
-              }
85
 
-            ]
86
 
-          }
87
 
-        ]
88
 
-      }
89
 
-    ]
90
 
-  }
91
 
-]
92
 
Index: src/chrome/common/extensions/api/infobars.json
93
 
===================================================================
94
 
--- src/chrome/common/extensions/api/infobars.json      (revision 0)
95
 
+++ src/chrome/common/extensions/api/infobars.json      (working copy)
96
 
@@ -0,0 +1,53 @@
97
 
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
98
 
+// Use of this source code is governed by a BSD-style license that can be
99
 
+// found in the LICENSE file.
100
 
+
101
 
+[
102
 
+  {
103
 
+    "namespace": "infobars",
104
 
+    "compiler_options": {
105
 
+      "implemented_in": "chrome/browser/infobars/infobar_extension_api.h"
106
 
+    },
107
 
+    "types": [],
108
 
+    "functions": [
109
 
+      {
110
 
+        "name": "show",
111
 
+        "type": "function",
112
 
+        "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.",
113
 
+        "parameters": [
114
 
+          {
115
 
+            "name": "details",
116
 
+            "type": "object",
117
 
+            "properties": {
118
 
+              "tabId": {
119
 
+                "type": "integer",
120
 
+                "description": "The tab id for the tab to display the infobar in."
121
 
+              },
122
 
+              "path": {
123
 
+                "type": "string",
124
 
+                "description": "The html file that contains the infobar."
125
 
+              },
126
 
+              "height": {
127
 
+                "type": "integer",
128
 
+                "description": "The height (in pixels) of the infobar to show. If omitted, the default infobar height will be used.",
129
 
+                "optional": true,
130
 
+                "minimum": 0,
131
 
+                "maximum": 72
132
 
+              }
133
 
+            }
134
 
+          },
135
 
+          {
136
 
+            "type": "function",
137
 
+            "name": "callback",
138
 
+            "optional": true,
139
 
+            "parameters": [
140
 
+              {
141
 
+                "name": "window", "$ref": "windows.Window", "description": "Contains details about the window in which the infobar was created."
142
 
+              }
143
 
+            ]
144
 
+          }
145
 
+        ]
146
 
+      }
147
 
+    ]
148
 
+  }
149
 
+]
150
 
Index: src/chrome/common/extensions/permissions/permission_set.cc
151
 
===================================================================
152
 
--- src/chrome/common/extensions/permissions/permission_set.cc  (revision 205727)
153
 
+++ src/chrome/common/extensions/permissions/permission_set.cc  (working copy)
154
 
@@ -44,6 +44,7 @@
155
 
   "events",
156
 
   "extension",
157
 
   "i18n",
158
 
+  "infobars",
159
 
   "omnibox",
160
 
   "pageAction",
161
 
   "pageActions",