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_string_value_serializer.h" | 9 #include "base/json/json_string_value_serializer.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 RegisterFunction<AddFileWatchBrowserFunction>(); | 403 RegisterFunction<AddFileWatchBrowserFunction>(); |
404 RegisterFunction<RemoveFileWatchBrowserFunction>(); | 404 RegisterFunction<RemoveFileWatchBrowserFunction>(); |
405 RegisterFunction<SelectFileFunction>(); | 405 RegisterFunction<SelectFileFunction>(); |
406 RegisterFunction<SelectFilesFunction>(); | 406 RegisterFunction<SelectFilesFunction>(); |
407 RegisterFunction<AddMountFunction>(); | 407 RegisterFunction<AddMountFunction>(); |
408 RegisterFunction<RemoveMountFunction>(); | 408 RegisterFunction<RemoveMountFunction>(); |
409 RegisterFunction<GetMountPointsFunction>(); | 409 RegisterFunction<GetMountPointsFunction>(); |
410 RegisterFunction<GetSizeStatsFunction>(); | 410 RegisterFunction<GetSizeStatsFunction>(); |
411 RegisterFunction<FormatDeviceFunction>(); | 411 RegisterFunction<FormatDeviceFunction>(); |
412 RegisterFunction<ViewFilesFunction>(); | 412 RegisterFunction<ViewFilesFunction>(); |
| 413 RegisterFunction<ToggleFullscreenFunction>(); |
| 414 RegisterFunction<IsFullscreenFunction>(); |
413 | 415 |
414 // Mediaplayer | 416 // Mediaplayer |
415 RegisterFunction<PlayMediaplayerFunction>(); | 417 RegisterFunction<PlayMediaplayerFunction>(); |
416 RegisterFunction<GetPlaylistMediaplayerFunction>(); | 418 RegisterFunction<GetPlaylistMediaplayerFunction>(); |
417 RegisterFunction<SetWindowHeightMediaplayerFunction>(); | 419 RegisterFunction<SetWindowHeightMediaplayerFunction>(); |
418 RegisterFunction<CloseWindowMediaplayerFunction>(); | 420 RegisterFunction<CloseWindowMediaplayerFunction>(); |
419 | 421 |
420 // InputMethod | 422 // InputMethod |
421 RegisterFunction<GetInputMethodFunction>(); | 423 RegisterFunction<GetInputMethodFunction>(); |
422 | 424 |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 return function; | 789 return function; |
788 } | 790 } |
789 | 791 |
790 // static | 792 // static |
791 void ExtensionFunctionDispatcher::SendAccessDenied( | 793 void ExtensionFunctionDispatcher::SendAccessDenied( |
792 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 794 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
793 ipc_sender->Send(new ExtensionMsg_Response( | 795 ipc_sender->Send(new ExtensionMsg_Response( |
794 routing_id, request_id, false, std::string(), | 796 routing_id, request_id, false, std::string(), |
795 "Access to extension API denied.")); | 797 "Access to extension API denied.")); |
796 } | 798 } |
OLD | NEW |