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

Side by Side Diff: chrome/common/extensions/api/extension_api.json

Issue 596105: Bookmark Manager Drag and Drop backend.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 1937 matching lines...) Expand 10 before | Expand all | Expand 10 after
1948 "name": "onClosed", 1948 "name": "onClosed",
1949 "type": "function", 1949 "type": "function",
1950 "description": "Fired when the popup view is closed.", 1950 "description": "Fired when the popup view is closed.",
1951 "parameters": [] 1951 "parameters": []
1952 } 1952 }
1953 ] 1953 ]
1954 }, 1954 },
1955 { 1955 {
1956 "namespace": "experimental.bookmarkManager", 1956 "namespace": "experimental.bookmarkManager",
1957 "nodoc": true, 1957 "nodoc": true,
1958 "types": [], 1958 "types": [
1959 {
1960 "id": "BookmarkDragDataElement",
1961 "nodoc": true,
1962 "type": "object",
1963 "properties": {
1964 "id": {
1965 "type": "string",
1966 "optional": true,
1967 "description": "The ID of the bookmark. This is only provided if the data is from the same profile."
1968 },
1969 "parentId": {
1970 "type": "string",
1971 "optional": true,
1972 "description": "The ID of the parent of the bookmark. This is only p rovided if the data is from the same profile."
1973 },
1974 "title": {"type": "string"},
1975 "url": {
1976 "type": "string",
1977 "optional": true
1978 },
1979 "children": {
1980 "type": "array",
1981 "items": {"$ref": "BookmarkDragDataElement"}
1982 }
1983 }
1984 },
1985 {
1986 "id": "BookmarkDragData",
1987 "nodoc": true,
1988 "type": "object",
1989 "description": "Information about the drag and drop data for use with dr ag and drop events.",
1990 "properties": {
1991 "sameProfile": {"type": "boolean"},
1992 "elements": {
1993 "type": "array",
1994 "items": {"$ref": "BookmarkDragDataElement"}
1995 }
1996 }
1997 }
1998 ],
1959 "functions": [ 1999 "functions": [
1960 { 2000 {
1961 "name": "copy", 2001 "name": "copy",
1962 "type": "function", 2002 "type": "function",
1963 "description": "Copies the given bookmarks into the clipboard", 2003 "description": "Copies the given bookmarks into the clipboard",
1964 "nodoc": "true", 2004 "nodoc": "true",
1965 "parameters": [ 2005 "parameters": [
1966 { 2006 {
1967 "name": "idList", 2007 "name": "idList",
1968 "description": "An array of string-valued ids", 2008 "description": "An array of string-valued ids",
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
2049 "name": "callback", 2089 "name": "callback",
2050 "parameters": [ 2090 "parameters": [
2051 { 2091 {
2052 "type": "object", 2092 "type": "object",
2053 "properties": {}, 2093 "properties": {},
2054 "additionalProperties": {"type": "string"} 2094 "additionalProperties": {"type": "string"}
2055 } 2095 }
2056 ] 2096 ]
2057 } 2097 }
2058 ] 2098 ]
2099 },
2100 {
2101 "name": "startDrag",
2102 "type": "function",
2103 "description": "Begins dragging a set of bookmarks",
2104 "nodoc": "true",
2105 "parameters": [
2106 {
2107 "name": "idList",
2108 "description": "An array of string-valued ids",
2109 "type": "array",
2110 "items": {"type": "string"},
2111 "minItems": 1
2112 }
2113 ]
2114 },
2115 {
2116 "name": "drop",
2117 "type": "function",
2118 "description": "Performs the drop action of the drag and drop session",
2119 "nodoc": "true",
2120 "parameters": [
2121 {
2122 "name": "parentId",
2123 "description": "The ID of the folder that the drop was made",
2124 "type": "string"
2125 },
2126 {
2127 "name": "index",
2128 "description": "The index of the position to drop at. If left out th e dropped items will be placed at the end of the existing children",
2129 "type": "integer",
2130 "minimum": 0,
2131 "optional": true
2132 }
2133 ]
2059 } 2134 }
2060 ], 2135 ],
2061 "events": [ 2136 "events": [
2062 { 2137 {
2063 "name": "onImportBegan", 2138 "name": "onImportBegan",
2064 "type": "function", 2139 "type": "function",
2065 "description": "Fired when a bookmark import session is begun. Expensiv e observers should ignore handleCreated updates until onImportEnded is fired. O bservers should still handle other notifications immediately.", 2140 "description": "Fired when a bookmark import session is begun. Expensiv e observers should ignore handleCreated updates until onImportEnded is fired. O bservers should still handle other notifications immediately.",
2066 "parameters": [ 2141 "parameters": [
2067 {} 2142 {}
2068 ] 2143 ]
2069 }, 2144 },
2070 { 2145 {
2071 "name": "onImportEnded", 2146 "name": "onImportEnded",
2072 "type": "function", 2147 "type": "function",
2073 "description": "Fired when a bookmark import session is ended.", 2148 "description": "Fired when a bookmark import session is ended.",
2074 "parameters": [ 2149 "parameters": [
2075 {} 2150 {}
2076 ] 2151 ]
2152 },
2153 {
2154 "name": "onDragEnter",
2155 "type": "function",
2156 "description": "Fired when dragging bookmarks over the document",
2157 "parameters": [
2158 {"$ref": "BookmarkDragData"}
2159 ]
2160 },
2161 {
2162 "name": "onDragLeave",
2163 "type": "function",
2164 "description": "Fired when the drag and drop leaves the document",
2165 "parameters": [
2166 {"$ref": "BookmarkDragData"}
2167 ]
2168 },
2169 {
2170 "name": "onDrop",
2171 "type": "function",
2172 "description": "Fired when the user drops bookmarks on the document",
2173 "parameters": [
2174 {"$ref": "BookmarkDragData"}
2175 ]
2077 } 2176 }
2078
2079 ] 2177 ]
2080 }, 2178 },
2081 { 2179 {
2082 "namespace": "devtools", 2180 "namespace": "devtools",
2083 "nodoc": "true", 2181 "nodoc": "true",
2084 "types": [], 2182 "types": [],
2085 "functions": [ 2183 "functions": [
2086 { 2184 {
2087 "name": "getTabEvents", 2185 "name": "getTabEvents",
2088 "type": "function", 2186 "type": "function",
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
2177 "type": "function", 2275 "type": "function",
2178 "description": "Logs a message during internal unit testing.", 2276 "description": "Logs a message during internal unit testing.",
2179 "parameters": [ 2277 "parameters": [
2180 {"type": "string", "name": "message"} 2278 {"type": "string", "name": "message"}
2181 ] 2279 ]
2182 } 2280 }
2183 ], 2281 ],
2184 "events": [] 2282 "events": []
2185 } 2283 }
2186 ] 2284 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698