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": "input.ime", | 7 "namespace": "input.ime", |
8 "platforms": ["chromeos"], | 8 "platforms": ["chromeos"], |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 } | 84 } |
85 } | 85 } |
86 } | 86 } |
87 } | 87 } |
88 } | 88 } |
89 }, | 89 }, |
90 { | 90 { |
91 "type": "function", | 91 "type": "function", |
92 "name": "callback", | 92 "name": "callback", |
93 "optional": true, | 93 "optional": true, |
94 "description": "Called when the operation completes with a boolean i
ndicating if the text was accepted or not. On failure, chrome.extension.lastErro
r is set.", | 94 "description": "Called when the operation completes with a boolean i
ndicating if the text was accepted or not. On failure, chrome.runtime.lastError
is set.", |
95 "parameters": [ | 95 "parameters": [ |
96 { | 96 { |
97 "name": "success", | 97 "name": "success", |
98 "type": "boolean" | 98 "type": "boolean" |
99 } | 99 } |
100 ] | 100 ] |
101 } | 101 } |
102 ] | 102 ] |
103 }, | 103 }, |
104 { | 104 { |
105 "name": "clearComposition", | 105 "name": "clearComposition", |
106 "type": "function", | 106 "type": "function", |
107 "description": "Clear the current composition. If this extension does no
t own the active IME, this fails.", | 107 "description": "Clear the current composition. If this extension does no
t own the active IME, this fails.", |
108 "parameters": [ | 108 "parameters": [ |
109 { | 109 { |
110 "name": "parameters", | 110 "name": "parameters", |
111 "type": "object", | 111 "type": "object", |
112 "properties": { | 112 "properties": { |
113 "contextID": { | 113 "contextID": { |
114 "description": "ID of the context where the composition will be
cleared", | 114 "description": "ID of the context where the composition will be
cleared", |
115 "type": "integer" | 115 "type": "integer" |
116 } | 116 } |
117 } | 117 } |
118 }, | 118 }, |
119 { | 119 { |
120 "type": "function", | 120 "type": "function", |
121 "name": "callback", | 121 "name": "callback", |
122 "optional": true, | 122 "optional": true, |
123 "description": "Called when the operation completes with a boolean i
ndicating if the text was accepted or not. On failure, chrome.extension.lastErro
r is set.", | 123 "description": "Called when the operation completes with a boolean i
ndicating if the text was accepted or not. On failure, chrome.runtime.lastError
is set.", |
124 "parameters": [ | 124 "parameters": [ |
125 { | 125 { |
126 "name": "success", | 126 "name": "success", |
127 "type": "boolean" | 127 "type": "boolean" |
128 } | 128 } |
129 ] | 129 ] |
130 } | 130 } |
131 ] | 131 ] |
132 }, | 132 }, |
133 { | 133 { |
(...skipping 12 matching lines...) Expand all Loading... |
146 "text": { | 146 "text": { |
147 "description": "The text to commit", | 147 "description": "The text to commit", |
148 "type": "string" | 148 "type": "string" |
149 } | 149 } |
150 } | 150 } |
151 }, | 151 }, |
152 { | 152 { |
153 "type": "function", | 153 "type": "function", |
154 "name": "callback", | 154 "name": "callback", |
155 "optional": true, | 155 "optional": true, |
156 "description": "Called when the operation completes with a boolean i
ndicating if the text was accepted or not. On failure, chrome.extension.lastErro
r is set.", | 156 "description": "Called when the operation completes with a boolean i
ndicating if the text was accepted or not. On failure, chrome.runtime.lastError
is set.", |
157 "parameters": [ | 157 "parameters": [ |
158 { | 158 { |
159 "name": "success", | 159 "name": "success", |
160 "type": "boolean" | 160 "type": "boolean" |
161 } | 161 } |
162 ] | 162 ] |
163 } | 163 } |
164 ] | 164 ] |
165 }, | 165 }, |
166 { | 166 { |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 { | 549 { |
550 "type": "string", | 550 "type": "string", |
551 "name": "name", | 551 "name": "name", |
552 "description": "Name of the MenuItem which was activated" | 552 "description": "Name of the MenuItem which was activated" |
553 } | 553 } |
554 ] | 554 ] |
555 } | 555 } |
556 ] | 556 ] |
557 } | 557 } |
558 ] | 558 ] |
OLD | NEW |