Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Defines the IPC messages used by the automation interface. | 5 // Defines the IPC messages used by the automation interface. |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 880 // On error, the returned handle value is 0. | 880 // On error, the returned handle value is 0. |
| 881 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_FindNormalBrowserWindow, | 881 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_FindNormalBrowserWindow, |
| 882 int) | 882 int) |
| 883 | 883 |
| 884 // This message requests the number of normal browser windows, i.e. normal | 884 // This message requests the number of normal browser windows, i.e. normal |
| 885 // type and non-incognito mode that the app currently has open. The return | 885 // type and non-incognito mode that the app currently has open. The return |
| 886 // value is the number of windows. | 886 // value is the number of windows. |
| 887 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_NormalBrowserWindowCount, | 887 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_NormalBrowserWindowCount, |
| 888 int) | 888 int) |
| 889 | 889 |
| 890 // Used to put the browser into "extension automation mode" for a given | 890 // DEPRECATED MESSAGE - But we must leave this comment and message so as |
| 891 // set of Chrome Extensions API functions for the current profile, or turn | 891 // not to perturb line numbers (see comment at top of file re __LINE__). |
| 892 // off automation mode. The specified tab is used as the conduit for all | 892 // (intentionally blank line) |
| 893 // automated API functions. It must be an external tab (as in | 893 // (intentionally blank line) |
| 894 // AutomationMsg_CreateExternalTab). | 894 // (intentionally blank line) |
| 895 IPC_MESSAGE_CONTROL2(AutomationMsg_SetEnableExtensionAutomation, | 895 IPC_MESSAGE_CONTROL2(AutomationMsg_DeprecatedMessageOne, |
| 896 // Tab handle. | 896 // (intentionally blank line) |
| 897 int, | 897 int, |
| 898 // Empty to disable automation, non-empty to enable | 898 // (intentionally blank line) |
| 899 // automation of the specified API functions, single | 899 // (intentionally blank line) |
| 900 // entry of "*" to enable automation of all API | 900 // (intentionally blank line) |
| 901 // functions. | 901 // (intentionally blank line) |
| 902 std::vector<std::string>) | 902 int) |
| 903 | 903 |
| 904 // This message tells the browser to start using the new proxy configuration | 904 // This message tells the browser to start using the new proxy configuration |
| 905 // represented by the given JSON string. The parameters used in the JSON | 905 // represented by the given JSON string. The parameters used in the JSON |
| 906 // string are defined in automation_constants.h. | 906 // string are defined in automation_constants.h. |
| 907 IPC_MESSAGE_CONTROL1(AutomationMsg_SetProxyConfig, | 907 IPC_MESSAGE_CONTROL1(AutomationMsg_SetProxyConfig, |
| 908 std::string /* proxy_config_json_string */) | 908 std::string /* proxy_config_json_string */) |
| 909 | 909 |
| 910 // Sets Download Shelf visibility for the specified browser. | 910 // Sets Download Shelf visibility for the specified browser. |
| 911 IPC_SYNC_MESSAGE_CONTROL2_0(AutomationMsg_SetShelfVisibility, | 911 IPC_SYNC_MESSAGE_CONTROL2_0(AutomationMsg_SetShelfVisibility, |
| 912 int /* browser_handle */, | 912 int /* browser_handle */, |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1126 | 1126 |
| 1127 // Sent by automation provider - go to history entry via automation. | 1127 // Sent by automation provider - go to history entry via automation. |
| 1128 IPC_MESSAGE_ROUTED1(AutomationMsg_RequestGoToHistoryEntryOffset, | 1128 IPC_MESSAGE_ROUTED1(AutomationMsg_RequestGoToHistoryEntryOffset, |
| 1129 int) // numbers of entries (negative or positive) | 1129 int) // numbers of entries (negative or positive) |
| 1130 | 1130 |
| 1131 // Silently install the extension in the given crx file. | 1131 // Silently install the extension in the given crx file. |
| 1132 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_InstallExtension, | 1132 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_InstallExtension, |
| 1133 FilePath /* full path to crx file */, | 1133 FilePath /* full path to crx file */, |
| 1134 AutomationMsg_ExtensionResponseValues) | 1134 AutomationMsg_ExtensionResponseValues) |
| 1135 | 1135 |
| 1136 // Silently load the extension in the given directory. This expects an | 1136 // DEPRECATED MESSAGE - But we must leave this comment and message so as |
|
Paweł Hajdan Jr.
2011/04/05 17:26:33
Could you add "TODO(phajdan.jr): Remove when the r
Jói
2011/04/05 18:47:10
One of the messages' comments didn't have room for
Paweł Hajdan Jr.
2011/04/05 19:47:03
That's fine, thanks. LGTM.
| |
| 1137 // extension expanded into the directory, not a crx file. | 1137 // not to perturb line numbers (see comment at top of file re __LINE__). |
| 1138 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_LoadExpandedExtension, | 1138 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DeprecatedMessageTwo, |
| 1139 FilePath /* root directory of extension */, | 1139 int, |
| 1140 AutomationMsg_ExtensionResponseValues) | 1140 int) |
| 1141 | 1141 |
| 1142 // Retrieves a list of the root directories of all enabled extensions | 1142 // DEPRECATED MESSAGE - But we must leave this comment and message so as |
| 1143 // that have been installed into Chrome by dropping a .crx file onto | 1143 // not to perturb line numbers (see comment at top of file re __LINE__). |
| 1144 // Chrome or an equivalent action (including loaded extensions). | 1144 // (intentionally blank line) |
| 1145 // Other types of extensions are not included on the list (e.g. "component", | 1145 // (intentionally blank line) |
| 1146 // "app" or "external" extensions) since since CEEE does not yet support them | 1146 // (intentionally blank line) |
| 1147 // (and it actually only support a single extension in its profile for now). | 1147 // (intentionally blank line) |
| 1148 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_GetEnabledExtensions, | 1148 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_DeprecatedMessageThree, |
| 1149 std::vector<FilePath>) | 1149 int) |
| 1150 | 1150 |
| 1151 // This message requests the type of the window with the given handle. The | 1151 // This message requests the type of the window with the given handle. The |
| 1152 // return value contains the type (Browser::Type), or -1 if the request | 1152 // return value contains the type (Browser::Type), or -1 if the request |
| 1153 // failed. | 1153 // failed. |
| 1154 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_Type, | 1154 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_Type, |
| 1155 int, | 1155 int, |
| 1156 int) | 1156 int) |
| 1157 | 1157 |
| 1158 // Opens a new browser window of a specific type. | 1158 // Opens a new browser window of a specific type. |
| 1159 IPC_SYNC_MESSAGE_CONTROL2_0(AutomationMsg_OpenNewBrowserWindowOfType, | 1159 IPC_SYNC_MESSAGE_CONTROL2_0(AutomationMsg_OpenNewBrowserWindowOfType, |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1462 | 1462 |
| 1463 // This message is an outgoing message from Chrome to an external host. | 1463 // This message is an outgoing message from Chrome to an external host. |
| 1464 // It is a notification that a popup window position or dimentions have | 1464 // It is a notification that a popup window position or dimentions have |
| 1465 // changed | 1465 // changed |
| 1466 // Request: | 1466 // Request: |
| 1467 // gfx::Rect - the bounds of the window | 1467 // gfx::Rect - the bounds of the window |
| 1468 // Response: | 1468 // Response: |
| 1469 // None expected | 1469 // None expected |
| 1470 IPC_MESSAGE_ROUTED1(AutomationMsg_MoveWindow, | 1470 IPC_MESSAGE_ROUTED1(AutomationMsg_MoveWindow, |
| 1471 gfx::Rect /* window position and dimentions */) | 1471 gfx::Rect /* window position and dimentions */) |
| OLD | NEW |