Chromium Code Reviews| 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 316 | 316 |
| 317 // FileBrowserPrivate functions. | 317 // FileBrowserPrivate functions. |
| 318 RegisterFunction<CancelFileDialogFunction>(); | 318 RegisterFunction<CancelFileDialogFunction>(); |
| 319 RegisterFunction<ExecuteTasksFileBrowserFunction>(); | 319 RegisterFunction<ExecuteTasksFileBrowserFunction>(); |
| 320 RegisterFunction<FileDialogStringsFunction>(); | 320 RegisterFunction<FileDialogStringsFunction>(); |
| 321 RegisterFunction<GetFileTasksFileBrowserFunction>(); | 321 RegisterFunction<GetFileTasksFileBrowserFunction>(); |
| 322 RegisterFunction<RequestLocalFileSystemFunction>(); | 322 RegisterFunction<RequestLocalFileSystemFunction>(); |
| 323 RegisterFunction<SelectFileFunction>(); | 323 RegisterFunction<SelectFileFunction>(); |
| 324 RegisterFunction<SelectFilesFunction>(); | 324 RegisterFunction<SelectFilesFunction>(); |
| 325 RegisterFunction<ViewFilesFunction>(); | 325 RegisterFunction<ViewFilesFunction>(); |
| 326 | |
| 327 #if defined(TOOLKIT_VIEWS) && defined(TOUCH_UI) | |
|
Peng
2011/05/02 13:59:51
Is TOOLKIT_VIEWS necessary?
Yusuke Sato
2011/05/04 14:28:35
Done.
| |
| 328 // Input | |
| 329 RegisterFunction<SendHandwritingStrokeFunction>(); | |
| 330 RegisterFunction<CancelHandwritingFunction>(); | |
| 331 #endif | |
| 326 #endif | 332 #endif |
| 327 | 333 |
| 328 // Debugger | 334 // Debugger |
| 329 RegisterFunction<AttachDebuggerFunction>(); | 335 RegisterFunction<AttachDebuggerFunction>(); |
| 330 RegisterFunction<DetachDebuggerFunction>(); | 336 RegisterFunction<DetachDebuggerFunction>(); |
| 331 RegisterFunction<SendRequestDebuggerFunction>(); | 337 RegisterFunction<SendRequestDebuggerFunction>(); |
| 332 } | 338 } |
| 333 | 339 |
| 334 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { | 340 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { |
| 335 for (FactoryMap::iterator iter = factories_.begin(); | 341 for (FactoryMap::iterator iter = factories_.begin(); |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 542 NOTREACHED(); | 548 NOTREACHED(); |
| 543 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_EFD")); | 549 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_EFD")); |
| 544 base::KillProcess(render_view_host_->process()->GetHandle(), | 550 base::KillProcess(render_view_host_->process()->GetHandle(), |
| 545 ResultCodes::KILLED_BAD_MESSAGE, false); | 551 ResultCodes::KILLED_BAD_MESSAGE, false); |
| 546 } | 552 } |
| 547 } | 553 } |
| 548 | 554 |
| 549 Profile* ExtensionFunctionDispatcher::profile() { | 555 Profile* ExtensionFunctionDispatcher::profile() { |
| 550 return profile_; | 556 return profile_; |
| 551 } | 557 } |
| OLD | NEW |