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": "tabs", | 7 "namespace": "tabs", |
8 "dependencies": [ "extension", "windows" ], | 8 "dependencies": [ "extension", "windows" ], |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
568 "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.", | 568 "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.", |
569 "parameters": [ | 569 "parameters": [ |
570 {"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."}, | 570 {"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."}, |
571 { | 571 { |
572 "type": "object", | 572 "type": "object", |
573 "name": "details", | 573 "name": "details", |
574 "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.", | 574 "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.", |
575 "properties": { | 575 "properties": { |
576 "code": {"type": "string", "optional": true, "description": "JavaS cript code to execute."}, | 576 "code": {"type": "string", "optional": true, "description": "JavaS cript code to execute."}, |
577 "file": {"type": "string", "optional": true, "description": "JavaS cript file to execute."}, | 577 "file": {"type": "string", "optional": true, "description": "JavaS cript file to execute."}, |
578 "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. "} | 578 "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. "}, |
579 "runAt": { | |
580 "type": "string", | |
581 "optional": true, | |
582 "enum": ["document_start", "document_end", "document_idle"], | |
583 "descrption": "The soonest that the script will be injected into the tab. Defaults to \"document_idle\"." | |
Mihai Parparita -not on Chrome
2012/03/30 23:29:55
Typo: descrption.
eaugusti
2012/04/10 02:26:21
Done.
| |
584 } | |
579 } | 585 } |
580 }, | 586 }, |
581 { | 587 { |
582 "type": "function", | 588 "type": "function", |
583 "name": "callback", | 589 "name": "callback", |
584 "optional": true, | 590 "optional": true, |
585 "description": "Called after all the JavaScript has been executed.", | 591 "description": "Called after all the JavaScript has been executed.", |
586 "parameters": [] | 592 "parameters": [] |
587 } | 593 } |
588 ] | 594 ] |
589 }, | 595 }, |
590 { | 596 { |
591 "name": "insertCSS", | 597 "name": "insertCSS", |
592 "type": "function", | 598 "type": "function", |
593 "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.", | 599 "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.", |
594 "parameters": [ | 600 "parameters": [ |
595 {"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."}, | 601 {"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."}, |
596 { | 602 { |
597 "type": "object", | 603 "type": "object", |
598 "name": "details", | 604 "name": "details", |
599 "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.", | 605 "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.", |
600 "properties": { | 606 "properties": { |
601 "code": {"type": "string", "optional": true, "description": "CSS c ode to be injected."}, | 607 "code": {"type": "string", "optional": true, "description": "CSS c ode to be injected."}, |
602 "file": {"type": "string", "optional": true, "description": "CSS f ile to be injected."}, | 608 "file": {"type": "string", "optional": true, "description": "CSS f ile to be injected."}, |
603 "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." } | 609 "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." }, |
610 "runAt": { | |
611 "type": "string", | |
612 "optional": true, | |
613 "enum": ["document_start", "document_end", "document_idle"], | |
614 "descrption": "The soonest that the CSS will be injected into th e tab. Defaults to \"document_idle\"." | |
Mihai Parparita -not on Chrome
2012/03/30 23:29:55
Ditto.
eaugusti
2012/04/10 02:26:21
Done.
| |
615 } | |
604 } | 616 } |
605 }, | 617 }, |
606 { | 618 { |
607 "type": "function", | 619 "type": "function", |
608 "name": "callback", | 620 "name": "callback", |
609 "optional": true, | 621 "optional": true, |
610 "description": "Called when all the CSS has been inserted.", | 622 "description": "Called when all the CSS has been inserted.", |
611 "parameters": [] | 623 "parameters": [] |
612 } | 624 } |
613 ] | 625 ] |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
843 "name": "removeInfo", | 855 "name": "removeInfo", |
844 "properties": { | 856 "properties": { |
845 "isWindowClosing": {"type": "boolean", "description": "True when t he tab is being closed because its window is being closed." } | 857 "isWindowClosing": {"type": "boolean", "description": "True when t he tab is being closed because its window is being closed." } |
846 } | 858 } |
847 } | 859 } |
848 ] | 860 ] |
849 } | 861 } |
850 ] | 862 ] |
851 } | 863 } |
852 ] | 864 ] |
OLD | NEW |