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 <string> | 11 #include <string> |
12 | 12 |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/common/extensions/api/automation_internal.h" | 15 #include "chrome/common/extensions/api/automation_internal.h" |
16 #include "chrome/common/extensions/api/webstore/webstore_api_constants.h" | 16 #include "chrome/common/extensions/api/webstore/webstore_api_constants.h" |
17 #include "chrome/common/extensions/webstore_install_result.h" | 17 #include "chrome/common/extensions/webstore_install_result.h" |
18 #include "extensions/common/stack_frame.h" | 18 #include "extensions/common/stack_frame.h" |
19 #include "ipc/ipc_message_macros.h" | 19 #include "ipc/ipc_message_macros.h" |
20 #include "ui/accessibility/ax_enums.h" | 20 #include "ui/accessibility/ax_enums.h" |
21 #include "ui/accessibility/ax_node_data.h" | 21 #include "ui/accessibility/ax_node_data.h" |
22 #include "ui/accessibility/ax_tree_data.h" | |
22 #include "ui/accessibility/ax_tree_update.h" | 23 #include "ui/accessibility/ax_tree_update.h" |
23 #include "url/gurl.h" | 24 #include "url/gurl.h" |
24 | 25 |
25 #define IPC_MESSAGE_START ChromeExtensionMsgStart | 26 #define IPC_MESSAGE_START ChromeExtensionMsgStart |
26 | 27 |
27 IPC_ENUM_TRAITS_MAX_VALUE(extensions::api::webstore::InstallStage, | 28 IPC_ENUM_TRAITS_MAX_VALUE(extensions::api::webstore::InstallStage, |
28 extensions::api::webstore::INSTALL_STAGE_INSTALLING) | 29 extensions::api::webstore::INSTALL_STAGE_INSTALLING) |
29 IPC_ENUM_TRAITS_MAX_VALUE(extensions::webstore_install::Result, | 30 IPC_ENUM_TRAITS_MAX_VALUE(extensions::webstore_install::Result, |
30 extensions::webstore_install::RESULT_LAST) | 31 extensions::webstore_install::RESULT_LAST) |
31 | 32 |
(...skipping 29 matching lines...) Expand all Loading... | |
61 IPC_STRUCT_TRAITS_MEMBER(location) | 62 IPC_STRUCT_TRAITS_MEMBER(location) |
62 IPC_STRUCT_TRAITS_MEMBER(string_attributes) | 63 IPC_STRUCT_TRAITS_MEMBER(string_attributes) |
63 IPC_STRUCT_TRAITS_MEMBER(int_attributes) | 64 IPC_STRUCT_TRAITS_MEMBER(int_attributes) |
64 IPC_STRUCT_TRAITS_MEMBER(float_attributes) | 65 IPC_STRUCT_TRAITS_MEMBER(float_attributes) |
65 IPC_STRUCT_TRAITS_MEMBER(bool_attributes) | 66 IPC_STRUCT_TRAITS_MEMBER(bool_attributes) |
66 IPC_STRUCT_TRAITS_MEMBER(intlist_attributes) | 67 IPC_STRUCT_TRAITS_MEMBER(intlist_attributes) |
67 IPC_STRUCT_TRAITS_MEMBER(html_attributes) | 68 IPC_STRUCT_TRAITS_MEMBER(html_attributes) |
68 IPC_STRUCT_TRAITS_MEMBER(child_ids) | 69 IPC_STRUCT_TRAITS_MEMBER(child_ids) |
69 IPC_STRUCT_TRAITS_END() | 70 IPC_STRUCT_TRAITS_END() |
70 | 71 |
71 IPC_STRUCT_TRAITS_BEGIN(ui::AXTreeUpdate<ui::AXNodeData>) | 72 IPC_STRUCT_TRAITS_BEGIN(ui::AXTreeData) |
73 IPC_STRUCT_TRAITS_MEMBER(tree_id) | |
dmazzoni
2015/10/22 18:30:17
Note to reviewers: all of these fields were previo
Tom Sepez
2015/10/22 18:54:04
Acknowledged.
| |
74 IPC_STRUCT_TRAITS_MEMBER(parent_tree_id) | |
75 IPC_STRUCT_TRAITS_MEMBER(url) | |
76 IPC_STRUCT_TRAITS_MEMBER(title) | |
77 IPC_STRUCT_TRAITS_MEMBER(mimetype) | |
78 IPC_STRUCT_TRAITS_MEMBER(doctype) | |
79 IPC_STRUCT_TRAITS_MEMBER(loaded) | |
80 IPC_STRUCT_TRAITS_MEMBER(loading_progress) | |
81 IPC_STRUCT_TRAITS_MEMBER(sel_anchor_object_id) | |
82 IPC_STRUCT_TRAITS_MEMBER(sel_anchor_offset) | |
83 IPC_STRUCT_TRAITS_MEMBER(sel_focus_object_id) | |
84 IPC_STRUCT_TRAITS_MEMBER(sel_focus_offset) | |
85 IPC_STRUCT_TRAITS_END() | |
86 | |
87 IPC_STRUCT_TRAITS_BEGIN(ui::AXTreeUpdate) | |
88 IPC_STRUCT_TRAITS_MEMBER(has_tree_data) | |
89 IPC_STRUCT_TRAITS_MEMBER(tree_data) | |
72 IPC_STRUCT_TRAITS_MEMBER(node_id_to_clear) | 90 IPC_STRUCT_TRAITS_MEMBER(node_id_to_clear) |
73 IPC_STRUCT_TRAITS_MEMBER(nodes) | 91 IPC_STRUCT_TRAITS_MEMBER(nodes) |
74 IPC_STRUCT_TRAITS_END() | 92 IPC_STRUCT_TRAITS_END() |
75 | 93 |
76 IPC_STRUCT_BEGIN(ExtensionMsg_AccessibilityEventParams) | 94 IPC_STRUCT_BEGIN(ExtensionMsg_AccessibilityEventParams) |
77 // ID of the accessibility tree that this event applies to. | 95 // ID of the accessibility tree that this event applies to. |
78 IPC_STRUCT_MEMBER(int, tree_id) | 96 IPC_STRUCT_MEMBER(int, tree_id) |
79 | 97 |
80 // The global offset of all coordinates in this accessibility tree. | 98 // The global offset of all coordinates in this accessibility tree. |
81 IPC_STRUCT_MEMBER(gfx::Vector2d, location_offset) | 99 IPC_STRUCT_MEMBER(gfx::Vector2d, location_offset) |
82 | 100 |
83 // The tree update. | 101 // The tree update. |
84 IPC_STRUCT_MEMBER(ui::AXTreeUpdate<ui::AXNodeData>, update) | 102 IPC_STRUCT_MEMBER(ui::AXTreeUpdate, update) |
85 | 103 |
86 // Type of event. | 104 // Type of event. |
87 IPC_STRUCT_MEMBER(ui::AXEvent, event_type) | 105 IPC_STRUCT_MEMBER(ui::AXEvent, event_type) |
88 | 106 |
89 // ID of the node that the event applies to. | 107 // ID of the node that the event applies to. |
90 IPC_STRUCT_MEMBER(int, id) | 108 IPC_STRUCT_MEMBER(int, id) |
91 IPC_STRUCT_END() | 109 IPC_STRUCT_END() |
92 | 110 |
93 // Forward an accessibility message to an extension process where an | 111 // Forward an accessibility message to an extension process where an |
94 // extension is using the automation API to listen for accessibility events. | 112 // extension is using the automation API to listen for accessibility events. |
95 IPC_MESSAGE_ROUTED2(ExtensionMsg_AccessibilityEvent, | 113 IPC_MESSAGE_ROUTED2(ExtensionMsg_AccessibilityEvent, |
96 ExtensionMsg_AccessibilityEventParams, | 114 ExtensionMsg_AccessibilityEventParams, |
97 bool /* is_active_profile */) | 115 bool /* is_active_profile */) |
98 | 116 |
99 // Messages sent from the renderer to the browser. | 117 // Messages sent from the renderer to the browser. |
100 | 118 |
101 | 119 |
102 // Sent by the renderer to implement chrome.webstore.install(). | 120 // Sent by the renderer to implement chrome.webstore.install(). |
103 IPC_MESSAGE_ROUTED5(ExtensionHostMsg_InlineWebstoreInstall, | 121 IPC_MESSAGE_ROUTED5(ExtensionHostMsg_InlineWebstoreInstall, |
104 int32 /* install id */, | 122 int32 /* install id */, |
105 int32 /* return route id */, | 123 int32 /* return route id */, |
106 std::string /* Web Store item ID */, | 124 std::string /* Web Store item ID */, |
107 GURL /* requestor URL */, | 125 GURL /* requestor URL */, |
108 int /* listeners_mask */) | 126 int /* listeners_mask */) |
OLD | NEW |