OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [ | 5 [ |
6 { | 6 { |
7 "namespace": "pageAction", | 7 "namespace": "pageAction", |
8 "dependencies": [ "tabs" ], | 8 "dependencies": [ "tabs" ], |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 "properties": { | 43 "properties": { |
44 "tabId": {"type": "integer", "minimum": 0, "description": "The id
of the tab for which you want to modify the page action."}, | 44 "tabId": {"type": "integer", "minimum": 0, "description": "The id
of the tab for which you want to modify the page action."}, |
45 "title": {"type": "string", "description": "The tooltip string."} | 45 "title": {"type": "string", "description": "The tooltip string."} |
46 } | 46 } |
47 } | 47 } |
48 ] | 48 ] |
49 }, | 49 }, |
50 { | 50 { |
51 "name": "getTitle", | 51 "name": "getTitle", |
52 "type": "function", | 52 "type": "function", |
53 "description": "Gets the title of the browser action.", | 53 "description": "Gets the title of the page action.", |
54 "parameters": [ | 54 "parameters": [ |
55 { | 55 { |
56 "name": "details", | 56 "name": "details", |
57 "type": "object", | 57 "type": "object", |
58 "properties": { | 58 "properties": { |
59 "tabId": { | 59 "tabId": { |
60 "type": "integer", | 60 "type": "integer", |
61 "description": "Specify the tab to get the title from." | 61 "description": "Specify the tab to get the title from." |
62 } | 62 } |
63 } | 63 } |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 "type": "string", | 142 "type": "string", |
143 "description": "The html file to show in a popup. If set to the
empty string (''), no popup is shown." | 143 "description": "The html file to show in a popup. If set to the
empty string (''), no popup is shown." |
144 } | 144 } |
145 } | 145 } |
146 } | 146 } |
147 ] | 147 ] |
148 }, | 148 }, |
149 { | 149 { |
150 "name": "getPopup", | 150 "name": "getPopup", |
151 "type": "function", | 151 "type": "function", |
152 "description": "Gets the html document set as the popup for this browser
action.", | 152 "description": "Gets the html document set as the popup for this page ac
tion.", |
153 "parameters": [ | 153 "parameters": [ |
154 { | 154 { |
155 "name": "details", | 155 "name": "details", |
156 "type": "object", | 156 "type": "object", |
157 "properties": { | 157 "properties": { |
158 "tabId": { | 158 "tabId": { |
159 "type": "integer", | 159 "type": "integer", |
160 "description": "Specify the tab to get the popup from." | 160 "description": "Specify the tab to get the popup from." |
161 } | 161 } |
162 } | 162 } |
(...skipping 19 matching lines...) Expand all Loading... |
182 "parameters": [ | 182 "parameters": [ |
183 { | 183 { |
184 "name": "tab", | 184 "name": "tab", |
185 "$ref": "tabs.Tab" | 185 "$ref": "tabs.Tab" |
186 } | 186 } |
187 ] | 187 ] |
188 } | 188 } |
189 ] | 189 ] |
190 } | 190 } |
191 ] | 191 ] |
OLD | NEW |