| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // The tree update. | 112 // The tree update. |
| 112 IPC_STRUCT_MEMBER(ui::AXTreeUpdate, update) | 113 IPC_STRUCT_MEMBER(ui::AXTreeUpdate, update) |
| 113 | 114 |
| 114 // Type of event. | 115 // Type of event. |
| 115 IPC_STRUCT_MEMBER(ui::AXEvent, event_type) | 116 IPC_STRUCT_MEMBER(ui::AXEvent, event_type) |
| 116 | 117 |
| 117 // ID of the node that the event applies to. | 118 // ID of the node that the event applies to. |
| 118 IPC_STRUCT_MEMBER(int, id) | 119 IPC_STRUCT_MEMBER(int, id) |
| 119 IPC_STRUCT_END() | 120 IPC_STRUCT_END() |
| 120 | 121 |
| 122 IPC_STRUCT_BEGIN(ExtensionMsg_AccessibilityLocationChangeParams) |
| 123 // ID of the accessibility tree that this event applies to. |
| 124 IPC_STRUCT_MEMBER(int, tree_id) |
| 125 |
| 126 // ID of the object whose location is changing. |
| 127 IPC_STRUCT_MEMBER(int, id) |
| 128 |
| 129 // The object's new location info. |
| 130 IPC_STRUCT_MEMBER(ui::AXRelativeBounds, new_location) |
| 131 IPC_STRUCT_END() |
| 132 |
| 121 // Forward an accessibility message to an extension process where an | 133 // Forward an accessibility message to an extension process where an |
| 122 // extension is using the automation API to listen for accessibility events. | 134 // extension is using the automation API to listen for accessibility events. |
| 123 IPC_MESSAGE_ROUTED2(ExtensionMsg_AccessibilityEvent, | 135 IPC_MESSAGE_ROUTED2(ExtensionMsg_AccessibilityEvent, |
| 124 ExtensionMsg_AccessibilityEventParams, | 136 ExtensionMsg_AccessibilityEventParams, |
| 125 bool /* is_active_profile */) | 137 bool /* is_active_profile */) |
| 126 | 138 |
| 139 // Forward an accessibility location change message to an extension process |
| 140 // where an extension is using the automation API to listen for |
| 141 // accessibility events. |
| 142 IPC_MESSAGE_ROUTED1(ExtensionMsg_AccessibilityLocationChange, |
| 143 ExtensionMsg_AccessibilityLocationChangeParams) |
| 144 |
| 127 // Messages sent from the renderer to the browser. | 145 // Messages sent from the renderer to the browser. |
| 128 | 146 |
| 129 | 147 |
| 130 // Sent by the renderer to implement chrome.webstore.install(). | 148 // Sent by the renderer to implement chrome.webstore.install(). |
| 131 IPC_MESSAGE_ROUTED5(ExtensionHostMsg_InlineWebstoreInstall, | 149 IPC_MESSAGE_ROUTED5(ExtensionHostMsg_InlineWebstoreInstall, |
| 132 int32_t /* install id */, | 150 int32_t /* install id */, |
| 133 int32_t /* return route id */, | 151 int32_t /* return route id */, |
| 134 std::string /* Web Store item ID */, | 152 std::string /* Web Store item ID */, |
| 135 GURL /* requestor URL */, | 153 GURL /* requestor URL */, |
| 136 int /* listeners_mask */) | 154 int /* listeners_mask */) |
| OLD | NEW |