Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 [ | 1 [ |
| 2 { | 2 { |
| 3 "namespace": "tabs", | 3 "namespace": "tabs", |
| 4 "dependencies": [ "extension", "windows" ], | 4 "dependencies": [ "extension", "windows" ], |
| 5 "types": [ | 5 "types": [ |
| 6 { | 6 { |
| 7 "id": "Tab", | 7 "id": "Tab", |
| 8 "type": "object", | 8 "type": "object", |
| 9 "properties": { | 9 "properties": { |
| 10 "id": {"type": "integer", "minimum": 0, "description": "The ID of the tab. Tab IDs are unique within a browser session."}, | 10 "id": {"type": "integer", "minimum": 0, "description": "The ID of the tab. Tab IDs are unique within a browser session."}, |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 555 "description": "Injects JavaScript code into a page. For details, see th e <a href='content_scripts.html#pi'>programmatic injection</a> section of the co ntent scripts doc.", | 555 "description": "Injects JavaScript code into a page. For details, see th e <a href='content_scripts.html#pi'>programmatic injection</a> section of the co ntent scripts doc.", |
| 556 "parameters": [ | 556 "parameters": [ |
| 557 {"type": "integer", "name": "tabId", "optional": true, "description": "The ID of the tab in which to run the script; defaults to the active tab of the current window."}, | 557 {"type": "integer", "name": "tabId", "optional": true, "description": "The ID of the tab in which to run the script; defaults to the active tab of the current window."}, |
| 558 { | 558 { |
| 559 "type": "object", | 559 "type": "object", |
| 560 "name": "details", | 560 "name": "details", |
| 561 "description": "Details of the script to run. Either the code or the file property must be set, but both may not be set at the same time.", | 561 "description": "Details of the script to run. Either the code or the file property must be set, but both may not be set at the same time.", |
| 562 "properties": { | 562 "properties": { |
| 563 "code": {"type": "string", "optional": true, "description": "JavaS cript code to execute."}, | 563 "code": {"type": "string", "optional": true, "description": "JavaS cript code to execute."}, |
| 564 "file": {"type": "string", "optional": true, "description": "JavaS cript file to execute."}, | 564 "file": {"type": "string", "optional": true, "description": "JavaS cript file to execute."}, |
| 565 "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 script is injected only into the top main frame. "} | 565 "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 script is injected only into the top main frame. "}, |
| 566 "runAt": { | |
| 567 "type": "string", | |
| 568 "optional": true, | |
| 569 "enum": ["now", "document_start", "document_end", "document_idle "], | |
| 570 "descrption": "The soonest that the script will be injected into the tab. Defaults to \"document_idle\"" | |
|
Aaron Boodman
2012/03/03 00:59:10
Add a period to the end of this sentence. Same bel
eaugusti
2012/03/27 00:43:33
Done.
| |
| 571 } | |
| 566 } | 572 } |
| 567 }, | 573 }, |
| 568 { | 574 { |
| 569 "type": "function", | 575 "type": "function", |
| 570 "name": "callback", | 576 "name": "callback", |
| 571 "optional": true, | 577 "optional": true, |
| 572 "description": "Called after all the JavaScript has been executed.", | 578 "description": "Called after all the JavaScript has been executed.", |
| 573 "parameters": [] | 579 "parameters": [] |
| 574 } | 580 } |
| 575 ] | 581 ] |
| 576 }, | 582 }, |
| 577 { | 583 { |
| 578 "name": "insertCSS", | 584 "name": "insertCSS", |
| 579 "type": "function", | 585 "type": "function", |
| 580 "description": "Injects CSS into a page. For details, see the <a href='c ontent_scripts.html#pi'>programmatic injection</a> section of the content script s doc.", | 586 "description": "Injects CSS into a page. For details, see the <a href='c ontent_scripts.html#pi'>programmatic injection</a> section of the content script s doc.", |
| 581 "parameters": [ | 587 "parameters": [ |
| 582 {"type": "integer", "name": "tabId", "optional": true, "description": "The ID of the tab in which to insert the CSS; defaults to the active tab of the current window."}, | 588 {"type": "integer", "name": "tabId", "optional": true, "description": "The ID of the tab in which to insert the CSS; defaults to the active tab of the current window."}, |
| 583 { | 589 { |
| 584 "type": "object", | 590 "type": "object", |
| 585 "name": "details", | 591 "name": "details", |
| 586 "description": "Details of the CSS text to insert. Either the code o r the file property must be set, but both may not be set at the same time.", | 592 "description": "Details of the CSS text to insert. Either the code o r the file property must be set, but both may not be set at the same time.", |
| 587 "properties": { | 593 "properties": { |
| 588 "code": {"type": "string", "optional": true, "description": "CSS c ode to be injected."}, | 594 "code": {"type": "string", "optional": true, "description": "CSS c ode to be injected."}, |
| 589 "file": {"type": "string", "optional": true, "description": "CSS f ile to be injected."}, | 595 "file": {"type": "string", "optional": true, "description": "CSS f ile to be injected."}, |
| 590 "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 CSS is injected only into the top main frame." } | 596 "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 CSS is injected only into the top main frame." }, |
| 597 "runAt": { | |
| 598 "type": "string", | |
| 599 "optional": true, | |
| 600 "enum": ["now", "document_start", "document_end", "document_idle "], | |
| 601 "descrption": "The soonest that the CSS will be injected into th e tab. Defaults to \"document_idle\"" | |
| 602 } | |
| 591 } | 603 } |
| 592 }, | 604 }, |
| 593 { | 605 { |
| 594 "type": "function", | 606 "type": "function", |
| 595 "name": "callback", | 607 "name": "callback", |
| 596 "optional": true, | 608 "optional": true, |
| 597 "description": "Called when all the CSS has been inserted.", | 609 "description": "Called when all the CSS has been inserted.", |
| 598 "parameters": [] | 610 "parameters": [] |
| 599 } | 611 } |
| 600 ] | 612 ] |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 830 "name": "removeInfo", | 842 "name": "removeInfo", |
| 831 "properties": { | 843 "properties": { |
| 832 "isWindowClosing": {"type": "boolean", "description": "True when t he tab is being closed because its window is being closed." } | 844 "isWindowClosing": {"type": "boolean", "description": "True when t he tab is being closed because its window is being closed." } |
| 833 } | 845 } |
| 834 } | 846 } |
| 835 ] | 847 ] |
| 836 } | 848 } |
| 837 ] | 849 ] |
| 838 } | 850 } |
| 839 ] | 851 ] |
| OLD | NEW |