| 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 RegisterFunction<SetTitleSidebarFunction>(); | 272 RegisterFunction<SetTitleSidebarFunction>(); |
| 273 RegisterFunction<ShowSidebarFunction>(); | 273 RegisterFunction<ShowSidebarFunction>(); |
| 274 | 274 |
| 275 #if defined(TOOLKIT_VIEWS) | 275 #if defined(TOOLKIT_VIEWS) |
| 276 // Input. | 276 // Input. |
| 277 RegisterFunction<SendKeyboardEventInputFunction>(); | 277 RegisterFunction<SendKeyboardEventInputFunction>(); |
| 278 #endif | 278 #endif |
| 279 | 279 |
| 280 #if defined(TOUCH_UI) | 280 #if defined(TOUCH_UI) |
| 281 RegisterFunction<HideKeyboardFunction>(); | 281 RegisterFunction<HideKeyboardFunction>(); |
| 282 RegisterFunction<SetKeyboardHeightFunction>(); |
| 282 #endif | 283 #endif |
| 283 | 284 |
| 284 #if defined(OS_CHROMEOS) && defined(TOUCH_UI) | 285 #if defined(OS_CHROMEOS) && defined(TOUCH_UI) |
| 285 // IME | 286 // IME |
| 286 RegisterFunction<CandidateClickedInputUiFunction>(); | 287 RegisterFunction<CandidateClickedInputUiFunction>(); |
| 287 RegisterFunction<CursorUpInputUiFunction>(); | 288 RegisterFunction<CursorUpInputUiFunction>(); |
| 288 RegisterFunction<CursorDownInputUiFunction>(); | 289 RegisterFunction<CursorDownInputUiFunction>(); |
| 289 RegisterFunction<PageUpInputUiFunction>(); | 290 RegisterFunction<PageUpInputUiFunction>(); |
| 290 RegisterFunction<PageDownInputUiFunction>(); | 291 RegisterFunction<PageDownInputUiFunction>(); |
| 291 RegisterFunction<RegisterInputUiFunction>(); | 292 RegisterFunction<RegisterInputUiFunction>(); |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 std::string(), QuotaLimitHeuristic::kGenericOverQuotaError)); | 528 std::string(), QuotaLimitHeuristic::kGenericOverQuotaError)); |
| 528 } | 529 } |
| 529 } | 530 } |
| 530 | 531 |
| 531 void ExtensionFunctionDispatcher::SendAccessDenied( | 532 void ExtensionFunctionDispatcher::SendAccessDenied( |
| 532 RenderViewHost* render_view_host, int request_id) { | 533 RenderViewHost* render_view_host, int request_id) { |
| 533 render_view_host->Send(new ExtensionMsg_Response( | 534 render_view_host->Send(new ExtensionMsg_Response( |
| 534 render_view_host->routing_id(), request_id, false, std::string(), | 535 render_view_host->routing_id(), request_id, false, std::string(), |
| 535 "Access to extension API denied.")); | 536 "Access to extension API denied.")); |
| 536 } | 537 } |
| OLD | NEW |