| 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 // IPC messages for extensions. | 5 // IPC messages for extensions. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // When to inject the code. | 128 // When to inject the code. |
| 129 IPC_STRUCT_MEMBER(int, run_at) | 129 IPC_STRUCT_MEMBER(int, run_at) |
| 130 | 130 |
| 131 // Whether to execute code in the main world (as opposed to an isolated | 131 // Whether to execute code in the main world (as opposed to an isolated |
| 132 // world). | 132 // world). |
| 133 IPC_STRUCT_MEMBER(bool, in_main_world) | 133 IPC_STRUCT_MEMBER(bool, in_main_world) |
| 134 | 134 |
| 135 // Whether the request is coming from a <webview>. | 135 // Whether the request is coming from a <webview>. |
| 136 IPC_STRUCT_MEMBER(bool, is_web_view) | 136 IPC_STRUCT_MEMBER(bool, is_web_view) |
| 137 | 137 |
| 138 // The script injection instance id of a <webview> if the request is comming |
| 139 // from a <webview>; else, the default instance id (0). |
| 140 IPC_STRUCT_MEMBER(int, instance_id) |
| 141 |
| 138 // Whether the caller is interested in the result value. Manifest-declared | 142 // Whether the caller is interested in the result value. Manifest-declared |
| 139 // content scripts and executeScript() calls without a response callback | 143 // content scripts and executeScript() calls without a response callback |
| 140 // are examples of when this will be false. | 144 // are examples of when this will be false. |
| 141 IPC_STRUCT_MEMBER(bool, wants_result) | 145 IPC_STRUCT_MEMBER(bool, wants_result) |
| 142 | 146 |
| 143 // The URL of the file that was injected, if any. | 147 // The URL of the file that was injected, if any. |
| 144 IPC_STRUCT_MEMBER(GURL, file_url) | 148 IPC_STRUCT_MEMBER(GURL, file_url) |
| 145 | 149 |
| 146 // Whether the code to be executed should be associated with a user gesture. | 150 // Whether the code to be executed should be associated with a user gesture. |
| 147 IPC_STRUCT_MEMBER(bool, user_gesture) | 151 IPC_STRUCT_MEMBER(bool, user_gesture) |
| (...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 780 int /* acc_obj_id */, | 784 int /* acc_obj_id */, |
| 781 base::string16 /* selector */) | 785 base::string16 /* selector */) |
| 782 | 786 |
| 783 // Result of a query selector request. | 787 // Result of a query selector request. |
| 784 // result_acc_obj_id is the accessibility tree ID of the result element; 0 | 788 // result_acc_obj_id is the accessibility tree ID of the result element; 0 |
| 785 // indicates no result. | 789 // indicates no result. |
| 786 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result, | 790 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result, |
| 787 int /* request_id */, | 791 int /* request_id */, |
| 788 ExtensionHostMsg_AutomationQuerySelector_Error /* error */, | 792 ExtensionHostMsg_AutomationQuerySelector_Error /* error */, |
| 789 int /* result_acc_obj_id */) | 793 int /* result_acc_obj_id */) |
| OLD | NEW |