| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 [ |
| 6 { |
| 7 "namespace": "experimental.history", |
| 8 "types": [ |
| 9 { |
| 10 "id": "MostVisitedItem", |
| 11 "type": "object", |
| 12 "properties": { |
| 13 "url": {"type": "string", "description": "The URL navigated to by a u
ser."}, |
| 14 "title": {"type": "string", "description": "The title of the page whe
n it was last loaded."} |
| 15 } |
| 16 } |
| 17 ], |
| 18 "functions": [ |
| 19 { |
| 20 "name": "getMostVisited", |
| 21 "type": "function", |
| 22 "description": "Retrieves most visited URLs on the time specified.", |
| 23 "parameters": [ |
| 24 { "name": "details", |
| 25 "type": "object", |
| 26 "properties": { |
| 27 "filterTime": {"type": "number", "optional": true, "description":
"Sets the time to be used as a basis for the query, represented in milliseconds
since the epoch. Defaults to the current time."}, |
| 28 "filterWidth": {"type": "number", "optional": true, "description":
"Limit results to those visited at filterTime +/- this on each day, in millisec
onds."}, |
| 29 "dayOfTheWeek": {"type": "integer", "optional": true, "minimum": 0
, "description": "Limit results to those visited on this day of the week (0 - Su
nday, 1 - Monday, etc.) starting with this week."}, |
| 30 "maxResults": {"type": "integer", "optional": true, "minimum": 0,
"description": "The maximum number of results to retrieve. Defaults to 100."} |
| 31 } |
| 32 }, |
| 33 { |
| 34 "name": "callback", |
| 35 "type": "function", |
| 36 "parameters": [ |
| 37 { "name": "results", "type": "array", "items": { "$ref": "MostVis
itedItem"} } |
| 38 ] |
| 39 } |
| 40 ] |
| 41 } |
| 42 ] |
| 43 } |
| 44 ] |
| OLD | NEW |