OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "extension", | 3 "namespace": "extension", |
4 "types": [ | 4 "types": [ |
5 { | 5 { |
6 "id": "Port", | 6 "id": "Port", |
7 "type": "object", | 7 "type": "object", |
8 "description": "An object which allows two way communication with other
pages.", | 8 "description": "An object which allows two way communication with other
pages.", |
9 "properties": { | 9 "properties": { |
10 "name": {"type": "string"}, | 10 "name": {"type": "string"}, |
(...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1328 "name": "reorderInfo", | 1328 "name": "reorderInfo", |
1329 "properties": { | 1329 "properties": { |
1330 "childIds": { "type": "array", "items": { "type": "string" } } | 1330 "childIds": { "type": "array", "items": { "type": "string" } } |
1331 } | 1331 } |
1332 } | 1332 } |
1333 ] | 1333 ] |
1334 } | 1334 } |
1335 ] | 1335 ] |
1336 }, | 1336 }, |
1337 { | 1337 { |
| 1338 "namespace": "experimental.history", |
| 1339 "types": [ |
| 1340 { |
| 1341 "id": "HistoryItem", |
| 1342 "type": "object", |
| 1343 "description": "An object encapsulating one result of a history query.", |
| 1344 "properties": { |
| 1345 "id": {"type": "string", "minimum": 0, "description": "The unique iden
tifier for the item."}, |
| 1346 "url": {"type": "string", "optional": true, "description": "The URL na
vigated to by a user."}, |
| 1347 "title": {"type": "string", "optional": true, "description": "The titl
e of the history page."}, |
| 1348 "lastVisitTime": {"type": "number", "optional": true, "description": "
When this page was last loaded, represented in milliseconds since the epoch."}, |
| 1349 "visitCount": {"type": "integer", "optional": true, "description": "Th
e number of times the user has navigated to this page."}, |
| 1350 "typedCount": {"type": "integer", "optional": true, "description": "Th
e number of times the user has navigated to this page by typing in the address."
} |
| 1351 } |
| 1352 }, |
| 1353 { |
| 1354 "id": "VisitItem", |
| 1355 "type": "object", |
| 1356 "description": "An object encapsulating one visit to a url.", |
| 1357 "properties": { |
| 1358 "id": {"type": "string", "minimum": 0, "description": "The unique iden
tifier for the item."}, |
| 1359 "visitId": {"type": "string", "description": "The unique identifier fo
r this visit."}, |
| 1360 "visitTime": {"type": "number", "optional": true, "description": "When
this visit occurred, represented in milliseconds since the epoch."}, |
| 1361 "referringVisitId": {"type": "string", "description": "The visit_id of
the referrer."}, |
| 1362 "transition": {"type": "integer", "minimum": 0, "maximum": 10, "descri
ption": "The transition type for this visit from its referrer. The enumeration
is defined in chrome.history.transistionType."} |
| 1363 } |
| 1364 } |
| 1365 ], |
| 1366 "functions": [ |
| 1367 { |
| 1368 "name": "search", |
| 1369 "type": "function", |
| 1370 "description": "Search the history for the last visit time of each page
matching the query.", |
| 1371 "parameters": [ |
| 1372 { |
| 1373 "name": "query", |
| 1374 "type": "object", |
| 1375 "properties": { |
| 1376 "search": {"type": "string", "description": "A free-text query to
the history service, leave empty to retrieve all pages."}, |
| 1377 "startTime": {"type": "number", "optional": true, "description": "
Limit results to those visited after this date, represented in milliseconds sinc
e the epoch."}, |
| 1378 "endTime": {"type": "number", "optional": true, "description": "Li
mit results to those visited before this date, represented in milliseconds since
the epoch."}, |
| 1379 "maxResults": {"type": "integer", "optional": true, "minimum": 0,
"description": "The maximum number of results to retrieve. Defaults to 100."} |
| 1380 } |
| 1381 }, |
| 1382 { |
| 1383 "name": "callback", |
| 1384 "type": "function", |
| 1385 "parameters": [ |
| 1386 { "name": "results", "type": "array", "items": { "$ref": "HistoryI
tem"} } |
| 1387 ] |
| 1388 } |
| 1389 ] |
| 1390 }, |
| 1391 { |
| 1392 "name": "getVisits", |
| 1393 "type": "function", |
| 1394 "description": "Retrieve information about visits to a url.", |
| 1395 "parameters": [ |
| 1396 { |
| 1397 "type": "object", |
| 1398 "properties": { |
| 1399 "url": {"type": "string", "description": "The url for which to ret
rieve visit information. It must be in the format as returned from a call to hi
story.search."} |
| 1400 } |
| 1401 }, |
| 1402 { |
| 1403 "name": "callback", |
| 1404 "type": "function", |
| 1405 "parameters": [ |
| 1406 { "name": "results", "type": "array", "items": { "$ref": "VisitIte
m"} } |
| 1407 ] |
| 1408 } |
| 1409 ] |
| 1410 }, |
| 1411 { |
| 1412 "name": "addUrl", |
| 1413 "type": "function", |
| 1414 "description": "Adds a Url to the history at the current time with trans
ition of LINK.", |
| 1415 "parameters": [ |
| 1416 { |
| 1417 "type": "object", |
| 1418 "properties": { |
| 1419 "url": {"type": "string", "description": "The url to add."} |
| 1420 } |
| 1421 } |
| 1422 ] |
| 1423 }, |
| 1424 { |
| 1425 "name": "deleteUrl", |
| 1426 "type": "function", |
| 1427 "description": "Removes all occurrences of the given Url from the histor
y.", |
| 1428 "parameters": [ |
| 1429 { |
| 1430 "type": "object", |
| 1431 "properties": { |
| 1432 "url": {"type": "string", "description": "The url to remove."} |
| 1433 } |
| 1434 } |
| 1435 ] |
| 1436 }, |
| 1437 { |
| 1438 "name": "deleteRange", |
| 1439 "type": "function", |
| 1440 "description": "Removes all items within the specified date range from t
he history. Pages will not be removed from the history unless all visits fall w
ithin the range.", |
| 1441 "parameters": [ |
| 1442 { |
| 1443 "type": "object", |
| 1444 "properties": { |
| 1445 "startTime": { "type": "number", "description": "Items added to hi
story after this date, represented in milliseconds since the epoch." }, |
| 1446 "endTime": { "type": "number", "description": "Items added to hist
ory before this date, represented in milliseconds since the epoch." } |
| 1447 } |
| 1448 }, |
| 1449 { |
| 1450 "name": "callback", "type": "function", "parameters": [] |
| 1451 } |
| 1452 ] |
| 1453 }, |
| 1454 { |
| 1455 "name": "deleteAll", |
| 1456 "type": "function", |
| 1457 "description": "Deletes all items from the history.", |
| 1458 "parameters": [ |
| 1459 { |
| 1460 "name": "callback", "type": "function", "parameters": [] |
| 1461 } |
| 1462 ] |
| 1463 } |
| 1464 ], |
| 1465 "events": [ |
| 1466 { |
| 1467 "name": "onVisited", |
| 1468 "type": "function", |
| 1469 "description": "Fired when a url is visited, providing the HistoryItem d
ata for that url.", |
| 1470 "parameters": [ |
| 1471 { "name": "result", "$ref": "HistoryItem"} |
| 1472 ] |
| 1473 }, |
| 1474 { |
| 1475 "name": "onVisitRemoved", |
| 1476 "type": "function", |
| 1477 "description": "Fired when one or more urls are removed from the history
service. When all visits have been removed the url is purged from history.", |
| 1478 "parameters": [ |
| 1479 { |
| 1480 "name": "removed", |
| 1481 "type": "object", |
| 1482 "properties": { |
| 1483 "allHistory": { "type": "boolean", "description": "True if all his
tory was removed. If true, then urls will be empty." }, |
| 1484 "urls": { "type": "array", "items": { "type": "string" }, "optiona
l": true} |
| 1485 } |
| 1486 } |
| 1487 ] |
| 1488 } |
| 1489 ] |
| 1490 }, |
| 1491 { |
1338 "namespace": "toolstrip", | 1492 "namespace": "toolstrip", |
1339 "types": [], | 1493 "types": [], |
1340 "functions": [ | 1494 "functions": [ |
1341 { | 1495 { |
1342 "name": "expand", | 1496 "name": "expand", |
1343 "type": "function", | 1497 "type": "function", |
1344 "description": "", | 1498 "description": "", |
1345 "parameters": [ | 1499 "parameters": [ |
1346 { | 1500 { |
1347 "type": "object", | 1501 "type": "object", |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1470 "type": "function", | 1624 "type": "function", |
1471 "description": "Logs a message during internal unit testing.", | 1625 "description": "Logs a message during internal unit testing.", |
1472 "parameters": [ | 1626 "parameters": [ |
1473 {"type": "string", "name": "message"} | 1627 {"type": "string", "name": "message"} |
1474 ] | 1628 ] |
1475 } | 1629 } |
1476 ], | 1630 ], |
1477 "events": [] | 1631 "events": [] |
1478 } | 1632 } |
1479 ] | 1633 ] |
OLD | NEW |