| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Chrome-specific IPC messages for extensions. | 5 // Chrome-specific IPC messages for extensions. |
| 6 // Extension-related messages that aren't specific to Chrome live in | 6 // Extension-related messages that aren't specific to Chrome live in |
| 7 // extensions/common/extension_messages.h. | 7 // extensions/common/extension_messages.h. |
| 8 // | 8 // |
| 9 // Multiply-included message file, hence no include guard. | 9 // Multiply-included message file, hence no include guard. |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "ui/accessibility/ax_enums.h" | 22 #include "ui/accessibility/ax_enums.h" |
| 23 #include "ui/accessibility/ax_node_data.h" | 23 #include "ui/accessibility/ax_node_data.h" |
| 24 #include "ui/accessibility/ax_relative_bounds.h" | 24 #include "ui/accessibility/ax_relative_bounds.h" |
| 25 #include "ui/accessibility/ax_tree_data.h" | 25 #include "ui/accessibility/ax_tree_data.h" |
| 26 #include "ui/accessibility/ax_tree_update.h" | 26 #include "ui/accessibility/ax_tree_update.h" |
| 27 #include "ui/gfx/transform.h" | 27 #include "ui/gfx/transform.h" |
| 28 #include "url/gurl.h" | 28 #include "url/gurl.h" |
| 29 | 29 |
| 30 #define IPC_MESSAGE_START ChromeExtensionMsgStart | 30 #define IPC_MESSAGE_START ChromeExtensionMsgStart |
| 31 | 31 |
| 32 // TODO(crbug.com/725275): Remove these ipc enums once all ipc messages here are |
| 33 // converted to mojo. |
| 32 IPC_ENUM_TRAITS_MAX_VALUE(extensions::api::webstore::InstallStage, | 34 IPC_ENUM_TRAITS_MAX_VALUE(extensions::api::webstore::InstallStage, |
| 33 extensions::api::webstore::INSTALL_STAGE_INSTALLING) | 35 extensions::api::webstore::INSTALL_STAGE_INSTALLING) |
| 34 IPC_ENUM_TRAITS_MAX_VALUE(extensions::webstore_install::Result, | 36 IPC_ENUM_TRAITS_MAX_VALUE(extensions::webstore_install::Result, |
| 35 extensions::webstore_install::RESULT_LAST) | 37 extensions::webstore_install::RESULT_LAST) |
| 36 | 38 |
| 37 // Messages sent from the browser to the renderer. | 39 // Messages sent from the browser to the renderer. |
| 38 | 40 |
| 39 // Sent to the renderer if install stage updates were requested for an inline | |
| 40 // install. | |
| 41 IPC_MESSAGE_ROUTED1(ExtensionMsg_InlineInstallStageChanged, | |
| 42 extensions::api::webstore::InstallStage /* stage */) | |
| 43 | |
| 44 // Sent to the renderer if download progress updates were requested for an | |
| 45 // inline install. | |
| 46 IPC_MESSAGE_ROUTED1(ExtensionMsg_InlineInstallDownloadProgress, | |
| 47 int /* percent_downloaded */) | |
| 48 | |
| 49 // Send to renderer once the installation mentioned on | |
| 50 // ExtensionHostMsg_InlineWebstoreInstall is complete. | |
| 51 IPC_MESSAGE_ROUTED4(ExtensionMsg_InlineWebstoreInstallResponse, | |
| 52 int32_t /* install id */, | |
| 53 bool /* whether the install was successful */, | |
| 54 std::string /* error */, | |
| 55 extensions::webstore_install::Result /* result */) | |
| 56 | |
| 57 IPC_STRUCT_TRAITS_BEGIN(ui::AXNodeData) | 41 IPC_STRUCT_TRAITS_BEGIN(ui::AXNodeData) |
| 58 IPC_STRUCT_TRAITS_MEMBER(id) | 42 IPC_STRUCT_TRAITS_MEMBER(id) |
| 59 IPC_STRUCT_TRAITS_MEMBER(role) | 43 IPC_STRUCT_TRAITS_MEMBER(role) |
| 60 IPC_STRUCT_TRAITS_MEMBER(state) | 44 IPC_STRUCT_TRAITS_MEMBER(state) |
| 61 IPC_STRUCT_TRAITS_MEMBER(location) | 45 IPC_STRUCT_TRAITS_MEMBER(location) |
| 62 IPC_STRUCT_TRAITS_MEMBER(transform) | 46 IPC_STRUCT_TRAITS_MEMBER(transform) |
| 63 IPC_STRUCT_TRAITS_MEMBER(string_attributes) | 47 IPC_STRUCT_TRAITS_MEMBER(string_attributes) |
| 64 IPC_STRUCT_TRAITS_MEMBER(int_attributes) | 48 IPC_STRUCT_TRAITS_MEMBER(int_attributes) |
| 65 IPC_STRUCT_TRAITS_MEMBER(float_attributes) | 49 IPC_STRUCT_TRAITS_MEMBER(float_attributes) |
| 66 IPC_STRUCT_TRAITS_MEMBER(bool_attributes) | 50 IPC_STRUCT_TRAITS_MEMBER(bool_attributes) |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 IPC_MESSAGE_ROUTED2(ExtensionMsg_AccessibilityEvent, | 117 IPC_MESSAGE_ROUTED2(ExtensionMsg_AccessibilityEvent, |
| 134 ExtensionMsg_AccessibilityEventParams, | 118 ExtensionMsg_AccessibilityEventParams, |
| 135 bool /* is_active_profile */) | 119 bool /* is_active_profile */) |
| 136 | 120 |
| 137 // Forward an accessibility location change message to an extension process | 121 // Forward an accessibility location change message to an extension process |
| 138 // where an extension is using the automation API to listen for | 122 // where an extension is using the automation API to listen for |
| 139 // accessibility events. | 123 // accessibility events. |
| 140 IPC_MESSAGE_ROUTED1(ExtensionMsg_AccessibilityLocationChange, | 124 IPC_MESSAGE_ROUTED1(ExtensionMsg_AccessibilityLocationChange, |
| 141 ExtensionMsg_AccessibilityLocationChangeParams) | 125 ExtensionMsg_AccessibilityLocationChangeParams) |
| 142 | 126 |
| 143 // Messages sent from the renderer to the browser. | |
| 144 | |
| 145 | |
| 146 // Sent by the renderer to implement chrome.webstore.install(). | |
| 147 IPC_MESSAGE_ROUTED4(ExtensionHostMsg_InlineWebstoreInstall, | |
| 148 int32_t /* install id */, | |
| 149 int32_t /* return route id */, | |
| 150 std::string /* Web Store item ID */, | |
| 151 int /* listeners_mask */) | |
| OLD | NEW |