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": "history", | 7 "namespace": "history", |
8 "description": "Use the <code>chrome.history</code> API to interact with the
browser's record of visited pages. You can add, remove, and query for URLs in t
he browser's history. To override the history page with your own version, see <a
href='override'>Override Pages</a>.", | 8 "description": "Use the <code>chrome.history</code> API to interact with the
browser's record of visited pages. You can add, remove, and query for URLs in t
he browser's history. To override the history page with your own version, see <a
href='override'>Override Pages</a>.", |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
| 11 "id": "TransitionType", |
| 12 "type": "string", |
| 13 "enum": ["link", "typed", "auto_bookmark", "auto_subframe", "manual_subf
rame", "generated", "auto_toplevel", "form_submit", "reload", "keyword", "keywor
d_generated"], |
| 14 "description": "The <a href='#transition_types'>transition type</a> for
this visit from its referrer." |
| 15 }, |
| 16 { |
11 "id": "HistoryItem", | 17 "id": "HistoryItem", |
12 "type": "object", | 18 "type": "object", |
13 "description": "An object encapsulating one result of a history query.", | 19 "description": "An object encapsulating one result of a history query.", |
14 "properties": { | 20 "properties": { |
15 "id": {"type": "string", "minimum": 0, "description": "The unique iden
tifier for the item."}, | 21 "id": {"type": "string", "minimum": 0, "description": "The unique iden
tifier for the item."}, |
16 "url": {"type": "string", "optional": true, "description": "The URL na
vigated to by a user."}, | 22 "url": {"type": "string", "optional": true, "description": "The URL na
vigated to by a user."}, |
17 "title": {"type": "string", "optional": true, "description": "The titl
e of the page when it was last loaded."}, | 23 "title": {"type": "string", "optional": true, "description": "The titl
e of the page when it was last loaded."}, |
18 "lastVisitTime": {"type": "number", "optional": true, "description": "
When this page was last loaded, represented in milliseconds since the epoch."}, | 24 "lastVisitTime": {"type": "number", "optional": true, "description": "
When this page was last loaded, represented in milliseconds since the epoch."}, |
19 "visitCount": {"type": "integer", "optional": true, "description": "Th
e number of times the user has navigated to this page."}, | 25 "visitCount": {"type": "integer", "optional": true, "description": "Th
e number of times the user has navigated to this page."}, |
20 "typedCount": {"type": "integer", "optional": true, "description": "Th
e number of times the user has navigated to this page by typing in the address."
} | 26 "typedCount": {"type": "integer", "optional": true, "description": "Th
e number of times the user has navigated to this page by typing in the address."
} |
21 } | 27 } |
22 }, | 28 }, |
23 { | 29 { |
24 "id": "VisitItem", | 30 "id": "VisitItem", |
25 "type": "object", | 31 "type": "object", |
26 "description": "An object encapsulating one visit to a URL.", | 32 "description": "An object encapsulating one visit to a URL.", |
27 "properties": { | 33 "properties": { |
28 "id": {"type": "string", "minimum": 0, "description": "The unique iden
tifier for the item."}, | 34 "id": {"type": "string", "minimum": 0, "description": "The unique iden
tifier for the item."}, |
29 "visitId": {"type": "string", "description": "The unique identifier fo
r this visit."}, | 35 "visitId": {"type": "string", "description": "The unique identifier fo
r this visit."}, |
30 "visitTime": {"type": "number", "optional": true, "description": "When
this visit occurred, represented in milliseconds since the epoch."}, | 36 "visitTime": {"type": "number", "optional": true, "description": "When
this visit occurred, represented in milliseconds since the epoch."}, |
31 "referringVisitId": {"type": "string", "description": "The visit ID of
the referrer."}, | 37 "referringVisitId": {"type": "string", "description": "The visit ID of
the referrer."}, |
32 "transition": { | 38 "transition": { |
33 "type": "string", | 39 "$ref": "TransitionType", |
34 "enum": ["link", "typed", "auto_bookmark", "auto_subframe", "manual_
subframe", "generated", "auto_toplevel", "form_submit", "reload", "keyword", "ke
yword_generated"], | |
35 "description": "The <a href='#transition_types'>transition type</a>
for this visit from its referrer." | 40 "description": "The <a href='#transition_types'>transition type</a>
for this visit from its referrer." |
36 } | 41 } |
37 } | 42 } |
38 } | 43 } |
39 ], | 44 ], |
40 "functions": [ | 45 "functions": [ |
41 { | 46 { |
42 "name": "search", | 47 "name": "search", |
43 "type": "function", | 48 "type": "function", |
44 "description": "Searches the history for the last visit time of each pag
e matching the query.", | 49 "description": "Searches the history for the last visit time of each pag
e matching the query.", |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 "properties": { | 177 "properties": { |
173 "allHistory": { "type": "boolean", "description": "True if all his
tory was removed. If true, then urls will be empty." }, | 178 "allHistory": { "type": "boolean", "description": "True if all his
tory was removed. If true, then urls will be empty." }, |
174 "urls": { "type": "array", "items": { "type": "string" }, "optiona
l": true} | 179 "urls": { "type": "array", "items": { "type": "string" }, "optiona
l": true} |
175 } | 180 } |
176 } | 181 } |
177 ] | 182 ] |
178 } | 183 } |
179 ] | 184 ] |
180 } | 185 } |
181 ] | 186 ] |
OLD | NEW |