| 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" | |
| 19 #include "chrome/common/extensions/webstore_install_result.h" | |
| 20 #include "extensions/common/stack_frame.h" | 18 #include "extensions/common/stack_frame.h" |
| 21 #include "ipc/ipc_message_macros.h" | 19 #include "ipc/ipc_message_macros.h" |
| 22 #include "ui/accessibility/ax_enums.h" | 20 #include "ui/accessibility/ax_enums.h" |
| 23 #include "ui/accessibility/ax_node_data.h" | 21 #include "ui/accessibility/ax_node_data.h" |
| 24 #include "ui/accessibility/ax_relative_bounds.h" | 22 #include "ui/accessibility/ax_relative_bounds.h" |
| 25 #include "ui/accessibility/ax_tree_data.h" | 23 #include "ui/accessibility/ax_tree_data.h" |
| 26 #include "ui/accessibility/ax_tree_update.h" | 24 #include "ui/accessibility/ax_tree_update.h" |
| 27 #include "ui/gfx/transform.h" | 25 #include "ui/gfx/transform.h" |
| 28 #include "url/gurl.h" | 26 #include "url/gurl.h" |
| 29 | 27 |
| 30 #define IPC_MESSAGE_START ChromeExtensionMsgStart | 28 #define IPC_MESSAGE_START ChromeExtensionMsgStart |
| 31 | 29 |
| 32 // TODO(crbug.com/725275): Remove these ipc enums once all ipc messages here are | |
| 33 // converted to mojo. | |
| 34 IPC_ENUM_TRAITS_MAX_VALUE(extensions::api::webstore::InstallStage, | |
| 35 extensions::api::webstore::INSTALL_STAGE_INSTALLING) | |
| 36 IPC_ENUM_TRAITS_MAX_VALUE(extensions::webstore_install::Result, | |
| 37 extensions::webstore_install::RESULT_LAST) | |
| 38 | |
| 39 // Messages sent from the browser to the renderer. | 30 // Messages sent from the browser to the renderer. |
| 40 | 31 |
| 41 IPC_STRUCT_TRAITS_BEGIN(ui::AXNodeData) | 32 IPC_STRUCT_TRAITS_BEGIN(ui::AXNodeData) |
| 42 IPC_STRUCT_TRAITS_MEMBER(id) | 33 IPC_STRUCT_TRAITS_MEMBER(id) |
| 43 IPC_STRUCT_TRAITS_MEMBER(role) | 34 IPC_STRUCT_TRAITS_MEMBER(role) |
| 44 IPC_STRUCT_TRAITS_MEMBER(state) | 35 IPC_STRUCT_TRAITS_MEMBER(state) |
| 45 IPC_STRUCT_TRAITS_MEMBER(actions) | 36 IPC_STRUCT_TRAITS_MEMBER(actions) |
| 46 IPC_STRUCT_TRAITS_MEMBER(location) | 37 IPC_STRUCT_TRAITS_MEMBER(location) |
| 47 IPC_STRUCT_TRAITS_MEMBER(transform) | 38 IPC_STRUCT_TRAITS_MEMBER(transform) |
| 48 IPC_STRUCT_TRAITS_MEMBER(string_attributes) | 39 IPC_STRUCT_TRAITS_MEMBER(string_attributes) |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 IPC_MESSAGE_ROUTED2(ExtensionMsg_AccessibilityEvent, | 109 IPC_MESSAGE_ROUTED2(ExtensionMsg_AccessibilityEvent, |
| 119 ExtensionMsg_AccessibilityEventParams, | 110 ExtensionMsg_AccessibilityEventParams, |
| 120 bool /* is_active_profile */) | 111 bool /* is_active_profile */) |
| 121 | 112 |
| 122 // Forward an accessibility location change message to an extension process | 113 // Forward an accessibility location change message to an extension process |
| 123 // where an extension is using the automation API to listen for | 114 // where an extension is using the automation API to listen for |
| 124 // accessibility events. | 115 // accessibility events. |
| 125 IPC_MESSAGE_ROUTED1(ExtensionMsg_AccessibilityLocationChange, | 116 IPC_MESSAGE_ROUTED1(ExtensionMsg_AccessibilityLocationChange, |
| 126 ExtensionMsg_AccessibilityLocationChangeParams) | 117 ExtensionMsg_AccessibilityLocationChangeParams) |
| 127 | 118 |
| OLD | NEW |