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

Side by Side Diff: chrome/browser/extensions/extension_function_registry.cc

Issue 10399046: Remove virtual keyboard support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: final rebase Created 8 years, 7 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 // 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 #include "chrome/browser/extensions/extension_function_registry.h" 5 #include "chrome/browser/extensions/extension_function_registry.h"
6 6
7 #include "chrome/browser/accessibility/accessibility_extension_api.h" 7 #include "chrome/browser/accessibility/accessibility_extension_api.h"
8 #include "chrome/browser/bookmarks/bookmark_extension_api.h" 8 #include "chrome/browser/bookmarks/bookmark_extension_api.h"
9 #include "chrome/browser/bookmarks/bookmark_manager_extension_api.h" 9 #include "chrome/browser/bookmarks/bookmark_manager_extension_api.h"
10 #include "chrome/browser/download/download_extension_api.h" 10 #include "chrome/browser/download/download_extension_api.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #include "chrome/browser/rlz/rlz_extension_api.h" 52 #include "chrome/browser/rlz/rlz_extension_api.h"
53 #include "chrome/browser/speech/speech_input_extension_api.h" 53 #include "chrome/browser/speech/speech_input_extension_api.h"
54 #include "chrome/browser/speech/extension_api/tts_extension_api.h" 54 #include "chrome/browser/speech/extension_api/tts_extension_api.h"
55 #include "chrome/browser/speech/extension_api/tts_engine_extension_api.h" 55 #include "chrome/browser/speech/extension_api/tts_engine_extension_api.h"
56 #include "chrome/common/extensions/api/generated_api.h" 56 #include "chrome/common/extensions/api/generated_api.h"
57 57
58 #if defined(TOOLKIT_VIEWS) 58 #if defined(TOOLKIT_VIEWS)
59 #include "chrome/browser/extensions/extension_input_api.h" 59 #include "chrome/browser/extensions/extension_input_api.h"
60 #endif 60 #endif
61 61
62 #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD)
63 #include "chrome/browser/extensions/extension_input_ui_api.h"
64 #endif
65
66 #if defined(OS_CHROMEOS) 62 #if defined(OS_CHROMEOS)
67 #include "chrome/browser/chromeos/extensions/file_browser_private_api.h" 63 #include "chrome/browser/chromeos/extensions/file_browser_private_api.h"
68 #include "chrome/browser/chromeos/extensions/echo_private_api.h" 64 #include "chrome/browser/chromeos/extensions/echo_private_api.h"
69 #include "chrome/browser/chromeos/media/media_player_extension_api.h" 65 #include "chrome/browser/chromeos/media/media_player_extension_api.h"
70 #include "chrome/browser/extensions/api/terminal/terminal_private_api.h" 66 #include "chrome/browser/extensions/api/terminal/terminal_private_api.h"
71 #include "chrome/browser/extensions/extension_info_private_api_chromeos.h" 67 #include "chrome/browser/extensions/extension_info_private_api_chromeos.h"
72 #include "chrome/browser/extensions/extension_input_ime_api.h" 68 #include "chrome/browser/extensions/extension_input_ime_api.h"
73 #include "chrome/browser/extensions/extension_input_method_api.h" 69 #include "chrome/browser/extensions/extension_input_method_api.h"
74 #endif 70 #endif
75 71
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 // Speech input. 263 // Speech input.
268 RegisterFunction<StartSpeechInputFunction>(); 264 RegisterFunction<StartSpeechInputFunction>();
269 RegisterFunction<StopSpeechInputFunction>(); 265 RegisterFunction<StopSpeechInputFunction>();
270 RegisterFunction<IsRecordingSpeechInputFunction>(); 266 RegisterFunction<IsRecordingSpeechInputFunction>();
271 267
272 #if defined(TOOLKIT_VIEWS) 268 #if defined(TOOLKIT_VIEWS)
273 // Input. 269 // Input.
274 RegisterFunction<SendKeyboardEventInputFunction>(); 270 RegisterFunction<SendKeyboardEventInputFunction>();
275 #endif 271 #endif
276 272
277 #if defined(USE_VIRTUAL_KEYBOARD)
278 RegisterFunction<HideKeyboardFunction>();
279 RegisterFunction<SetKeyboardHeightFunction>();
280 #endif
281
282 #if defined(OS_CHROMEOS) 273 #if defined(OS_CHROMEOS)
283 // IME 274 // IME
284 RegisterFunction<SetCompositionFunction>(); 275 RegisterFunction<SetCompositionFunction>();
285 RegisterFunction<ClearCompositionFunction>(); 276 RegisterFunction<ClearCompositionFunction>();
286 RegisterFunction<CommitTextFunction>(); 277 RegisterFunction<CommitTextFunction>();
287 RegisterFunction<SetCandidateWindowPropertiesFunction>(); 278 RegisterFunction<SetCandidateWindowPropertiesFunction>();
288 RegisterFunction<SetCandidatesFunction>(); 279 RegisterFunction<SetCandidatesFunction>();
289 RegisterFunction<SetCursorPositionFunction>(); 280 RegisterFunction<SetCursorPositionFunction>();
290 RegisterFunction<SetMenuItemsFunction>(); 281 RegisterFunction<SetMenuItemsFunction>();
291 RegisterFunction<UpdateMenuItemsFunction>(); 282 RegisterFunction<UpdateMenuItemsFunction>();
292 283
293 RegisterFunction<InputEventHandled>(); 284 RegisterFunction<InputEventHandled>();
294 #if defined(USE_VIRTUAL_KEYBOARD)
295 RegisterFunction<CandidateClickedInputUiFunction>();
296 RegisterFunction<CursorUpInputUiFunction>();
297 RegisterFunction<CursorDownInputUiFunction>();
298 RegisterFunction<PageUpInputUiFunction>();
299 RegisterFunction<PageDownInputUiFunction>();
300 RegisterFunction<RegisterInputUiFunction>();
301 RegisterFunction<PageUpInputUiFunction>();
302 RegisterFunction<PageDownInputUiFunction>();
303 #endif
304 #endif 285 #endif
305 286
306 // Managed mode. 287 // Managed mode.
307 RegisterFunction<GetManagedModeFunction>(); 288 RegisterFunction<GetManagedModeFunction>();
308 RegisterFunction<EnterManagedModeFunction>(); 289 RegisterFunction<EnterManagedModeFunction>();
309 290
310 // Management. 291 // Management.
311 RegisterFunction<GetAllExtensionsFunction>(); 292 RegisterFunction<GetAllExtensionsFunction>();
312 RegisterFunction<GetExtensionByIdFunction>(); 293 RegisterFunction<GetExtensionByIdFunction>();
313 RegisterFunction<GetPermissionWarningsByIdFunction>(); 294 RegisterFunction<GetPermissionWarningsByIdFunction>();
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 RegisterFunction<GetInputMethodFunction>(); 375 RegisterFunction<GetInputMethodFunction>();
395 376
396 // Echo 377 // Echo
397 RegisterFunction<GetRegistrationCodeFunction>(); 378 RegisterFunction<GetRegistrationCodeFunction>();
398 379
399 // Terminal 380 // Terminal
400 RegisterFunction<OpenTerminalProcessFunction>(); 381 RegisterFunction<OpenTerminalProcessFunction>();
401 RegisterFunction<SendInputToTerminalProcessFunction>(); 382 RegisterFunction<SendInputToTerminalProcessFunction>();
402 RegisterFunction<CloseTerminalProcessFunction>(); 383 RegisterFunction<CloseTerminalProcessFunction>();
403 RegisterFunction<OnTerminalResizeFunction>(); 384 RegisterFunction<OnTerminalResizeFunction>();
404
405 #if defined(USE_VIRTUAL_KEYBOARD)
406 // Input
407 RegisterFunction<SendHandwritingStrokeFunction>();
408 RegisterFunction<CancelHandwritingStrokesFunction>();
409 #endif
410 #endif 385 #endif
411 386
412 // Websocket to TCP proxy. Currently noop on anything other than ChromeOS. 387 // Websocket to TCP proxy. Currently noop on anything other than ChromeOS.
413 RegisterFunction<WebSocketProxyPrivateGetPassportForTCPFunction>(); 388 RegisterFunction<WebSocketProxyPrivateGetPassportForTCPFunction>();
414 RegisterFunction<WebSocketProxyPrivateGetURLForTCPFunction>(); 389 RegisterFunction<WebSocketProxyPrivateGetURLForTCPFunction>();
415 390
416 // Debugger 391 // Debugger
417 RegisterFunction<AttachDebuggerFunction>(); 392 RegisterFunction<AttachDebuggerFunction>();
418 RegisterFunction<DetachDebuggerFunction>(); 393 RegisterFunction<DetachDebuggerFunction>();
419 RegisterFunction<SendCommandDebuggerFunction>(); 394 RegisterFunction<SendCommandDebuggerFunction>();
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 } 526 }
552 527
553 ExtensionFunction* ExtensionFunctionRegistry::NewFunction( 528 ExtensionFunction* ExtensionFunctionRegistry::NewFunction(
554 const std::string& name) { 529 const std::string& name) {
555 FactoryMap::iterator iter = factories_.find(name); 530 FactoryMap::iterator iter = factories_.find(name);
556 DCHECK(iter != factories_.end()); 531 DCHECK(iter != factories_.end());
557 ExtensionFunction* function = iter->second(); 532 ExtensionFunction* function = iter->second();
558 function->set_name(name); 533 function->set_name(name);
559 return function; 534 return function;
560 } 535 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/component_loader.cc ('k') | chrome/browser/extensions/extension_input_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698