Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: chrome/common/extensions/api/extension_api.json

Issue 545068: Allow extensions to add, remove, or change their page action popup. (Closed)
Patch Set: Rebase, to run trybots with test data in place. Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "unprivileged": true, 4 "unprivileged": true,
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "MessageSender", 7 "id": "MessageSender",
8 "type": "object", 8 "type": "object",
9 "description": "An object containing information about the script contex t that sent a message or request.", 9 "description": "An object containing information about the script contex t that sent a message or request.",
10 "properties": { 10 "properties": {
(...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 }, 995 },
996 "iconIndex": { 996 "iconIndex": {
997 "type": "integer", 997 "type": "integer",
998 "minimum": 0, 998 "minimum": 0,
999 "description": "<b>Deprecated.</b> The zero-based index into the <b>icons</b> vector specified in the manifest.", 999 "description": "<b>Deprecated.</b> The zero-based index into the <b>icons</b> vector specified in the manifest.",
1000 "optional": true 1000 "optional": true
1001 } 1001 }
1002 } 1002 }
1003 } 1003 }
1004 ] 1004 ]
1005 },
1006 {
1007 "name": "setPopup",
1008 "type": "function",
1009 "description": "Sets the html document to be opened as a popup when the user clicks on the page action's icon.",
1010 "parameters": [
1011 {
1012 "name": "details",
1013 "type": "object",
1014 "properties": {
1015 "tabId": {"type": "integer", "minimum": 0, "description": "The id of the tab for which you want to modify the page action."},
1016 "popup": {
1017 "type": "string",
1018 "description": "The html file to show in a popup. If set to the empty string (''), no popup is shown."
1019 }
1020 }
1021 }
1022 ]
1005 } 1023 }
1006 ], 1024 ],
1007 "events": [ 1025 "events": [
1008 { 1026 {
1009 "name": "onClicked", 1027 "name": "onClicked",
1010 "type": "function", 1028 "type": "function",
1011 "description": "Fired when a page action icon is clicked.", 1029 "description": "Fired when a page action icon is clicked if the page act ion doesn't show a popup.",
1012 "parameters": [ 1030 "parameters": [
1013 { 1031 {
1014 "name": "tab", 1032 "name": "tab",
1015 "$ref": "Tab" 1033 "$ref": "Tab"
1016 } 1034 }
1017 ] 1035 ]
1018 } 1036 }
1019 ] 1037 ]
1020 }, 1038 },
1021 { 1039 {
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
1851 "type": "function", 1869 "type": "function",
1852 "description": "Logs a message during internal unit testing.", 1870 "description": "Logs a message during internal unit testing.",
1853 "parameters": [ 1871 "parameters": [
1854 {"type": "string", "name": "message"} 1872 {"type": "string", "name": "message"}
1855 ] 1873 ]
1856 } 1874 }
1857 ], 1875 ],
1858 "events": [] 1876 "events": []
1859 } 1877 }
1860 ] 1878 ]
OLDNEW
« no previous file with comments | « chrome/browser/extensions/page_action_apitest.cc ('k') | chrome/common/extensions/docs/pageAction.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698