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

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

Issue 1608163002: Adds the input method private API to allow the component IME extension to change the XKB layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
OLDNEW
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": "inputMethodPrivate", 7 "namespace": "inputMethodPrivate",
8 "compiler_options": { 8 "compiler_options": {
9 "implemented_in": "chrome/browser/chromeos/extensions/input_method_api.h" 9 "implemented_in": "chrome/browser/chromeos/extensions/input_method_api.h"
10 }, 10 },
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 "parameters": [ 151 "parameters": [
152 { 152 {
153 "name": "enabled", 153 "name": "enabled",
154 "type": "boolean", 154 "type": "boolean",
155 "optional": false, 155 "optional": false,
156 "description": "The result of whether enabled." 156 "description": "The result of whether enabled."
157 } 157 }
158 ] 158 ]
159 } 159 }
160 ] 160 ]
161 }, {
162 "name": "setXkbLayout",
163 "type": "function",
164 "description": "Sets the XKB layout for the given input method.",
165 "parameters": [
166 {
167 "name": "xkb_name",
168 "type": "string",
169 "description": "The XKB layout name."
170 },
171 {
172 "name": "callback",
173 "type": "function",
174 "optional": true,
175 "description": "Callback which is called when the layout is set.",
176 "parameters": []
177 }
178 ]
161 } 179 }
162 ], 180 ],
163 "events": [ 181 "events": [
164 { 182 {
165 "name": "onChanged", 183 "name": "onChanged",
166 "type": "function", 184 "type": "function",
167 "description": "Fired when the input method is changed.", 185 "description": "Fired when the input method is changed.",
168 "parameters": [ 186 "parameters": [
169 { 187 {
170 "name": "newInputMethodId", 188 "name": "newInputMethodId",
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 "description": "List of removed words.", 243 "description": "List of removed words.",
226 "items": { 244 "items": {
227 "type": "string" 245 "type": "string"
228 } 246 }
229 } 247 }
230 ] 248 ]
231 } 249 }
232 ] 250 ]
233 } 251 }
234 ] 252 ]
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/input_method_api.cc ('k') | extensions/browser/extension_function_histogram_value.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698