| 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" |
| (...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 782 IPC_MESSAGE_ROUTED4(ViewMsg_ExtensionMessageInvoke, | 782 IPC_MESSAGE_ROUTED4(ViewMsg_ExtensionMessageInvoke, |
| 783 std::string /* extension_id */, | 783 std::string /* extension_id */, |
| 784 std::string /* function_name */, | 784 std::string /* function_name */, |
| 785 ListValue /* args */, | 785 ListValue /* args */, |
| 786 GURL /* event URL */) | 786 GURL /* event URL */) |
| 787 | 787 |
| 788 // Tell the renderer process all known extension function names. | 788 // Tell the renderer process all known extension function names. |
| 789 IPC_MESSAGE_CONTROL1(ViewMsg_Extension_SetFunctionNames, | 789 IPC_MESSAGE_CONTROL1(ViewMsg_Extension_SetFunctionNames, |
| 790 std::vector<std::string>) | 790 std::vector<std::string>) |
| 791 | 791 |
| 792 // TODO(aa): SetAPIPermissions, SetHostPermissions, and possibly |
| 793 // UpdatePageActions should be replaced with just sending additional data in |
| 794 // ExtensionLoaded. See: crbug.com/70516. |
| 795 |
| 792 // Tell the renderer process which permissions the given extension has. See | 796 // Tell the renderer process which permissions the given extension has. See |
| 793 // Extension::Permissions for which elements correspond to which permissions. | 797 // Extension::Permissions for which elements correspond to which permissions. |
| 794 IPC_MESSAGE_CONTROL2(ViewMsg_Extension_SetAPIPermissions, | 798 IPC_MESSAGE_CONTROL2(ViewMsg_Extension_SetAPIPermissions, |
| 795 std::string /* extension_id */, | 799 std::string /* extension_id */, |
| 796 std::set<std::string> /* permissions */) | 800 std::set<std::string> /* permissions */) |
| 797 | 801 |
| 798 // Tell the renderer process which host permissions the given extension has. | 802 // Tell the renderer process which host permissions the given extension has. |
| 799 IPC_MESSAGE_CONTROL2( | 803 IPC_MESSAGE_CONTROL2( |
| 800 ViewMsg_Extension_SetHostPermissions, | 804 ViewMsg_Extension_SetHostPermissions, |
| 801 GURL /* source extension's origin */, | 805 GURL /* source extension's origin */, |
| 802 std::vector<URLPattern> /* URLPatterns the extension can access */) | 806 std::vector<URLPattern> /* URLPatterns the extension can access */) |
| 803 | 807 |
| 804 // Tell the renderer process all known page action ids for a particular | 808 // Tell the renderer process all known page action ids for a particular |
| 805 // extension. | 809 // extension. |
| 806 IPC_MESSAGE_CONTROL2(ViewMsg_Extension_UpdatePageActions, | 810 IPC_MESSAGE_CONTROL2(ViewMsg_Extension_UpdatePageActions, |
| 807 std::string /* extension_id */, | 811 std::string /* extension_id */, |
| 808 std::vector<std::string> /* page_action_ids */) | 812 std::vector<std::string> /* page_action_ids */) |
| 809 | 813 |
| 814 // Notifies the renderer that an extension was loaded in the browser. |
| 815 IPC_MESSAGE_CONTROL1(ViewMsg_ExtensionLoaded, ViewMsg_ExtensionLoaded_Params); |
| 816 |
| 817 // Notifies the renderer that an extension was unloaded in the browser. |
| 818 IPC_MESSAGE_CONTROL1(ViewMsg_ExtensionUnloaded, std::string); |
| 819 |
| 810 // Changes the text direction of the currently selected input field (if any). | 820 // Changes the text direction of the currently selected input field (if any). |
| 811 IPC_MESSAGE_ROUTED1(ViewMsg_SetTextDirection, | 821 IPC_MESSAGE_ROUTED1(ViewMsg_SetTextDirection, |
| 812 WebKit::WebTextDirection /* direction */) | 822 WebKit::WebTextDirection /* direction */) |
| 813 | 823 |
| 814 // Tells the renderer to clear the focused node (if any). | 824 // Tells the renderer to clear the focused node (if any). |
| 815 IPC_MESSAGE_ROUTED0(ViewMsg_ClearFocusedNode) | 825 IPC_MESSAGE_ROUTED0(ViewMsg_ClearFocusedNode) |
| 816 | 826 |
| 817 // Make the RenderView transparent and render it onto a custom background. The | 827 // Make the RenderView transparent and render it onto a custom background. The |
| 818 // background will be tiled in both directions if it is not large enough. | 828 // background will be tiled in both directions if it is not large enough. |
| 819 IPC_MESSAGE_ROUTED1(ViewMsg_SetBackground, | 829 IPC_MESSAGE_ROUTED1(ViewMsg_SetBackground, |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 993 // permission and we have a position available or an error occurs (such as | 1003 // permission and we have a position available or an error occurs (such as |
| 994 // permission denied, position unavailable, etc.) | 1004 // permission denied, position unavailable, etc.) |
| 995 IPC_MESSAGE_ROUTED1(ViewMsg_Geolocation_PositionUpdated, | 1005 IPC_MESSAGE_ROUTED1(ViewMsg_Geolocation_PositionUpdated, |
| 996 Geoposition /* geoposition */) | 1006 Geoposition /* geoposition */) |
| 997 | 1007 |
| 998 // Sent on process startup to indicate whether this process is running in | 1008 // Sent on process startup to indicate whether this process is running in |
| 999 // incognito mode. | 1009 // incognito mode. |
| 1000 IPC_MESSAGE_CONTROL1(ViewMsg_SetIsIncognitoProcess, | 1010 IPC_MESSAGE_CONTROL1(ViewMsg_SetIsIncognitoProcess, |
| 1001 bool /* is_incognito_processs */) | 1011 bool /* is_incognito_processs */) |
| 1002 | 1012 |
| 1003 // Notification that the list of extensions has been updated. | |
| 1004 IPC_MESSAGE_CONTROL1(ViewMsg_ExtensionsUpdated, | |
| 1005 ViewMsg_ExtensionsUpdated_Params) | |
| 1006 | |
| 1007 // Enable accessibility in the renderer process. | 1013 // Enable accessibility in the renderer process. |
| 1008 IPC_MESSAGE_ROUTED0(ViewMsg_EnableAccessibility) | 1014 IPC_MESSAGE_ROUTED0(ViewMsg_EnableAccessibility) |
| 1009 | 1015 |
| 1010 // Relay a request from assistive technology to set focus to a given node. | 1016 // Relay a request from assistive technology to set focus to a given node. |
| 1011 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityFocus, | 1017 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityFocus, |
| 1012 int /* object id */) | 1018 int /* object id */) |
| 1013 | 1019 |
| 1014 // Relay a request from assistive technology to perform the default action | 1020 // Relay a request from assistive technology to perform the default action |
| 1015 // on a given node. | 1021 // on a given node. |
| 1016 IPC_MESSAGE_ROUTED1(ViewMsg_AccessibilityDoDefaultAction, | 1022 IPC_MESSAGE_ROUTED1(ViewMsg_AccessibilityDoDefaultAction, |
| (...skipping 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2605 int /* request_id */, | 2611 int /* request_id */, |
| 2606 PP_Flash_NetAddress /* addr */) | 2612 PP_Flash_NetAddress /* addr */) |
| 2607 | 2613 |
| 2608 // JavaScript related messages ----------------------------------------------- | 2614 // JavaScript related messages ----------------------------------------------- |
| 2609 | 2615 |
| 2610 // Notify the JavaScript engine in the render to change its parameters | 2616 // Notify the JavaScript engine in the render to change its parameters |
| 2611 // while performing stress testing. | 2617 // while performing stress testing. |
| 2612 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, | 2618 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, |
| 2613 int /* cmd */, | 2619 int /* cmd */, |
| 2614 int /* param */) | 2620 int /* param */) |
| OLD | NEW |