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

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

Issue 7033033: Add hideKeyboard API to chrome.experimental.input. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 'Moved hideKeyboard to chrome.experimental.input namespace' Created 9 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) 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 RegisterFunction<SetBadgeTextSidebarFunction>(); 267 RegisterFunction<SetBadgeTextSidebarFunction>();
268 RegisterFunction<SetIconSidebarFunction>(); 268 RegisterFunction<SetIconSidebarFunction>();
269 RegisterFunction<SetTitleSidebarFunction>(); 269 RegisterFunction<SetTitleSidebarFunction>();
270 RegisterFunction<ShowSidebarFunction>(); 270 RegisterFunction<ShowSidebarFunction>();
271 271
272 #if defined(TOOLKIT_VIEWS) 272 #if defined(TOOLKIT_VIEWS)
273 // Input. 273 // Input.
274 RegisterFunction<SendKeyboardEventInputFunction>(); 274 RegisterFunction<SendKeyboardEventInputFunction>();
275 #endif 275 #endif
276 276
277 #if defined(TOUCH_UI)
278 RegisterFunction<HideKeyboardInputFunction>();
279 #endif
280
277 #if defined(OS_CHROMEOS) && defined(TOUCH_UI) 281 #if defined(OS_CHROMEOS) && defined(TOUCH_UI)
278 // IME 282 // IME
279 RegisterFunction<CandidateClickedInputUiFunction>(); 283 RegisterFunction<CandidateClickedInputUiFunction>();
280 RegisterFunction<CursorUpInputUiFunction>(); 284 RegisterFunction<CursorUpInputUiFunction>();
281 RegisterFunction<CursorDownInputUiFunction>(); 285 RegisterFunction<CursorDownInputUiFunction>();
282 RegisterFunction<PageUpInputUiFunction>(); 286 RegisterFunction<PageUpInputUiFunction>();
283 RegisterFunction<PageDownInputUiFunction>(); 287 RegisterFunction<PageDownInputUiFunction>();
284 RegisterFunction<RegisterInputUiFunction>(); 288 RegisterFunction<RegisterInputUiFunction>();
285 RegisterFunction<PageUpInputUiFunction>(); 289 RegisterFunction<PageUpInputUiFunction>();
286 RegisterFunction<PageDownInputUiFunction>(); 290 RegisterFunction<PageDownInputUiFunction>();
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 std::string(), QuotaLimitHeuristic::kGenericOverQuotaError)); 505 std::string(), QuotaLimitHeuristic::kGenericOverQuotaError));
502 } 506 }
503 } 507 }
504 508
505 void ExtensionFunctionDispatcher::SendAccessDenied( 509 void ExtensionFunctionDispatcher::SendAccessDenied(
506 RenderViewHost* render_view_host, int request_id) { 510 RenderViewHost* render_view_host, int request_id) {
507 render_view_host->Send(new ExtensionMsg_Response( 511 render_view_host->Send(new ExtensionMsg_Response(
508 render_view_host->routing_id(), request_id, false, std::string(), 512 render_view_host->routing_id(), request_id, false, std::string(),
509 "Access to extension API denied.")); 513 "Access to extension API denied."));
510 } 514 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_input_api.h » ('j') | chrome/browser/extensions/extension_input_api.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698