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

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

Issue 5064001: More changes to extension omnibox API for styles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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 3910 matching lines...) Expand 10 before | Expand all | Expand 10 after
3921 "description": "The text that is put into the URL bar, and that is s ent to the extension when the user chooses this entry." 3921 "description": "The text that is put into the URL bar, and that is s ent to the extension when the user chooses this entry."
3922 }, 3922 },
3923 "description": { 3923 "description": {
3924 "type": "string", 3924 "type": "string",
3925 "minLength": 1, 3925 "minLength": 1,
3926 "description": "The text that is displayed in the URL dropdown. Can optionally be stylized by the descriptionStyles parameter." 3926 "description": "The text that is displayed in the URL dropdown. Can optionally be stylized by the descriptionStyles parameter."
3927 }, 3927 },
3928 "descriptionStyles": { 3928 "descriptionStyles": {
3929 "type": "array", 3929 "type": "array",
3930 "optional": true, 3930 "optional": true,
3931 "description": "An array of style objects, created using styleUrl, s tyleMatch, or styleDim. A style applies to the region of text specified by the s tyle's starting offset and length. If there are any overlapping regions of text covered by multiple styles, the last-specified style will be applied to the over lapping region.", 3931 "description": "An array of style objects, created using styleUrl, s tyleMatch, or styleDim. A style applies to the region of text specified by the s tyle's starting offset and length. If there are any overlapping regions of text covered by multiple styles, they will be added together (e.g. 'match' + 'dim' wi ll display a dimmed match). Not all style combinations will be visually distinct .",
asargent_no_longer_on_chrome 2010/11/16 19:05:02 nit: I'm not quite sure what you mean by "Not all
Matt Perry 2010/11/16 22:26:44 Done.
3932 "items": { 3932 "items": {
3933 "type": "object", 3933 "type": "object",
3934 "properties": { 3934 "properties": {
3935 "type": {"type": "string", "enum": ["url", "match", "dim"]}, 3935 "type": {"type": "string", "enum": ["url", "match", "dim"]},
3936 "offset": {"type": "integer"}, 3936 "offset": {"type": "integer"},
3937 "length": {"type": "integer"} 3937 "length": {"type": "integer", "optional": true}
3938 } 3938 }
3939 } 3939 }
3940 } 3940 }
3941 } 3941 }
3942 } 3942 }
3943 ], 3943 ],
3944 "functions": [ 3944 "functions": [
3945 { 3945 {
3946 "name": "sendSuggestions", 3946 "name": "sendSuggestions",
3947 "nodoc": true, 3947 "nodoc": true,
3948 "type": "function", 3948 "type": "function",
3949 "description": "A callback passed to the onInputChanged event used for s ending suggestions back to the browser.", 3949 "description": "A callback passed to the onInputChanged event used for s ending suggestions back to the browser.",
3950 "parameters": [ 3950 "parameters": [
3951 {"type": "integer", "name": "requestId"}, 3951 {"type": "integer", "name": "requestId"},
3952 { 3952 {
3953 "type": "array", 3953 "type": "array",
3954 "description": "Array of suggest results", 3954 "description": "Array of suggest results",
3955 "items": { 3955 "items": {
3956 "$ref": "SuggestResult" 3956 "$ref": "SuggestResult"
3957 } 3957 }
3958 } 3958 }
3959 ] 3959 ]
3960 }, 3960 },
3961 { 3961 {
3962 "name": "styleUrl", 3962 "name": "styleUrl",
3963 "type": "function", 3963 "type": "function",
3964 "description": "Constructor for the descriptionStyles parameter of the s uggest callback. This style designates a region of text matching a URL or filena me.", 3964 "description": "Constructor for the descriptionStyles parameter of the s uggest callback. This style designates a region of text matching a URL or filena me. If length is omitted, the region will apply for the rest of the description text.",
3965 "parameters": [ 3965 "parameters": [
3966 {"type": "integer", "name": "offset", "minimum": 0}, 3966 {"type": "integer", "name": "offset", "minimum": 0},
3967 {"type": "integer", "name": "length", "minimum": 1} 3967 {"type": "integer", "name": "length", "minimum": 0, "optional": true}
3968 ] 3968 ]
3969 }, 3969 },
3970 { 3970 {
3971 "name": "styleMatch", 3971 "name": "styleMatch",
3972 "type": "function", 3972 "type": "function",
3973 "description": "Constructor for the descriptionStyles parameter of the s uggest callback. This style designates a region of text matching what the user t yped.", 3973 "description": "Constructor for the descriptionStyles parameter of the s uggest callback. This style designates a region of text matching what the user t yped. If length is omitted, the region will apply for the rest of the descriptio n text.",
3974 "parameters": [ 3974 "parameters": [
3975 {"type": "integer", "name": "offset", "minimum": 0}, 3975 {"type": "integer", "name": "offset", "minimum": 0},
3976 {"type": "integer", "name": "length", "minimum": 1} 3976 {"type": "integer", "name": "length", "minimum": 0, "optional": true}
3977 ] 3977 ]
3978 }, 3978 },
3979 { 3979 {
3980 "name": "styleDim", 3980 "name": "styleDim",
3981 "type": "function", 3981 "type": "function",
3982 "description": "Constructor for the descriptionStyles parameter of the s uggest callback. This style designates a region of dim helper text.", 3982 "description": "Constructor for the descriptionStyles parameter of the s uggest callback. This style designates a region of dim helper text. If length is omitted, the region will apply for the rest of the description text.",
3983 "parameters": [ 3983 "parameters": [
3984 {"type": "integer", "name": "offset", "minimum": 0}, 3984 {"type": "integer", "name": "offset", "minimum": 0},
3985 {"type": "integer", "name": "length", "minimum": 1} 3985 {"type": "integer", "name": "length", "minimum": 0, "optional": true}
3986 ] 3986 ]
3987 } 3987 }
3988 ], 3988 ],
3989 "events": [ 3989 "events": [
3990 { 3990 {
3991 "name": "onInputStarted", 3991 "name": "onInputStarted",
3992 "type": "function", 3992 "type": "function",
3993 "description": "User has started a keyword input session by typing the e xtension's keyword. This is guaranteed to be sent exactly once per input session , and before any onInputChanged events.", 3993 "description": "User has started a keyword input session by typing the e xtension's keyword. This is guaranteed to be sent exactly once per input session , and before any onInputChanged events.",
3994 "parameters": [] 3994 "parameters": []
3995 }, 3995 },
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
4349 "token": { "type": "string", "optional": true } 4349 "token": { "type": "string", "optional": true }
4350 } 4350 }
4351 } 4351 }
4352 ] 4352 ]
4353 } 4353 }
4354 ] 4354 ]
4355 } 4355 }
4356 ] 4356 ]
4357 } 4357 }
4358 ] 4358 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698