Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(700)

Unified Diff: third_party/chrome/idl/experimental_history.json

Issue 12261015: Import chrome idl into third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/chrome/idl/experimental_dns.idl ('k') | third_party/chrome/idl/experimental_identity.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/chrome/idl/experimental_history.json
diff --git a/third_party/chrome/idl/experimental_history.json b/third_party/chrome/idl/experimental_history.json
new file mode 100644
index 0000000000000000000000000000000000000000..09a6f8e1c85c3b6b636352695c203f46a79c9b2c
--- /dev/null
+++ b/third_party/chrome/idl/experimental_history.json
@@ -0,0 +1,44 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+[
+ {
+ "namespace": "experimental.history",
+ "types": [
+ {
+ "id": "MostVisitedItem",
+ "type": "object",
+ "properties": {
+ "url": {"type": "string", "description": "The URL navigated to by a user."},
+ "title": {"type": "string", "description": "The title of the page when it was last loaded."}
+ }
+ }
+ ],
+ "functions": [
+ {
+ "name": "getMostVisited",
+ "type": "function",
+ "description": "Retrieves most visited URLs on the time specified.",
+ "parameters": [
+ { "name": "details",
+ "type": "object",
+ "properties": {
+ "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."},
+ "filterWidth": {"type": "number", "optional": true, "description": "Limit results to those visited at filterTime +/- this on each day, in milliseconds."},
+ "dayOfTheWeek": {"type": "integer", "optional": true, "minimum": 0, "description": "Limit results to those visited on this day of the week (0 - Sunday, 1 - Monday, etc.) starting with this week."},
+ "maxResults": {"type": "integer", "optional": true, "minimum": 0, "description": "The maximum number of results to retrieve. Defaults to 100."}
+ }
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": [
+ { "name": "results", "type": "array", "items": { "$ref": "MostVisitedItem"} }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+]
« no previous file with comments | « third_party/chrome/idl/experimental_dns.idl ('k') | third_party/chrome/idl/experimental_identity.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698