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

Side by Side Diff: chrome/common/extensions/docs/extensions/tabs.html

Issue 10815028: Make ActiveTabPermissionManager also grant the tabs permission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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
OLDNEW
1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc. Note: 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc. Note:
2 1) The <head> information in this page is significant, should be uniform 2 1) The <head> information in this page is significant, should be uniform
3 across api docs and should be edited only with knowledge of the 3 across api docs and should be edited only with knowledge of the
4 templating mechanism. 4 templating mechanism.
5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a 5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a
6 browser, it will be re-generated from the template, json schema and 6 browser, it will be re-generated from the template, json schema and
7 authored overview content. 7 authored overview content.
8 4) The <body>.innerHTML is also generated by an offline step so that this 8 4) The <body>.innerHTML is also generated by an offline step so that this
9 page may easily be indexed by search engines. 9 page may easily be indexed by search engines.
10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head>
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 </li> 262 </li>
263 </ol> 263 </ol>
264 </li> 264 </li>
265 <li> 265 <li>
266 <a href="#types">Types</a> 266 <a href="#types">Types</a>
267 <ol> 267 <ol>
268 <li> 268 <li>
269 <a href="#type-tabs.Tab">Tab</a> 269 <a href="#type-tabs.Tab">Tab</a>
270 <ol> 270 <ol>
271 </ol> 271 </ol>
272 </li><li>
273 <a href="#type-tabs.InjectDetails">InjectDetails</a>
274 <ol>
275 </ol>
272 </li> 276 </li>
273 </ol> 277 </ol>
274 </li> 278 </li>
275 </ol> 279 </ol>
276 </li> 280 </li>
277 </ol> 281 </ol>
278 </div> 282 </div>
279 <!-- /TABLE OF CONTENTS --> 283 <!-- /TABLE OF CONTENTS -->
280 <!-- Standard content lead-in for experimental API pages --> 284 <!-- Standard content lead-in for experimental API pages -->
281 <!-- STATIC CONTENT PLACEHOLDER --> 285 <!-- STATIC CONTENT PLACEHOLDER -->
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 </div> 1011 </div>
1008 </div> 1012 </div>
1009 <!-- MIN_VERSION --> 1013 <!-- MIN_VERSION -->
1010 </div> <!-- /description --> 1014 </div> <!-- /description -->
1011 </div><div class="apiItem"> 1015 </div><div class="apiItem">
1012 <a name="method-executeScript"></a> <!-- method-anchor --> 1016 <a name="method-executeScript"></a> <!-- method-anchor -->
1013 <h4>executeScript</h4> 1017 <h4>executeScript</h4>
1014 <div class="summary"> 1018 <div class="summary">
1015 <!-- Note: intentionally longer 80 columns --> 1019 <!-- Note: intentionally longer 80 columns -->
1016 <span>chrome.tabs.executeScript</span>(<span class="optional"> <span>integer</span> 1020 <span>chrome.tabs.executeScript</span>(<span class="optional"> <span>integer</span>
1017 <var><span>tabId</span></var></span><span class="null"><sp an>, </span><span>object</span> 1021 <var><span>tabId</span></var></span><span class="null"><sp an>, </span><span>tabs.InjectDetails</span>
1018 <var><span>details</span></var></span><span class="optiona l"><span>, </span><span>function</span> 1022 <var><span>details</span></var></span><span class="optiona l"><span>, </span><span>function</span>
1019 <var><span>callback</span></var></span>)</div> 1023 <var><span>callback</span></var></span>)</div>
1020 <div class="description"> 1024 <div class="description">
1021 <p>Injects JavaScript code into a page. For details, see the <a href="content_scripts.html#pi">programmatic injection</a> section of the content scripts doc.</p> 1025 <p>Injects JavaScript code into a page. For details, see the <a href="content_scripts.html#pi">programmatic injection</a> section of the content scripts doc.</p>
1022 <!-- PARAMETERS --> 1026 <!-- PARAMETERS -->
1023 <h4>Parameters</h4> 1027 <h4>Parameters</h4>
1024 <dl> 1028 <dl>
1025 <div> 1029 <div>
1026 <div> 1030 <div>
1027 <dt> 1031 <dt>
(...skipping 21 matching lines...) Expand all
1049 </div><div> 1053 </div><div>
1050 <div> 1054 <div>
1051 <dt> 1055 <dt>
1052 <var>details</var> 1056 <var>details</var>
1053 <em> 1057 <em>
1054 <!-- TYPE --> 1058 <!-- TYPE -->
1055 <div style="display:inline"> 1059 <div style="display:inline">
1056 ( 1060 (
1057 <span id="typeTemplate"> 1061 <span id="typeTemplate">
1058 <span> 1062 <span>
1059 <span>object</span> 1063 <a href="tabs.html#type-tabs.InjectDetails">tabs.InjectD etails</a>
1060 </span> 1064 </span>
1061 </span> 1065 </span>
1062 ) 1066 )
1063 </div> 1067 </div>
1064 </em> 1068 </em>
1065 </dt> 1069 </dt>
1066 <dd>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.</dd> 1070 <dd>Details of the script to run.</dd>
1067 <!-- OBJECT PROPERTIES --> 1071 <!-- OBJECT PROPERTIES -->
1068 <dd>
1069 <dl>
1070 <div>
1071 <div>
1072 <dt>
1073 <var>code</var>
1074 <em>
1075 <!-- TYPE -->
1076 <div style="display:inline">
1077 (
1078 <span class="optional">optional</span>
1079 <span id="typeTemplate">
1080 <span>
1081 <span>string</span>
1082 </span>
1083 </span>
1084 )
1085 </div>
1086 </em>
1087 </dt>
1088 <dd>JavaScript code to execute.</dd>
1089 <!-- OBJECT PROPERTIES -->
1090 <!-- OBJECT METHODS -->
1091 <!-- OBJECT EVENT FIELDS -->
1092 <!-- FUNCTION PARAMETERS -->
1093 </div>
1094 </div><div>
1095 <div>
1096 <dt>
1097 <var>file</var>
1098 <em>
1099 <!-- TYPE -->
1100 <div style="display:inline">
1101 (
1102 <span class="optional">optional</span>
1103 <span id="typeTemplate">
1104 <span>
1105 <span>string</span>
1106 </span>
1107 </span>
1108 )
1109 </div>
1110 </em>
1111 </dt>
1112 <dd>JavaScript file to execute.</dd>
1113 <!-- OBJECT PROPERTIES -->
1114 <!-- OBJECT METHODS -->
1115 <!-- OBJECT EVENT FIELDS -->
1116 <!-- FUNCTION PARAMETERS -->
1117 </div>
1118 </div><div>
1119 <div>
1120 <dt>
1121 <var>allFrames</var>
1122 <em>
1123 <!-- TYPE -->
1124 <div style="display:inline">
1125 (
1126 <span class="optional">optional</span>
1127 <span id="typeTemplate">
1128 <span>
1129 <span>boolean</span>
1130 </span>
1131 </span>
1132 )
1133 </div>
1134 </em>
1135 </dt>
1136 <dd>If allFrames is true, this function injects script into all frames of current page. By default, it's false and script is injected only into the to p main frame.</dd>
1137 <!-- OBJECT PROPERTIES -->
1138 <!-- OBJECT METHODS -->
1139 <!-- OBJECT EVENT FIELDS -->
1140 <!-- FUNCTION PARAMETERS -->
1141 </div>
1142 </div><div>
1143 <div>
1144 <dt>
1145 <var>runAt</var>
1146 <em>
1147 <!-- TYPE -->
1148 <div style="display:inline">
1149 (
1150 <span class="optional">optional</span>
1151 <span class="enum">enumerated</span>
1152 <span id="typeTemplate">
1153 <span>
1154 <span>string</span>
1155 <span>["document_start", "document_end", "document_idle" ]</span>
1156 </span>
1157 </span>
1158 )
1159 </div>
1160 </em>
1161 </dt>
1162 <dd>The soonest that the script will be injected into the tab. Default s to "document_idle".</dd>
1163 <!-- OBJECT PROPERTIES -->
1164 <!-- OBJECT METHODS -->
1165 <!-- OBJECT EVENT FIELDS -->
1166 <!-- FUNCTION PARAMETERS -->
1167 </div>
1168 </div>
1169 </dl>
1170 </dd>
1171 <!-- OBJECT METHODS --> 1072 <!-- OBJECT METHODS -->
1172 <!-- OBJECT EVENT FIELDS --> 1073 <!-- OBJECT EVENT FIELDS -->
1173 <!-- FUNCTION PARAMETERS --> 1074 <!-- FUNCTION PARAMETERS -->
1174 </div> 1075 </div>
1175 </div><div> 1076 </div><div>
1176 <div> 1077 <div>
1177 <dt> 1078 <dt>
1178 <var>callback</var> 1079 <var>callback</var>
1179 <em> 1080 <em>
1180 <!-- TYPE --> 1081 <!-- TYPE -->
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
1602 </div> 1503 </div>
1603 </div> 1504 </div>
1604 <!-- MIN_VERSION --> 1505 <!-- MIN_VERSION -->
1605 </div> <!-- /description --> 1506 </div> <!-- /description -->
1606 </div><div class="apiItem"> 1507 </div><div class="apiItem">
1607 <a name="method-insertCSS"></a> <!-- method-anchor --> 1508 <a name="method-insertCSS"></a> <!-- method-anchor -->
1608 <h4>insertCSS</h4> 1509 <h4>insertCSS</h4>
1609 <div class="summary"> 1510 <div class="summary">
1610 <!-- Note: intentionally longer 80 columns --> 1511 <!-- Note: intentionally longer 80 columns -->
1611 <span>chrome.tabs.insertCSS</span>(<span class="optional"><spa n>integer</span> 1512 <span>chrome.tabs.insertCSS</span>(<span class="optional"><spa n>integer</span>
1612 <var><span>tabId</span></var></span><span class="null"><sp an>, </span><span>object</span> 1513 <var><span>tabId</span></var></span><span class="null"><sp an>, </span><span>tabs.InjectDetails</span>
1613 <var><span>details</span></var></span><span class="optiona l"><span>, </span><span>function</span> 1514 <var><span>details</span></var></span><span class="optiona l"><span>, </span><span>function</span>
1614 <var><span>callback</span></var></span>)</div> 1515 <var><span>callback</span></var></span>)</div>
1615 <div class="description"> 1516 <div class="description">
1616 <p>Injects CSS into a page. For details, see the <a href="conten t_scripts.html#pi">programmatic injection</a> section of the content scripts doc .</p> 1517 <p>Injects CSS into a page. For details, see the <a href="conten t_scripts.html#pi">programmatic injection</a> section of the content scripts doc .</p>
1617 <!-- PARAMETERS --> 1518 <!-- PARAMETERS -->
1618 <h4>Parameters</h4> 1519 <h4>Parameters</h4>
1619 <dl> 1520 <dl>
1620 <div> 1521 <div>
1621 <div> 1522 <div>
1622 <dt> 1523 <dt>
(...skipping 21 matching lines...) Expand all
1644 </div><div> 1545 </div><div>
1645 <div> 1546 <div>
1646 <dt> 1547 <dt>
1647 <var>details</var> 1548 <var>details</var>
1648 <em> 1549 <em>
1649 <!-- TYPE --> 1550 <!-- TYPE -->
1650 <div style="display:inline"> 1551 <div style="display:inline">
1651 ( 1552 (
1652 <span id="typeTemplate"> 1553 <span id="typeTemplate">
1653 <span> 1554 <span>
1654 <span>object</span> 1555 <a href="tabs.html#type-tabs.InjectDetails">tabs.InjectD etails</a>
1655 </span> 1556 </span>
1656 </span> 1557 </span>
1657 ) 1558 )
1658 </div> 1559 </div>
1659 </em> 1560 </em>
1660 </dt> 1561 </dt>
1661 <dd>Details of the CSS text to insert. Either the code or the file pro perty must be set, but both may not be set at the same time.</dd> 1562 <dd>Details of the CSS text to insert.</dd>
1662 <!-- OBJECT PROPERTIES --> 1563 <!-- OBJECT PROPERTIES -->
1663 <dd>
1664 <dl>
1665 <div>
1666 <div>
1667 <dt>
1668 <var>code</var>
1669 <em>
1670 <!-- TYPE -->
1671 <div style="display:inline">
1672 (
1673 <span class="optional">optional</span>
1674 <span id="typeTemplate">
1675 <span>
1676 <span>string</span>
1677 </span>
1678 </span>
1679 )
1680 </div>
1681 </em>
1682 </dt>
1683 <dd>CSS code to be injected.</dd>
1684 <!-- OBJECT PROPERTIES -->
1685 <!-- OBJECT METHODS -->
1686 <!-- OBJECT EVENT FIELDS -->
1687 <!-- FUNCTION PARAMETERS -->
1688 </div>
1689 </div><div>
1690 <div>
1691 <dt>
1692 <var>file</var>
1693 <em>
1694 <!-- TYPE -->
1695 <div style="display:inline">
1696 (
1697 <span class="optional">optional</span>
1698 <span id="typeTemplate">
1699 <span>
1700 <span>string</span>
1701 </span>
1702 </span>
1703 )
1704 </div>
1705 </em>
1706 </dt>
1707 <dd>CSS file to be injected.</dd>
1708 <!-- OBJECT PROPERTIES -->
1709 <!-- OBJECT METHODS -->
1710 <!-- OBJECT EVENT FIELDS -->
1711 <!-- FUNCTION PARAMETERS -->
1712 </div>
1713 </div><div>
1714 <div>
1715 <dt>
1716 <var>allFrames</var>
1717 <em>
1718 <!-- TYPE -->
1719 <div style="display:inline">
1720 (
1721 <span class="optional">optional</span>
1722 <span id="typeTemplate">
1723 <span>
1724 <span>boolean</span>
1725 </span>
1726 </span>
1727 )
1728 </div>
1729 </em>
1730 </dt>
1731 <dd>If allFrames is true, this function injects CSS text into all fram es of current page. By default, it's false and CSS is injected only into the top main frame.</dd>
1732 <!-- OBJECT PROPERTIES -->
1733 <!-- OBJECT METHODS -->
1734 <!-- OBJECT EVENT FIELDS -->
1735 <!-- FUNCTION PARAMETERS -->
1736 </div>
1737 </div><div>
1738 <div>
1739 <dt>
1740 <var>runAt</var>
1741 <em>
1742 <!-- TYPE -->
1743 <div style="display:inline">
1744 (
1745 <span class="optional">optional</span>
1746 <span class="enum">enumerated</span>
1747 <span id="typeTemplate">
1748 <span>
1749 <span>string</span>
1750 <span>["document_start", "document_end", "document_idle" ]</span>
1751 </span>
1752 </span>
1753 )
1754 </div>
1755 </em>
1756 </dt>
1757 <dd>The soonest that the CSS will be injected into the tab. Defaults t o "document_idle".</dd>
1758 <!-- OBJECT PROPERTIES -->
1759 <!-- OBJECT METHODS -->
1760 <!-- OBJECT EVENT FIELDS -->
1761 <!-- FUNCTION PARAMETERS -->
1762 </div>
1763 </div>
1764 </dl>
1765 </dd>
1766 <!-- OBJECT METHODS --> 1564 <!-- OBJECT METHODS -->
1767 <!-- OBJECT EVENT FIELDS --> 1565 <!-- OBJECT EVENT FIELDS -->
1768 <!-- FUNCTION PARAMETERS --> 1566 <!-- FUNCTION PARAMETERS -->
1769 </div> 1567 </div>
1770 </div><div> 1568 </div><div>
1771 <div> 1569 <div>
1772 <dt> 1570 <dt>
1773 <var>callback</var> 1571 <var>callback</var>
1774 <em> 1572 <em>
1775 <!-- TYPE --> 1573 <!-- TYPE -->
(...skipping 2500 matching lines...) Expand 10 before | Expand all | Expand 10 after
4276 <!-- OBJECT EVENT FIELDS --> 4074 <!-- OBJECT EVENT FIELDS -->
4277 <!-- FUNCTION PARAMETERS --> 4075 <!-- FUNCTION PARAMETERS -->
4278 </div> 4076 </div>
4279 </div> 4077 </div>
4280 </dl> 4078 </dl>
4281 </dd> 4079 </dd>
4282 <!-- OBJECT METHODS --> 4080 <!-- OBJECT METHODS -->
4283 <!-- OBJECT EVENT FIELDS --> 4081 <!-- OBJECT EVENT FIELDS -->
4284 <!-- FUNCTION PARAMETERS --> 4082 <!-- FUNCTION PARAMETERS -->
4285 </div> 4083 </div>
4084 </div><div class="apiItem">
4085 <a name="type-tabs.InjectDetails"></a>
4086 <h4>tabs.InjectDetails</h4>
4087 <div>
4088 <dt>
4089 <em>
4090 <!-- TYPE -->
4091 <div style="display:inline">
4092 (
4093 <span id="typeTemplate">
4094 <span>
4095 <span>object</span>
4096 </span>
4097 </span>
4098 )
4099 </div>
4100 </em>
4101 </dt>
4102 <dd>Details of the script or CSS to inject. Either the code or the fil e property must be set, but both may not be set at the same time.</dd>
4103 <!-- OBJECT PROPERTIES -->
4104 <dd>
4105 <dl>
4106 <div>
4107 <div>
4108 <dt>
4109 <var>code</var>
4110 <em>
4111 <!-- TYPE -->
4112 <div style="display:inline">
4113 (
4114 <span class="optional">optional</span>
4115 <span id="typeTemplate">
4116 <span>
4117 <span>string</span>
4118 </span>
4119 </span>
4120 )
4121 </div>
4122 </em>
4123 </dt>
4124 <dd>JavaScript or CSS code to execute.</dd>
4125 <!-- OBJECT PROPERTIES -->
4126 <!-- OBJECT METHODS -->
4127 <!-- OBJECT EVENT FIELDS -->
4128 <!-- FUNCTION PARAMETERS -->
4129 </div>
4130 </div><div>
4131 <div>
4132 <dt>
4133 <var>file</var>
4134 <em>
4135 <!-- TYPE -->
4136 <div style="display:inline">
4137 (
4138 <span class="optional">optional</span>
4139 <span id="typeTemplate">
4140 <span>
4141 <span>string</span>
4142 </span>
4143 </span>
4144 )
4145 </div>
4146 </em>
4147 </dt>
4148 <dd>JavaScript or CSS file to execute.</dd>
4149 <!-- OBJECT PROPERTIES -->
4150 <!-- OBJECT METHODS -->
4151 <!-- OBJECT EVENT FIELDS -->
4152 <!-- FUNCTION PARAMETERS -->
4153 </div>
4154 </div><div>
4155 <div>
4156 <dt>
4157 <var>allFrames</var>
4158 <em>
4159 <!-- TYPE -->
4160 <div style="display:inline">
4161 (
4162 <span class="optional">optional</span>
4163 <span id="typeTemplate">
4164 <span>
4165 <span>boolean</span>
4166 </span>
4167 </span>
4168 )
4169 </div>
4170 </em>
4171 </dt>
4172 <dd>If allFrames is true, this function injects the script into all fr ames of current page. By default, it's false and the script is injected only int o the top main frame.</dd>
4173 <!-- OBJECT PROPERTIES -->
4174 <!-- OBJECT METHODS -->
4175 <!-- OBJECT EVENT FIELDS -->
4176 <!-- FUNCTION PARAMETERS -->
4177 </div>
4178 </div><div>
4179 <div>
4180 <dt>
4181 <var>runAt</var>
4182 <em>
4183 <!-- TYPE -->
4184 <div style="display:inline">
4185 (
4186 <span class="optional">optional</span>
4187 <span class="enum">enumerated</span>
4188 <span id="typeTemplate">
4189 <span>
4190 <span>string</span>
4191 <span>["document_start", "document_end", "document_idle" ]</span>
4192 </span>
4193 </span>
4194 )
4195 </div>
4196 </em>
4197 </dt>
4198 <dd>The soonest that the script will be injected into the tab. Default s to "document_idle".</dd>
4199 <!-- OBJECT PROPERTIES -->
4200 <!-- OBJECT METHODS -->
4201 <!-- OBJECT EVENT FIELDS -->
4202 <!-- FUNCTION PARAMETERS -->
4203 </div>
4204 </div>
4205 </dl>
4206 </dd>
4207 <!-- OBJECT METHODS -->
4208 <!-- OBJECT EVENT FIELDS -->
4209 <!-- FUNCTION PARAMETERS -->
4210 </div>
4286 </div> <!-- /apiItem --> 4211 </div> <!-- /apiItem -->
4287 </div> <!-- /apiGroup --> 4212 </div> <!-- /apiGroup -->
4288 </div> <!-- /apiPage --> 4213 </div> <!-- /apiPage -->
4289 </div> <!-- /gc-pagecontent --> 4214 </div> <!-- /gc-pagecontent -->
4290 </div> <!-- /g-section --> 4215 </div> <!-- /g-section -->
4291 </div> <!-- /codesiteContent --> 4216 </div> <!-- /codesiteContent -->
4292 <div id="gc-footer" --=""> 4217 <div id="gc-footer" --="">
4293 <div class="text"> 4218 <div class="text">
4294 <p> 4219 <p>
4295 Except as otherwise <a href="http://code.google.com/policies.html#restrictions ">noted</a>, 4220 Except as otherwise <a href="http://code.google.com/policies.html#restrictions ">noted</a>,
(...skipping 20 matching lines...) Expand all
4316 _uff=0; 4241 _uff=0;
4317 urchinTracker(); 4242 urchinTracker();
4318 } 4243 }
4319 catch(e) {/* urchinTracker not available. */} 4244 catch(e) {/* urchinTracker not available. */}
4320 </script> 4245 </script>
4321 <!-- end analytics --> 4246 <!-- end analytics -->
4322 </div> 4247 </div>
4323 </div> <!-- /gc-footer --> 4248 </div> <!-- /gc-footer -->
4324 </div> <!-- /gc-container --> 4249 </div> <!-- /gc-container -->
4325 </body></html> 4250 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698