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