| 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 <map> | 5 #include <map> |
| 6 #include <set> | 6 #include <set> |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 | 11 |
| 12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
| 13 #include "base/file_util_proxy.h" | 13 #include "base/file_util_proxy.h" |
| 14 #include "base/nullable_string16.h" | 14 #include "base/nullable_string16.h" |
| 15 #include "base/platform_file.h" | 15 #include "base/platform_file.h" |
| 16 #include "base/sync_socket.h" | 16 #include "base/sync_socket.h" |
| 17 #include "chrome/common/content_settings.h" | 17 #include "chrome/common/content_settings.h" |
| 18 #include "chrome/common/geoposition.h" | 18 #include "chrome/common/geoposition.h" |
| 19 #include "chrome/common/nacl_types.h" | 19 #include "chrome/common/nacl_types.h" |
| 20 #include "chrome/common/notification_type.h" | 20 #include "chrome/common/notification_type.h" |
| 21 #include "chrome/common/page_zoom.h" | 21 #include "chrome/common/page_zoom.h" |
| 22 #include "chrome/common/speech_input_result.h" | |
| 23 #include "chrome/common/translate_errors.h" | 22 #include "chrome/common/translate_errors.h" |
| 24 #include "chrome/common/window_container_type.h" | 23 #include "chrome/common/window_container_type.h" |
| 25 #include "ipc/ipc_message_macros.h" | 24 #include "ipc/ipc_message_macros.h" |
| 26 #include "media/audio/audio_buffers_state.h" | 25 #include "media/audio/audio_buffers_state.h" |
| 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" |
| 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" |
| 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
| 30 #include "webkit/glue/context_menu.h" | 29 #include "webkit/glue/context_menu.h" |
| 31 #include "webkit/glue/form_data.h" | 30 #include "webkit/glue/form_data.h" |
| 32 #include "webkit/glue/password_form_dom_manager.h" | 31 #include "webkit/glue/password_form_dom_manager.h" |
| (...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1011 | 1010 |
| 1012 // Relay a request from assistive technology to perform the default action | 1011 // Relay a request from assistive technology to perform the default action |
| 1013 // on a given node. | 1012 // on a given node. |
| 1014 IPC_MESSAGE_ROUTED1(ViewMsg_AccessibilityDoDefaultAction, | 1013 IPC_MESSAGE_ROUTED1(ViewMsg_AccessibilityDoDefaultAction, |
| 1015 int /* object id */) | 1014 int /* object id */) |
| 1016 | 1015 |
| 1017 // Tells the render view that a ViewHostMsg_AccessibilityNotifications | 1016 // Tells the render view that a ViewHostMsg_AccessibilityNotifications |
| 1018 // message was processed and it can send addition notifications. | 1017 // message was processed and it can send addition notifications. |
| 1019 IPC_MESSAGE_ROUTED0(ViewMsg_AccessibilityNotifications_ACK) | 1018 IPC_MESSAGE_ROUTED0(ViewMsg_AccessibilityNotifications_ACK) |
| 1020 | 1019 |
| 1021 // Relay a speech recognition result, either partial or final. | |
| 1022 IPC_MESSAGE_ROUTED2(ViewMsg_SpeechInput_SetRecognitionResult, | |
| 1023 int /* request id */, | |
| 1024 speech_input::SpeechInputResultArray /* result */) | |
| 1025 | |
| 1026 // Indicate that speech recognizer has stopped recording and started | |
| 1027 // recognition. | |
| 1028 IPC_MESSAGE_ROUTED1(ViewMsg_SpeechInput_RecordingComplete, | |
| 1029 int /* request id */) | |
| 1030 | |
| 1031 // Indicate that speech recognizer has completed recognition. This will be | |
| 1032 // the last message sent in response to a | |
| 1033 // ViewHostMsg_SpeechInput_StartRecognition. | |
| 1034 IPC_MESSAGE_ROUTED1(ViewMsg_SpeechInput_RecognitionComplete, | |
| 1035 int /* request id */) | |
| 1036 | |
| 1037 // Notification that the device's orientation has changed. | 1020 // Notification that the device's orientation has changed. |
| 1038 IPC_MESSAGE_ROUTED1(ViewMsg_DeviceOrientationUpdated, | 1021 IPC_MESSAGE_ROUTED1(ViewMsg_DeviceOrientationUpdated, |
| 1039 ViewMsg_DeviceOrientationUpdated_Params) | 1022 ViewMsg_DeviceOrientationUpdated_Params) |
| 1040 | 1023 |
| 1041 // WebFrameClient::openFileSystem response messages. | 1024 // WebFrameClient::openFileSystem response messages. |
| 1042 IPC_MESSAGE_CONTROL4(ViewMsg_OpenFileSystemRequest_Complete, | 1025 IPC_MESSAGE_CONTROL4(ViewMsg_OpenFileSystemRequest_Complete, |
| 1043 int /* request_id */, | 1026 int /* request_id */, |
| 1044 bool /* accepted */, | 1027 bool /* accepted */, |
| 1045 std::string /* name */, | 1028 std::string /* name */, |
| 1046 FilePath /* root_path */) | 1029 FilePath /* root_path */) |
| (...skipping 1408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2455 | 2438 |
| 2456 // Updates the minimum/maximum allowed zoom percent for this tab from the | 2439 // Updates the minimum/maximum allowed zoom percent for this tab from the |
| 2457 // default values. If |remember| is true, then the zoom setting is applied to | 2440 // default values. If |remember| is true, then the zoom setting is applied to |
| 2458 // other pages in the site and is saved, otherwise it only applies to this | 2441 // other pages in the site and is saved, otherwise it only applies to this |
| 2459 // tab. | 2442 // tab. |
| 2460 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, | 2443 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, |
| 2461 int /* minimum_percent */, | 2444 int /* minimum_percent */, |
| 2462 int /* maximum_percent */, | 2445 int /* maximum_percent */, |
| 2463 bool /* remember */) | 2446 bool /* remember */) |
| 2464 | 2447 |
| 2465 // Requests the speech input service to start speech recognition on behalf of | |
| 2466 // the given |render_view_id|. | |
| 2467 IPC_MESSAGE_CONTROL5(ViewHostMsg_SpeechInput_StartRecognition, | |
| 2468 int /* render_view_id */, | |
| 2469 int /* request_id */, | |
| 2470 gfx::Rect /* element_rect */, | |
| 2471 std::string /* language */, | |
| 2472 std::string /* grammar */) | |
| 2473 | |
| 2474 // Requests the speech input service to cancel speech recognition on behalf of | |
| 2475 // the given |render_view_id|. If speech recognition is not happening nor or | |
| 2476 // is happening on behalf of some other render view, this call does nothing. | |
| 2477 IPC_MESSAGE_CONTROL2(ViewHostMsg_SpeechInput_CancelRecognition, | |
| 2478 int /* render_view_id */, | |
| 2479 int /* request id */) | |
| 2480 | |
| 2481 // Requests the speech input service to stop audio recording on behalf of | |
| 2482 // the given |render_view_id|. Any audio recorded so far will be fed to the | |
| 2483 // speech recognizer. If speech recognition is not happening nor or is | |
| 2484 // happening on behalf of some other render view, this call does nothing. | |
| 2485 IPC_MESSAGE_CONTROL2(ViewHostMsg_SpeechInput_StopRecording, | |
| 2486 int /* render_view_id */, | |
| 2487 int /* request id */) | |
| 2488 | |
| 2489 //--------------------------------------------------------------------------- | 2448 //--------------------------------------------------------------------------- |
| 2490 // Device orientation services messages: | 2449 // Device orientation services messages: |
| 2491 | 2450 |
| 2492 // A RenderView requests to start receiving device orientation updates. | 2451 // A RenderView requests to start receiving device orientation updates. |
| 2493 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StartUpdating, | 2452 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StartUpdating, |
| 2494 int /* render_view_id */) | 2453 int /* render_view_id */) |
| 2495 | 2454 |
| 2496 // A RenderView requests to stop receiving device orientation updates. | 2455 // A RenderView requests to stop receiving device orientation updates. |
| 2497 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StopUpdating, | 2456 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StopUpdating, |
| 2498 int /* render_view_id */) | 2457 int /* render_view_id */) |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2635 int /* request_id */, | 2594 int /* request_id */, |
| 2636 PP_Flash_NetAddress /* addr */) | 2595 PP_Flash_NetAddress /* addr */) |
| 2637 | 2596 |
| 2638 // JavaScript related messages ----------------------------------------------- | 2597 // JavaScript related messages ----------------------------------------------- |
| 2639 | 2598 |
| 2640 // Notify the JavaScript engine in the render to change its parameters | 2599 // Notify the JavaScript engine in the render to change its parameters |
| 2641 // while performing stress testing. | 2600 // while performing stress testing. |
| 2642 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, | 2601 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, |
| 2643 int /* cmd */, | 2602 int /* cmd */, |
| 2644 int /* param */) | 2603 int /* param */) |
| OLD | NEW |