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

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

Issue 518013: Merge 32634 - Make executeScript and insertCSS inject code into all frames.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/249/src/
Patch Set: Created 10 years, 12 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 ] 710 ]
711 }, 711 },
712 { 712 {
713 "name": "executeScript", 713 "name": "executeScript",
714 "type": "function", 714 "type": "function",
715 "description": "", 715 "description": "",
716 "parameters": [ 716 "parameters": [
717 {"type": "integer", "name": "tabId", "optional": true, "description": "The id of tab which run the script, default to selected tab of current window." }, 717 {"type": "integer", "name": "tabId", "optional": true, "description": "The id of tab which run the script, default to selected tab of current window." },
718 { 718 {
719 "type": "object", 719 "type": "object",
720 "name": "scriptDef", 720 "name": "details",
721 "description": "Note:scripts are injected in the following definitio n order.", 721 "description": "Details of the script to run. Either the code or fil e property must be set, but both may not be set at the same time.",
722 "properties": { 722 "properties": {
723 "code": {"type": "string", "optional": true, "description": "JavaS cript code to execute."}, 723 "code": {"type": "string", "optional": true, "description": "JavaS cript code to execute."},
724 "file": {"type": "string", "optional": true, "description": "JavaS cript file to execute."} 724 "file": {"type": "string", "optional": true, "description": "JavaS cript file to execute."},
725 "allFrames": {"type": "boolean", "optional": true, "description": "If allFrames is true, this function injects script into all frames of current p age. By default, it's false and only inject script into top main frame."}
725 }, 726 },
726 "optional": true 727 "optional": true
727 }, 728 },
728 { 729 {
729 "type": "function", 730 "type": "function",
730 "name": "callback", 731 "name": "callback",
731 "optional": true, 732 "optional": true,
732 "description": "When all scripts are executed, this callback is call ed.", 733 "description": "When all scripts are executed, this callback is call ed.",
733 "parameters": [] 734 "parameters": []
734 } 735 }
735 ] 736 ]
736 }, 737 },
737 { 738 {
738 "name": "insertCSS", 739 "name": "insertCSS",
739 "type": "function", 740 "type": "function",
740 "description": "", 741 "description": "",
741 "parameters": [ 742 "parameters": [
742 {"type": "integer", "name": "tabId", "optional": true, "description": "The id of tab which run the script, default to selected tab of current window." }, 743 {"type": "integer", "name": "tabId", "optional": true, "description": "The id of tab which run the script, default to selected tab of current window." },
743 { 744 {
744 "type": "object", 745 "type": "object",
745 "name": "scriptDef", 746 "name": "details",
746 "description": "Note:css are injected in the following definition or der.", 747 "description": "Details of the css text to insert. Either the code o r file property must be set, but both may not be set at the same time.",
747 "properties": { 748 "properties": {
748 "code": {"type": "string", "optional": true, "description": "CSS c ode to be injected."}, 749 "code": {"type": "string", "optional": true, "description": "CSS c ode to be injected."},
749 "file": {"type": "string", "optional": true, "description": "CSS f ile to be injected."} 750 "file": {"type": "string", "optional": true, "description": "CSS f ile to be injected."},
751 "allFrames": {"type": "boolean", "optional": true, "description": "If allFrames is true, this function injects css text into all frames of current page. By default, it's false and only inject css text into top main frame."}
750 }, 752 },
751 "optional": true 753 "optional": true
752 }, 754 },
753 { 755 {
754 "type": "function", 756 "type": "function",
755 "name": "callback", 757 "name": "callback",
756 "optional": true, 758 "optional": true,
757 "description": "When all css are inserted, this callback is called." , 759 "description": "When all css are inserted, this callback is called." ,
758 "parameters": [] 760 "parameters": []
759 } 761 }
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1753 "type": "function", 1755 "type": "function",
1754 "description": "Logs a message during internal unit testing.", 1756 "description": "Logs a message during internal unit testing.",
1755 "parameters": [ 1757 "parameters": [
1756 {"type": "string", "name": "message"} 1758 {"type": "string", "name": "message"}
1757 ] 1759 ]
1758 } 1760 }
1759 ], 1761 ],
1760 "events": [] 1762 "events": []
1761 } 1763 }
1762 ] 1764 ]
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698