OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/json/json_value_serializer.h" | 9 #include "base/json/json_value_serializer.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 RegisterFunction<AddFileWatchBrowserFunction>(); | 398 RegisterFunction<AddFileWatchBrowserFunction>(); |
399 RegisterFunction<RemoveFileWatchBrowserFunction>(); | 399 RegisterFunction<RemoveFileWatchBrowserFunction>(); |
400 RegisterFunction<SelectFileFunction>(); | 400 RegisterFunction<SelectFileFunction>(); |
401 RegisterFunction<SelectFilesFunction>(); | 401 RegisterFunction<SelectFilesFunction>(); |
402 RegisterFunction<AddMountFunction>(); | 402 RegisterFunction<AddMountFunction>(); |
403 RegisterFunction<RemoveMountFunction>(); | 403 RegisterFunction<RemoveMountFunction>(); |
404 RegisterFunction<GetMountPointsFunction>(); | 404 RegisterFunction<GetMountPointsFunction>(); |
405 RegisterFunction<GetSizeStatsFunction>(); | 405 RegisterFunction<GetSizeStatsFunction>(); |
406 RegisterFunction<FormatDeviceFunction>(); | 406 RegisterFunction<FormatDeviceFunction>(); |
407 RegisterFunction<ViewFilesFunction>(); | 407 RegisterFunction<ViewFilesFunction>(); |
| 408 RegisterFunction<ToggleFullscreenFunction>(); |
| 409 RegisterFunction<IsFullscreenFunction>(); |
408 | 410 |
409 // Mediaplayer | 411 // Mediaplayer |
410 RegisterFunction<PlayAtMediaplayerFunction>(); | 412 RegisterFunction<PlayAtMediaplayerFunction>(); |
411 RegisterFunction<SetPlaybackErrorMediaplayerFunction>(); | 413 RegisterFunction<SetPlaybackErrorMediaplayerFunction>(); |
412 RegisterFunction<GetPlaylistMediaplayerFunction>(); | 414 RegisterFunction<GetPlaylistMediaplayerFunction>(); |
413 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); | 415 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); |
414 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); | 416 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); |
415 | 417 |
416 // InputMethod | 418 // InputMethod |
417 RegisterFunction<GetInputMethodFunction>(); | 419 RegisterFunction<GetInputMethodFunction>(); |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 return function; | 755 return function; |
754 } | 756 } |
755 | 757 |
756 // static | 758 // static |
757 void ExtensionFunctionDispatcher::SendAccessDenied( | 759 void ExtensionFunctionDispatcher::SendAccessDenied( |
758 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 760 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
759 ipc_sender->Send(new ExtensionMsg_Response( | 761 ipc_sender->Send(new ExtensionMsg_Response( |
760 routing_id, request_id, false, std::string(), | 762 routing_id, request_id, false, std::string(), |
761 "Access to extension API denied.")); | 763 "Access to extension API denied.")); |
762 } | 764 } |
OLD | NEW |