OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "extension", | 3 "namespace": "extension", |
4 "unprivileged": true, | 4 "unprivileged": true, |
5 "types": [ | 5 "types": [ |
6 { | 6 { |
7 "id": "MessageSender", | 7 "id": "MessageSender", |
8 "type": "object", | 8 "type": "object", |
9 "description": "An object containing information about the script contex
t that sent a message or request.", | 9 "description": "An object containing information about the script contex
t that sent a message or request.", |
10 "properties": { | 10 "properties": { |
(...skipping 1740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1751 }, | 1751 }, |
1752 { | 1752 { |
1753 "name": "onImportEnded", | 1753 "name": "onImportEnded", |
1754 "type": "function", | 1754 "type": "function", |
1755 "description": "Fired when a bookmark import session is ended.", | 1755 "description": "Fired when a bookmark import session is ended.", |
1756 "parameters": [] | 1756 "parameters": [] |
1757 } | 1757 } |
1758 ] | 1758 ] |
1759 }, | 1759 }, |
1760 { | 1760 { |
1761 "namespace": "experimental.history", | 1761 "namespace": "history", |
1762 "types": [ | 1762 "types": [ |
1763 { | 1763 { |
1764 "id": "HistoryItem", | 1764 "id": "HistoryItem", |
1765 "type": "object", | 1765 "type": "object", |
1766 "description": "An object encapsulating one result of a history query.", | 1766 "description": "An object encapsulating one result of a history query.", |
1767 "properties": { | 1767 "properties": { |
1768 "id": {"type": "string", "minimum": 0, "description": "The unique iden
tifier for the item."}, | 1768 "id": {"type": "string", "minimum": 0, "description": "The unique iden
tifier for the item."}, |
1769 "url": {"type": "string", "optional": true, "description": "The URL na
vigated to by a user."}, | 1769 "url": {"type": "string", "optional": true, "description": "The URL na
vigated to by a user."}, |
1770 "title": {"type": "string", "optional": true, "description": "The titl
e of the history page."}, | 1770 "title": {"type": "string", "optional": true, "description": "The titl
e of the history page."}, |
1771 "lastVisitTime": {"type": "number", "optional": true, "description": "
When this page was last loaded, represented in milliseconds since the epoch."}, | 1771 "lastVisitTime": {"type": "number", "optional": true, "description": "
When this page was last loaded, represented in milliseconds since the epoch."}, |
1772 "visitCount": {"type": "integer", "optional": true, "description": "Th
e number of times the user has navigated to this page."}, | 1772 "visitCount": {"type": "integer", "optional": true, "description": "Th
e number of times the user has navigated to this page."}, |
1773 "typedCount": {"type": "integer", "optional": true, "description": "Th
e number of times the user has navigated to this page by typing in the address."
} | 1773 "typedCount": {"type": "integer", "optional": true, "description": "Th
e number of times the user has navigated to this page by typing in the address."
} |
1774 } | 1774 } |
1775 }, | 1775 }, |
1776 { | 1776 { |
1777 "id": "VisitItem", | 1777 "id": "VisitItem", |
1778 "type": "object", | 1778 "type": "object", |
1779 "description": "An object encapsulating one visit to a URL.", | 1779 "description": "An object encapsulating one visit to a URL.", |
1780 "properties": { | 1780 "properties": { |
1781 "id": {"type": "string", "minimum": 0, "description": "The unique iden
tifier for the item."}, | 1781 "id": {"type": "string", "minimum": 0, "description": "The unique iden
tifier for the item."}, |
1782 "visitId": {"type": "string", "description": "The unique identifier fo
r this visit."}, | 1782 "visitId": {"type": "string", "description": "The unique identifier fo
r this visit."}, |
1783 "visitTime": {"type": "number", "optional": true, "description": "When
this visit occurred, represented in milliseconds since the epoch."}, | 1783 "visitTime": {"type": "number", "optional": true, "description": "When
this visit occurred, represented in milliseconds since the epoch."}, |
1784 "referringVisitId": {"type": "string", "description": "The visit_id of
the referrer."}, | 1784 "referringVisitId": {"type": "string", "description": "The visit_id of
the referrer."}, |
1785 "transition": {"type": "integer", "minimum": 0, "maximum": 10, "descri
ption": "The <a href='#transition_types'>transition type</a> for this visit from
its referrer."} | 1785 "transition": { |
| 1786 "type": "string", |
| 1787 "enum": ["link", "typed", "auto_bookmark", "auto_subframe", "manual_
subframe", "generated", "start_page", "form_submit", "reload", "keyword", "keywo
rd_generated"], |
| 1788 "description": "The <a href='#transition_types'>transition type</a>
for this visit from its referrer." |
| 1789 } |
1786 } | 1790 } |
1787 } | 1791 } |
1788 ], | 1792 ], |
1789 "functions": [ | 1793 "functions": [ |
1790 { | 1794 { |
1791 "name": "search", | 1795 "name": "search", |
1792 "type": "function", | 1796 "type": "function", |
1793 "description": "Search the history for the last visit time of each page
matching the query.", | 1797 "description": "Search the history for the last visit time of each page
matching the query.", |
1794 "parameters": [ | 1798 "parameters": [ |
1795 { | 1799 { |
(...skipping 14 matching lines...) Expand all Loading... |
1810 ] | 1814 ] |
1811 } | 1815 } |
1812 ] | 1816 ] |
1813 }, | 1817 }, |
1814 { | 1818 { |
1815 "name": "getVisits", | 1819 "name": "getVisits", |
1816 "type": "function", | 1820 "type": "function", |
1817 "description": "Retrieve information about visits to a URL.", | 1821 "description": "Retrieve information about visits to a URL.", |
1818 "parameters": [ | 1822 "parameters": [ |
1819 { | 1823 { |
| 1824 "name": "details", |
1820 "type": "object", | 1825 "type": "object", |
1821 "properties": { | 1826 "properties": { |
1822 "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."} | 1827 "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."} |
1823 } | 1828 } |
1824 }, | 1829 }, |
1825 { | 1830 { |
1826 "name": "callback", | 1831 "name": "callback", |
1827 "type": "function", | 1832 "type": "function", |
1828 "parameters": [ | 1833 "parameters": [ |
1829 { "name": "results", "type": "array", "items": { "$ref": "VisitIte
m"} } | 1834 { "name": "results", "type": "array", "items": { "$ref": "VisitIte
m"} } |
1830 ] | 1835 ] |
1831 } | 1836 } |
1832 ] | 1837 ] |
1833 }, | 1838 }, |
1834 { | 1839 { |
1835 "name": "addUrl", | 1840 "name": "addUrl", |
1836 "type": "function", | 1841 "type": "function", |
1837 "description": "Adds a URL to the history at the current time with a <a
href='#transition_types'>transition type</a> of LINK.", | 1842 "description": "Adds a URL to the history at the current time with a <a
href='#transition_types'>transition type</a> of \"link\".", |
1838 "parameters": [ | 1843 "parameters": [ |
1839 { | 1844 { |
| 1845 "name": "details", |
1840 "type": "object", | 1846 "type": "object", |
1841 "properties": { | 1847 "properties": { |
1842 "url": {"type": "string", "description": "The URL to add."} | 1848 "url": {"type": "string", "description": "The URL to add."} |
1843 } | 1849 } |
1844 } | 1850 } |
1845 ] | 1851 ] |
1846 }, | 1852 }, |
1847 { | 1853 { |
1848 "name": "deleteUrl", | 1854 "name": "deleteUrl", |
1849 "type": "function", | 1855 "type": "function", |
1850 "description": "Removes all occurrences of the given URL from the histor
y.", | 1856 "description": "Removes all occurrences of the given URL from the histor
y.", |
1851 "parameters": [ | 1857 "parameters": [ |
1852 { | 1858 { |
| 1859 "name": "details", |
1853 "type": "object", | 1860 "type": "object", |
1854 "properties": { | 1861 "properties": { |
1855 "url": {"type": "string", "description": "The URL to remove."} | 1862 "url": {"type": "string", "description": "The URL to remove."} |
1856 } | 1863 } |
1857 } | 1864 } |
1858 ] | 1865 ] |
1859 }, | 1866 }, |
1860 { | 1867 { |
1861 "name": "deleteRange", | 1868 "name": "deleteRange", |
1862 "type": "function", | 1869 "type": "function", |
1863 "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.", | 1870 "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.", |
1864 "parameters": [ | 1871 "parameters": [ |
1865 { | 1872 { |
| 1873 "name": "range", |
1866 "type": "object", | 1874 "type": "object", |
1867 "properties": { | 1875 "properties": { |
1868 "startTime": { "type": "number", "description": "Items added to hi
story after this date, represented in milliseconds since the epoch." }, | 1876 "startTime": { "type": "number", "description": "Items added to hi
story after this date, represented in milliseconds since the epoch." }, |
1869 "endTime": { "type": "number", "description": "Items added to hist
ory before this date, represented in milliseconds since the epoch." } | 1877 "endTime": { "type": "number", "description": "Items added to hist
ory before this date, represented in milliseconds since the epoch." } |
1870 } | 1878 } |
1871 }, | 1879 }, |
1872 { | 1880 { |
1873 "name": "callback", "type": "function", "parameters": [] | 1881 "name": "callback", "type": "function", "parameters": [] |
1874 } | 1882 } |
1875 ] | 1883 ] |
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2642 "description": "Triggers a paste operation in the specified tab.", | 2650 "description": "Triggers a paste operation in the specified tab.", |
2643 "parameters": [ | 2651 "parameters": [ |
2644 {"type": "integer", "name": "tabId", "minimum": 0}, | 2652 {"type": "integer", "name": "tabId", "minimum": 0}, |
2645 {"type": "function", "name": "callback", "optional": true, "parameters
": []} | 2653 {"type": "function", "name": "callback", "optional": true, "parameters
": []} |
2646 ] | 2654 ] |
2647 } | 2655 } |
2648 ], | 2656 ], |
2649 "events": [] | 2657 "events": [] |
2650 } | 2658 } |
2651 ] | 2659 ] |
OLD | NEW |