Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: chrome/common/extensions/chrome_extension_messages.h

Issue 1151523009: Forward accessibility events to the automation extension process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@step1
Patch Set: Own a message filter rather than inheriting Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/webstore/webstore_api_constants.h" 16 #include "chrome/common/extensions/api/webstore/webstore_api_constants.h"
16 #include "chrome/common/extensions/webstore_install_result.h" 17 #include "chrome/common/extensions/webstore_install_result.h"
17 #include "extensions/common/stack_frame.h" 18 #include "extensions/common/stack_frame.h"
18 #include "ipc/ipc_message_macros.h" 19 #include "ipc/ipc_message_macros.h"
20 #include "ui/accessibility/ax_enums.h"
21 #include "ui/accessibility/ax_node_data.h"
22 #include "ui/accessibility/ax_tree_update.h"
19 #include "url/gurl.h" 23 #include "url/gurl.h"
20 24
21 #define IPC_MESSAGE_START ChromeExtensionMsgStart 25 #define IPC_MESSAGE_START ChromeExtensionMsgStart
22 26
23 IPC_ENUM_TRAITS_MAX_VALUE(extensions::api::webstore::InstallStage, 27 IPC_ENUM_TRAITS_MAX_VALUE(extensions::api::webstore::InstallStage,
24 extensions::api::webstore::INSTALL_STAGE_INSTALLING) 28 extensions::api::webstore::INSTALL_STAGE_INSTALLING)
25 IPC_ENUM_TRAITS_MAX_VALUE(extensions::webstore_install::Result, 29 IPC_ENUM_TRAITS_MAX_VALUE(extensions::webstore_install::Result,
26 extensions::webstore_install::RESULT_LAST) 30 extensions::webstore_install::RESULT_LAST)
27 31
28 // Messages sent from the browser to the renderer. 32 // Messages sent from the browser to the renderer.
(...skipping 14 matching lines...) Expand all
43 int /* percent_downloaded */) 47 int /* percent_downloaded */)
44 48
45 // Send to renderer once the installation mentioned on 49 // Send to renderer once the installation mentioned on
46 // ExtensionHostMsg_InlineWebstoreInstall is complete. 50 // ExtensionHostMsg_InlineWebstoreInstall is complete.
47 IPC_MESSAGE_ROUTED4(ExtensionMsg_InlineWebstoreInstallResponse, 51 IPC_MESSAGE_ROUTED4(ExtensionMsg_InlineWebstoreInstallResponse,
48 int32 /* install id */, 52 int32 /* install id */,
49 bool /* whether the install was successful */, 53 bool /* whether the install was successful */,
50 std::string /* error */, 54 std::string /* error */,
51 extensions::webstore_install::Result /* result */) 55 extensions::webstore_install::Result /* result */)
52 56
57 IPC_STRUCT_BEGIN(ExtensionMsg_AccessibilityEventParams)
58 // ID of the accessibility tree that this event applies to.
59 IPC_STRUCT_MEMBER(int, tree_id)
60
61 // The global offset of all coordinates in this accessibility tree.
62 IPC_STRUCT_MEMBER(gfx::Vector2d, location_offset)
63
64 // The tree update.
65 IPC_STRUCT_MEMBER(ui::AXTreeUpdate, update)
66
67 // Type of event.
68 IPC_STRUCT_MEMBER(ui::AXEvent, event_type)
69
70 // ID of the node that the event applies to.
71 IPC_STRUCT_MEMBER(int, id)
72 IPC_STRUCT_END()
73
not at google - send to devlin 2015/06/04 23:03:29 extra \n
dmazzoni 2015/06/08 18:02:57 Done.
74
75 // Forward an accessibility message to an extension process where an
76 // extension is using the automation API to listen for accessibility events.
77 IPC_MESSAGE_ROUTED1(ExtensionMsg_AccessibilityEvent,
78 ExtensionMsg_AccessibilityEventParams)
79
53 // Messages sent from the renderer to the browser. 80 // Messages sent from the renderer to the browser.
54 81
55 82
56 // Sent by the renderer to implement chrome.webstore.install(). 83 // Sent by the renderer to implement chrome.webstore.install().
57 IPC_MESSAGE_ROUTED5(ExtensionHostMsg_InlineWebstoreInstall, 84 IPC_MESSAGE_ROUTED5(ExtensionHostMsg_InlineWebstoreInstall,
58 int32 /* install id */, 85 int32 /* install id */,
59 int32 /* return route id */, 86 int32 /* return route id */,
60 std::string /* Web Store item ID */, 87 std::string /* Web Store item ID */,
61 GURL /* requestor URL */, 88 GURL /* requestor URL */,
62 int /* listeners_mask */) 89 int /* listeners_mask */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698