OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_dispatcher.h" | 5 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 // Speech input. | 302 // Speech input. |
303 RegisterFunction<StartSpeechInputFunction>(); | 303 RegisterFunction<StartSpeechInputFunction>(); |
304 RegisterFunction<StopSpeechInputFunction>(); | 304 RegisterFunction<StopSpeechInputFunction>(); |
305 RegisterFunction<IsRecordingSpeechInputFunction>(); | 305 RegisterFunction<IsRecordingSpeechInputFunction>(); |
306 | 306 |
307 #if defined(TOOLKIT_VIEWS) | 307 #if defined(TOOLKIT_VIEWS) |
308 // Input. | 308 // Input. |
309 RegisterFunction<SendKeyboardEventInputFunction>(); | 309 RegisterFunction<SendKeyboardEventInputFunction>(); |
310 #endif | 310 #endif |
311 | 311 |
312 #if defined(TOUCH_UI) | 312 #if defined(USE_VIRTUAL_KEYBOARD) |
313 RegisterFunction<HideKeyboardFunction>(); | 313 RegisterFunction<HideKeyboardFunction>(); |
314 RegisterFunction<SetKeyboardHeightFunction>(); | 314 RegisterFunction<SetKeyboardHeightFunction>(); |
315 #endif | 315 #endif |
316 | 316 |
317 #if defined(OS_CHROMEOS) | 317 #if defined(OS_CHROMEOS) |
318 // IME | 318 // IME |
319 RegisterFunction<SetCompositionFunction>(); | 319 RegisterFunction<SetCompositionFunction>(); |
320 RegisterFunction<ClearCompositionFunction>(); | 320 RegisterFunction<ClearCompositionFunction>(); |
321 RegisterFunction<CommitTextFunction>(); | 321 RegisterFunction<CommitTextFunction>(); |
322 RegisterFunction<SetCandidateWindowPropertiesFunction>(); | 322 RegisterFunction<SetCandidateWindowPropertiesFunction>(); |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 return function; | 674 return function; |
675 } | 675 } |
676 | 676 |
677 // static | 677 // static |
678 void ExtensionFunctionDispatcher::SendAccessDenied( | 678 void ExtensionFunctionDispatcher::SendAccessDenied( |
679 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 679 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
680 ipc_sender->Send(new ExtensionMsg_Response( | 680 ipc_sender->Send(new ExtensionMsg_Response( |
681 routing_id, request_id, false, std::string(), | 681 routing_id, request_id, false, std::string(), |
682 "Access to extension API denied.")); | 682 "Access to extension API denied.")); |
683 } | 683 } |
OLD | NEW |