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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 // Speech input. | 301 // Speech input. |
302 RegisterFunction<StartSpeechInputFunction>(); | 302 RegisterFunction<StartSpeechInputFunction>(); |
303 RegisterFunction<StopSpeechInputFunction>(); | 303 RegisterFunction<StopSpeechInputFunction>(); |
304 RegisterFunction<IsRecordingSpeechInputFunction>(); | 304 RegisterFunction<IsRecordingSpeechInputFunction>(); |
305 | 305 |
306 #if defined(TOOLKIT_VIEWS) | 306 #if defined(TOOLKIT_VIEWS) |
307 // Input. | 307 // Input. |
308 RegisterFunction<SendKeyboardEventInputFunction>(); | 308 RegisterFunction<SendKeyboardEventInputFunction>(); |
309 #endif | 309 #endif |
310 | 310 |
311 #if defined(TOUCH_UI) | 311 #if defined(USE_VIRTUAL_KEYBOARD) |
312 RegisterFunction<HideKeyboardFunction>(); | 312 RegisterFunction<HideKeyboardFunction>(); |
313 RegisterFunction<SetKeyboardHeightFunction>(); | 313 RegisterFunction<SetKeyboardHeightFunction>(); |
314 #endif | 314 #endif |
315 | 315 |
316 #if defined(OS_CHROMEOS) | 316 #if defined(OS_CHROMEOS) |
317 // IME | 317 // IME |
318 RegisterFunction<SetCompositionFunction>(); | 318 RegisterFunction<SetCompositionFunction>(); |
319 RegisterFunction<ClearCompositionFunction>(); | 319 RegisterFunction<ClearCompositionFunction>(); |
320 RegisterFunction<CommitTextFunction>(); | 320 RegisterFunction<CommitTextFunction>(); |
321 RegisterFunction<SetCandidateWindowPropertiesFunction>(); | 321 RegisterFunction<SetCandidateWindowPropertiesFunction>(); |
(...skipping 352 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 |