| 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 |
| 11 #include <stdint.h> | 11 #include <stdint.h> |
| 12 | 12 |
| 13 #include <string> | 13 #include <string> |
| 14 | 14 |
| 15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
| 16 #include "base/values.h" | 16 #include "base/values.h" |
| 17 #include "chrome/common/extensions/api/automation_internal.h" | 17 #include "chrome/common/extensions/api/automation_internal.h" |
| 18 #include "chrome/common/extensions/api/webstore/webstore_api_constants.h" | 18 #include "chrome/common/extensions/api/webstore/webstore_api_constants.h" |
| 19 #include "chrome/common/extensions/webstore_install_result.h" | 19 #include "chrome/common/extensions/webstore_install_result.h" |
| 20 #include "extensions/common/stack_frame.h" | 20 #include "extensions/common/stack_frame.h" |
| 21 #include "ipc/ipc_message_macros.h" | 21 #include "ipc/ipc_message_macros.h" |
| 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_tree_data.h" | 25 #include "ui/accessibility/ax_tree_data.h" |
| 25 #include "ui/accessibility/ax_tree_update.h" | 26 #include "ui/accessibility/ax_tree_update.h" |
| 26 #include "ui/gfx/transform.h" | 27 #include "ui/gfx/transform.h" |
| 27 #include "url/gurl.h" | 28 #include "url/gurl.h" |
| 28 | 29 |
| 29 #define IPC_MESSAGE_START ChromeExtensionMsgStart | 30 #define IPC_MESSAGE_START ChromeExtensionMsgStart |
| 30 | 31 |
| 31 IPC_ENUM_TRAITS_MAX_VALUE(extensions::api::webstore::InstallStage, | 32 IPC_ENUM_TRAITS_MAX_VALUE(extensions::api::webstore::InstallStage, |
| 32 extensions::api::webstore::INSTALL_STAGE_INSTALLING) | 33 extensions::api::webstore::INSTALL_STAGE_INSTALLING) |
| 33 IPC_ENUM_TRAITS_MAX_VALUE(extensions::webstore_install::Result, | 34 IPC_ENUM_TRAITS_MAX_VALUE(extensions::webstore_install::Result, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 IPC_STRUCT_TRAITS_END() | 95 IPC_STRUCT_TRAITS_END() |
| 95 | 96 |
| 96 IPC_STRUCT_TRAITS_BEGIN(ui::AXTreeUpdate) | 97 IPC_STRUCT_TRAITS_BEGIN(ui::AXTreeUpdate) |
| 97 IPC_STRUCT_TRAITS_MEMBER(has_tree_data) | 98 IPC_STRUCT_TRAITS_MEMBER(has_tree_data) |
| 98 IPC_STRUCT_TRAITS_MEMBER(tree_data) | 99 IPC_STRUCT_TRAITS_MEMBER(tree_data) |
| 99 IPC_STRUCT_TRAITS_MEMBER(node_id_to_clear) | 100 IPC_STRUCT_TRAITS_MEMBER(node_id_to_clear) |
| 100 IPC_STRUCT_TRAITS_MEMBER(root_id) | 101 IPC_STRUCT_TRAITS_MEMBER(root_id) |
| 101 IPC_STRUCT_TRAITS_MEMBER(nodes) | 102 IPC_STRUCT_TRAITS_MEMBER(nodes) |
| 102 IPC_STRUCT_TRAITS_END() | 103 IPC_STRUCT_TRAITS_END() |
| 103 | 104 |
| 105 IPC_STRUCT_TRAITS_BEGIN(ui::AXRelativeBounds) |
| 106 IPC_STRUCT_TRAITS_MEMBER(offset_container_id) |
| 107 IPC_STRUCT_TRAITS_MEMBER(bounds) |
| 108 IPC_STRUCT_TRAITS_MEMBER(transform) |
| 109 IPC_STRUCT_TRAITS_END() |
| 110 |
| 104 IPC_STRUCT_BEGIN(ExtensionMsg_AccessibilityEventParams) | 111 IPC_STRUCT_BEGIN(ExtensionMsg_AccessibilityEventParams) |
| 105 // ID of the accessibility tree that this event applies to. | 112 // ID of the accessibility tree that this event applies to. |
| 106 IPC_STRUCT_MEMBER(int, tree_id) | 113 IPC_STRUCT_MEMBER(int, tree_id) |
| 107 | 114 |
| 108 // The global offset of all coordinates in this accessibility tree. | 115 // The global offset of all coordinates in this accessibility tree. |
| 109 IPC_STRUCT_MEMBER(gfx::Vector2d, location_offset) | 116 IPC_STRUCT_MEMBER(gfx::Vector2d, location_offset) |
| 110 | 117 |
| 111 // The tree update. | 118 // The tree update. |
| 112 IPC_STRUCT_MEMBER(ui::AXTreeUpdate, update) | 119 IPC_STRUCT_MEMBER(ui::AXTreeUpdate, update) |
| 113 | 120 |
| 114 // Type of event. | 121 // Type of event. |
| 115 IPC_STRUCT_MEMBER(ui::AXEvent, event_type) | 122 IPC_STRUCT_MEMBER(ui::AXEvent, event_type) |
| 116 | 123 |
| 117 // ID of the node that the event applies to. | 124 // ID of the node that the event applies to. |
| 118 IPC_STRUCT_MEMBER(int, id) | 125 IPC_STRUCT_MEMBER(int, id) |
| 119 IPC_STRUCT_END() | 126 IPC_STRUCT_END() |
| 120 | 127 |
| 128 IPC_STRUCT_BEGIN(ExtensionMsg_AccessibilityLocationChangeParams) |
| 129 // ID of the accessibility tree that this event applies to. |
| 130 IPC_STRUCT_MEMBER(int, tree_id) |
| 131 |
| 132 // ID of the object whose location is changing. |
| 133 IPC_STRUCT_MEMBER(int, id) |
| 134 |
| 135 // The object's new location info. |
| 136 IPC_STRUCT_MEMBER(ui::AXRelativeBounds, new_location) |
| 137 IPC_STRUCT_END() |
| 138 |
| 121 // Forward an accessibility message to an extension process where an | 139 // Forward an accessibility message to an extension process where an |
| 122 // extension is using the automation API to listen for accessibility events. | 140 // extension is using the automation API to listen for accessibility events. |
| 123 IPC_MESSAGE_ROUTED2(ExtensionMsg_AccessibilityEvent, | 141 IPC_MESSAGE_ROUTED2(ExtensionMsg_AccessibilityEvent, |
| 124 ExtensionMsg_AccessibilityEventParams, | 142 ExtensionMsg_AccessibilityEventParams, |
| 125 bool /* is_active_profile */) | 143 bool /* is_active_profile */) |
| 126 | 144 |
| 145 // Forward an accessibility location change message to an extension process |
| 146 // where an extension is using the automation API to listen for |
| 147 // accessibility events. |
| 148 IPC_MESSAGE_ROUTED1(ExtensionMsg_AccessibilityLocationChange, |
| 149 ExtensionMsg_AccessibilityLocationChangeParams) |
| 150 |
| 127 // Messages sent from the renderer to the browser. | 151 // Messages sent from the renderer to the browser. |
| 128 | 152 |
| 129 | 153 |
| 130 // Sent by the renderer to implement chrome.webstore.install(). | 154 // Sent by the renderer to implement chrome.webstore.install(). |
| 131 IPC_MESSAGE_ROUTED5(ExtensionHostMsg_InlineWebstoreInstall, | 155 IPC_MESSAGE_ROUTED5(ExtensionHostMsg_InlineWebstoreInstall, |
| 132 int32_t /* install id */, | 156 int32_t /* install id */, |
| 133 int32_t /* return route id */, | 157 int32_t /* return route id */, |
| 134 std::string /* Web Store item ID */, | 158 std::string /* Web Store item ID */, |
| 135 GURL /* requestor URL */, | 159 GURL /* requestor URL */, |
| 136 int /* listeners_mask */) | 160 int /* listeners_mask */) |
| OLD | NEW |