| 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 "types": [ | 8 "types": [ |
| 9 { | 9 { |
| 10 "id": "HistoryItem", | 10 "id": "HistoryItem", |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 "id": "VisitItem", | 23 "id": "VisitItem", |
| 24 "type": "object", | 24 "type": "object", |
| 25 "description": "An object encapsulating one visit to a URL.", | 25 "description": "An object encapsulating one visit to a URL.", |
| 26 "properties": { | 26 "properties": { |
| 27 "id": {"type": "string", "minimum": 0, "description": "The unique iden
tifier for the item."}, | 27 "id": {"type": "string", "minimum": 0, "description": "The unique iden
tifier for the item."}, |
| 28 "visitId": {"type": "string", "description": "The unique identifier fo
r this visit."}, | 28 "visitId": {"type": "string", "description": "The unique identifier fo
r this visit."}, |
| 29 "visitTime": {"type": "number", "optional": true, "description": "When
this visit occurred, represented in milliseconds since the epoch."}, | 29 "visitTime": {"type": "number", "optional": true, "description": "When
this visit occurred, represented in milliseconds since the epoch."}, |
| 30 "referringVisitId": {"type": "string", "description": "The visit ID of
the referrer."}, | 30 "referringVisitId": {"type": "string", "description": "The visit ID of
the referrer."}, |
| 31 "transition": { | 31 "transition": { |
| 32 "type": "string", | 32 "type": "string", |
| 33 "enum": ["link", "typed", "auto_bookmark", "auto_subframe", "manual_
subframe", "generated", "start_page", "form_submit", "reload", "keyword", "keywo
rd_generated"], | 33 "enum": ["link", "typed", "auto_bookmark", "auto_subframe", "manual_
subframe", "generated", "auto_toplevel", "form_submit", "reload", "keyword", "ke
yword_generated"], |
| 34 "description": "The <a href='#transition_types'>transition type</a>
for this visit from its referrer." | 34 "description": "The <a href='#transition_types'>transition type</a>
for this visit from its referrer." |
| 35 } | 35 } |
| 36 } | 36 } |
| 37 } | 37 } |
| 38 ], | 38 ], |
| 39 "functions": [ | 39 "functions": [ |
| 40 { | 40 { |
| 41 "name": "search", | 41 "name": "search", |
| 42 "type": "function", | 42 "type": "function", |
| 43 "description": "Searches the history for the last visit time of each pag
e matching the query.", | 43 "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... |
| 171 "properties": { | 171 "properties": { |
| 172 "allHistory": { "type": "boolean", "description": "True if all his
tory was removed. If true, then urls will be empty." }, | 172 "allHistory": { "type": "boolean", "description": "True if all his
tory was removed. If true, then urls will be empty." }, |
| 173 "urls": { "type": "array", "items": { "type": "string" }, "optiona
l": true} | 173 "urls": { "type": "array", "items": { "type": "string" }, "optiona
l": true} |
| 174 } | 174 } |
| 175 } | 175 } |
| 176 ] | 176 ] |
| 177 } | 177 } |
| 178 ] | 178 ] |
| 179 } | 179 } |
| 180 ] | 180 ] |
| OLD | NEW |