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

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

Issue 6905053: Add 2 Extension APIs for handwriting: experimental.input.sendHandritingStroke and cancelHandWriting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 322
323 // FileBrowserPrivate functions. 323 // FileBrowserPrivate functions.
324 RegisterFunction<CancelFileDialogFunction>(); 324 RegisterFunction<CancelFileDialogFunction>();
325 RegisterFunction<ExecuteTasksFileBrowserFunction>(); 325 RegisterFunction<ExecuteTasksFileBrowserFunction>();
326 RegisterFunction<FileDialogStringsFunction>(); 326 RegisterFunction<FileDialogStringsFunction>();
327 RegisterFunction<GetFileTasksFileBrowserFunction>(); 327 RegisterFunction<GetFileTasksFileBrowserFunction>();
328 RegisterFunction<RequestLocalFileSystemFunction>(); 328 RegisterFunction<RequestLocalFileSystemFunction>();
329 RegisterFunction<SelectFileFunction>(); 329 RegisterFunction<SelectFileFunction>();
330 RegisterFunction<SelectFilesFunction>(); 330 RegisterFunction<SelectFilesFunction>();
331 RegisterFunction<ViewFilesFunction>(); 331 RegisterFunction<ViewFilesFunction>();
332
333 #if defined(TOUCH_UI)
334 // Input
335 RegisterFunction<SendHandwritingStrokeFunction>();
336 RegisterFunction<CancelHandwritingStrokesFunction>();
337 #endif
332 #endif 338 #endif
333 339
334 // Debugger 340 // Debugger
335 RegisterFunction<AttachDebuggerFunction>(); 341 RegisterFunction<AttachDebuggerFunction>();
336 RegisterFunction<DetachDebuggerFunction>(); 342 RegisterFunction<DetachDebuggerFunction>();
337 RegisterFunction<SendRequestDebuggerFunction>(); 343 RegisterFunction<SendRequestDebuggerFunction>();
338 } 344 }
339 345
340 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { 346 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) {
341 for (FactoryMap::iterator iter = factories_.begin(); 347 for (FactoryMap::iterator iter = factories_.begin();
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 std::string(), QuotaLimitHeuristic::kGenericOverQuotaError)); 497 std::string(), QuotaLimitHeuristic::kGenericOverQuotaError));
492 } 498 }
493 } 499 }
494 500
495 void ExtensionFunctionDispatcher::SendAccessDenied( 501 void ExtensionFunctionDispatcher::SendAccessDenied(
496 RenderViewHost* render_view_host, int request_id) { 502 RenderViewHost* render_view_host, int request_id) {
497 render_view_host->Send(new ExtensionMsg_Response( 503 render_view_host->Send(new ExtensionMsg_Response(
498 render_view_host->routing_id(), request_id, false, std::string(), 504 render_view_host->routing_id(), request_id, false, std::string(),
499 "Access to extension API denied.")); 505 "Access to extension API denied."));
500 } 506 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/mock_input_method_library.h ('k') | chrome/browser/extensions/extension_input_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698