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

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

Issue 10454106: Dispatch a new event chrome.contextMenus.onClicked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: names Created 8 years, 6 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 </li><li> 211 </li><li>
212 <a href="#method-remove">remove</a> 212 <a href="#method-remove">remove</a>
213 </li><li> 213 </li><li>
214 <a href="#method-removeAll">removeAll</a> 214 <a href="#method-removeAll">removeAll</a>
215 </li><li> 215 </li><li>
216 <a href="#method-update">update</a> 216 <a href="#method-update">update</a>
217 </li> 217 </li>
218 </ol> 218 </ol>
219 </li> 219 </li>
220 <li> 220 <li>
221 <a href="#global-events">Events</a>
222 <ol>
223 <li>
224 <a href="#event-onClicked">onClicked</a>
225 </li>
226 </ol>
227 </li>
228 <li>
221 <a href="#types">Types</a> 229 <a href="#types">Types</a>
222 <ol> 230 <ol>
223 <li> 231 <li>
224 <a href="#type-OnClickData">OnClickData</a> 232 <a href="#type-OnClickData">OnClickData</a>
225 <ol> 233 <ol>
226 </ol> 234 </ol>
227 </li> 235 </li>
228 </ol> 236 </ol>
229 </li> 237 </li>
230 </ol> 238 </ol>
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 <span class="optional">optional</span> 487 <span class="optional">optional</span>
480 <span id="typeTemplate"> 488 <span id="typeTemplate">
481 <span> 489 <span>
482 <span>function</span> 490 <span>function</span>
483 </span> 491 </span>
484 </span> 492 </span>
485 ) 493 )
486 </div> 494 </div>
487 </em> 495 </em>
488 </dt> 496 </dt>
489 <dd>A function that will be called back when the menu item is clicked. </dd> 497 <dd>A function that will be called back when the menu item is clicked. Event pages cannot use this; instead, they should register a listener for chrom e.contextMenus.onClicked.</dd>
490 <!-- OBJECT PROPERTIES --> 498 <!-- OBJECT PROPERTIES -->
491 <!-- OBJECT METHODS --> 499 <!-- OBJECT METHODS -->
492 <!-- OBJECT EVENT FIELDS --> 500 <!-- OBJECT EVENT FIELDS -->
493 <!-- FUNCTION PARAMETERS --> 501 <!-- FUNCTION PARAMETERS -->
494 <dd> 502 <dd>
495 <div> 503 <div>
496 <h5>Parameters</h5> 504 <h5>Parameters</h5>
497 <dl> 505 <dl>
498 <div> 506 <div>
499 <div> 507 <div>
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
1227 <pre>function(<span></span>) <span class="subdued">{...}</span >;</pre> 1235 <pre>function(<span></span>) <span class="subdued">{...}</span >;</pre>
1228 <dl> 1236 <dl>
1229 </dl> 1237 </dl>
1230 </div> 1238 </div>
1231 </div> 1239 </div>
1232 <!-- MIN_VERSION --> 1240 <!-- MIN_VERSION -->
1233 </div> <!-- /description --> 1241 </div> <!-- /description -->
1234 </div> <!-- /apiItem --> 1242 </div> <!-- /apiItem -->
1235 </div> <!-- /apiGroup --> 1243 </div> <!-- /apiGroup -->
1236 <!-- EVENTS --> 1244 <!-- EVENTS -->
1237 <!-- /apiGroup --> 1245 <div id="eventsTemplate" class="apiGroup">
1246 <a name="global-events"></a>
1247 <h3>Events</h3>
1248 <!-- iterates over all events -->
1249 <div class="apiItem">
1250 <a name="event-onClicked"></a>
1251 <h4>onClicked</h4>
1252 <div class="summary">
1253 <!-- Note: intentionally longer 80 columns -->
1254 <span class="subdued">chrome.contextMenus.</span><span>onClicked </span><span class="subdued">.addListener</span>(function(<span>OnClickData info , tabs.Tab tab</span>) <span class="subdued">{...}</span><span></span>);
1255 </div>
1256 <div class="description">
1257 <p>Fired when a context menu item is clicked.</p>
1258 <!-- LISTENER PARAMETERS -->
1259 <div>
1260 <h4>Listener parameters</h4>
1261 <dl>
1262 <div>
1263 <div>
1264 <dt>
1265 <var>info</var>
1266 <em>
1267 <!-- TYPE -->
1268 <div style="display:inline">
1269 (
1270 <span id="typeTemplate">
1271 <span>
1272 <a href="contextMenus.html#type-OnClickData">OnClickData </a>
1273 </span>
1274 </span>
1275 )
1276 </div>
1277 </em>
1278 </dt>
1279 <dd>Information about the item clicked and the context where the click happened.</dd>
1280 <!-- OBJECT PROPERTIES -->
1281 <!-- OBJECT METHODS -->
1282 <!-- OBJECT EVENT FIELDS -->
1283 <!-- FUNCTION PARAMETERS -->
1284 </div>
1285 </div><div>
1286 <div>
1287 <dt>
1288 <var>tab</var>
1289 <em>
1290 <!-- TYPE -->
1291 <div style="display:inline">
1292 (
1293 <span id="typeTemplate">
1294 <span>
1295 <a>tabs.Tab</a>
1296 </span>
1297 </span>
1298 )
1299 </div>
1300 </em>
1301 </dt>
1302 <dd>The details of the tab where the click took place.</dd>
1303 <!-- OBJECT PROPERTIES -->
1304 <!-- OBJECT METHODS -->
1305 <!-- OBJECT EVENT FIELDS -->
1306 <!-- FUNCTION PARAMETERS -->
1307 </div>
1308 </div>
1309 </dl>
1310 </div>
1311 <!-- EXTRA PARAMETERS -->
1312 <!-- LISTENER RETURN VALUE -->
1313 <dl>
1314 </dl>
1315 </div> <!-- /description -->
1316 <!-- /description -->
1317 </div> <!-- /apiItem -->
1318 </div> <!-- /apiGroup -->
1238 <!-- TYPES --> 1319 <!-- TYPES -->
1239 <div class="apiGroup"> 1320 <div class="apiGroup">
1240 <a name="types"></a> 1321 <a name="types"></a>
1241 <h3 id="types">Types</h3> 1322 <h3 id="types">Types</h3>
1242 <!-- iterates over all types --> 1323 <!-- iterates over all types -->
1243 <div class="apiItem"> 1324 <div class="apiItem">
1244 <a name="type-OnClickData"></a> 1325 <a name="type-OnClickData"></a>
1245 <h4>OnClickData</h4> 1326 <h4>OnClickData</h4>
1246 <div> 1327 <div>
1247 <dt> 1328 <dt>
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1455 </div><div> 1536 </div><div>
1456 <div> 1537 <div>
1457 <dt> 1538 <dt>
1458 <var>editable</var> 1539 <var>editable</var>
1459 <em> 1540 <em>
1460 <!-- TYPE --> 1541 <!-- TYPE -->
1461 <div style="display:inline"> 1542 <div style="display:inline">
1462 ( 1543 (
1463 <span id="typeTemplate"> 1544 <span id="typeTemplate">
1464 <span> 1545 <span>
1465 <span>string</span> 1546 <span>boolean</span>
1466 </span> 1547 </span>
1467 </span> 1548 </span>
1468 ) 1549 )
1469 </div> 1550 </div>
1470 </em> 1551 </em>
1471 </dt> 1552 </dt>
1472 <dd>A flag indicating whether the element is editable (text input, tex tarea, etc.).</dd> 1553 <dd>A flag indicating whether the element is editable (text input, tex tarea, etc.).</dd>
1473 <!-- OBJECT PROPERTIES --> 1554 <!-- OBJECT PROPERTIES -->
1474 <!-- OBJECT METHODS --> 1555 <!-- OBJECT METHODS -->
1475 <!-- OBJECT EVENT FIELDS --> 1556 <!-- OBJECT EVENT FIELDS -->
1476 <!-- FUNCTION PARAMETERS --> 1557 <!-- FUNCTION PARAMETERS -->
1477 </div> 1558 </div>
1559 </div><div>
1560 <div>
1561 <dt>
1562 <var>wasChecked</var>
1563 <em>
1564 <!-- TYPE -->
1565 <div style="display:inline">
1566 (
1567 <span class="optional">optional</span>
1568 <span id="typeTemplate">
1569 <span>
1570 <span>boolean</span>
1571 </span>
1572 </span>
1573 )
1574 </div>
1575 </em>
1576 </dt>
1577 <dd>A flag indicating the state of a checkbox or radio item before it was clicked.</dd>
1578 <!-- OBJECT PROPERTIES -->
1579 <!-- OBJECT METHODS -->
1580 <!-- OBJECT EVENT FIELDS -->
1581 <!-- FUNCTION PARAMETERS -->
1582 </div>
1583 </div><div>
1584 <div>
1585 <dt>
1586 <var>checked</var>
1587 <em>
1588 <!-- TYPE -->
1589 <div style="display:inline">
1590 (
1591 <span class="optional">optional</span>
1592 <span id="typeTemplate">
1593 <span>
1594 <span>boolean</span>
1595 </span>
1596 </span>
1597 )
1598 </div>
1599 </em>
1600 </dt>
1601 <dd>A flag indicating the state of a checkbox or radio item after it i s clicked.</dd>
1602 <!-- OBJECT PROPERTIES -->
1603 <!-- OBJECT METHODS -->
1604 <!-- OBJECT EVENT FIELDS -->
1605 <!-- FUNCTION PARAMETERS -->
1606 </div>
1478 </div> 1607 </div>
1479 </dl> 1608 </dl>
1480 </dd> 1609 </dd>
1481 <!-- OBJECT METHODS --> 1610 <!-- OBJECT METHODS -->
1482 <!-- OBJECT EVENT FIELDS --> 1611 <!-- OBJECT EVENT FIELDS -->
1483 <!-- FUNCTION PARAMETERS --> 1612 <!-- FUNCTION PARAMETERS -->
1484 </div> 1613 </div>
1485 </div> <!-- /apiItem --> 1614 </div> <!-- /apiItem -->
1486 </div> <!-- /apiGroup --> 1615 </div> <!-- /apiGroup -->
1487 </div> <!-- /apiPage --> 1616 </div> <!-- /apiPage -->
(...skipping 27 matching lines...) Expand all
1515 _uff=0; 1644 _uff=0;
1516 urchinTracker(); 1645 urchinTracker();
1517 } 1646 }
1518 catch(e) {/* urchinTracker not available. */} 1647 catch(e) {/* urchinTracker not available. */}
1519 </script> 1648 </script>
1520 <!-- end analytics --> 1649 <!-- end analytics -->
1521 </div> 1650 </div>
1522 </div> <!-- /gc-footer --> 1651 </div> <!-- /gc-footer -->
1523 </div> <!-- /gc-container --> 1652 </div> <!-- /gc-container -->
1524 </body></html> 1653 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698