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": "pageActions", | 7 "namespace": "pageActions", |
8 "nodoc": true, | 8 "description": "none", |
9 "maximumManifestVersion": 1, | 9 "maximumManifestVersion": 1, |
10 "types": [], | |
11 "functions": [ | 10 "functions": [ |
12 { | 11 { |
13 "name": "enableForTab", | 12 "name": "enableForTab", |
14 "type": "function", | 13 "type": "function", |
15 "description": "Enables a page action for a particular tab+URL combinati
on (makes its icon visible in the OmniBox when a certain URL is active in a give
n tab). The page action will automatically be disabled (its icon hidden) if the
user navigates to a new URL or closes the tab. The action will also automaticall
y be enabled/disabled as the user switches tabs.", | 14 "description": "Enables a page action for a particular tab+URL combinati
on (makes its icon visible in the OmniBox when a certain URL is active in a give
n tab). The page action will automatically be disabled (its icon hidden) if the
user navigates to a new URL or closes the tab. The action will also automaticall
y be enabled/disabled as the user switches tabs.", |
16 "parameters": [ | 15 "parameters": [ |
17 {"type": "string", "name": "pageActionId", "description": "An extensio
n can have multiple page actions specified in the manifest, each with a unique i
dentifier. This string identifies which page action you want to enable (and must
match a page action id declared in the manifest)."}, | 16 {"type": "string", "name": "pageActionId", "description": "An extensio
n can have multiple page actions specified in the manifest, each with a unique i
dentifier. This string identifies which page action you want to enable (and must
match a page action id declared in the manifest)."}, |
18 { | 17 { |
19 "type": "object", | 18 "type": "object", |
20 "name": "action", | 19 "name": "action", |
(...skipping 23 matching lines...) Expand all Loading... |
44 "url": {"type": "string", "description": "The URL of the page you
want the page action to not apply to. If the URL specified does not match the cu
rrently navigated URL (user has navigated to another page) then no action is tak
en."} | 43 "url": {"type": "string", "description": "The URL of the page you
want the page action to not apply to. If the URL specified does not match the cu
rrently navigated URL (user has navigated to another page) then no action is tak
en."} |
45 }, | 44 }, |
46 "optional": false | 45 "optional": false |
47 } | 46 } |
48 ] | 47 ] |
49 } | 48 } |
50 ], | 49 ], |
51 "events": [] | 50 "events": [] |
52 } | 51 } |
53 ] | 52 ] |
OLD | NEW |