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

Side by Side Diff: chrome/test/automation/automation_messages_internal.h

Issue 335047: Revert 30194 - Makes session restore on Chrome OS restore popups.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This header is meant to be included in multiple passes, hence no traditional 7 // This header is meant to be included in multiple passes, hence no traditional
8 // header guard. 8 // header guard.
9 // See ipc_message_macros.h for explanation of the macros and passes. 9 // See ipc_message_macros.h for explanation of the macros and passes.
10 10
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // This message requests the handle (int64 app-unique identifier) of the 126 // This message requests the handle (int64 app-unique identifier) of the
127 // window with the given (zero-based) index. On error, the returned handle 127 // window with the given (zero-based) index. On error, the returned handle
128 // value is 0. 128 // value is 0.
129 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_BrowserWindow, int, int) 129 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_BrowserWindow, int, int)
130 130
131 // This message requests the number of tabs in the window with the given 131 // This message requests the number of tabs in the window with the given
132 // handle. The return value contains the number of tabs, or -1 if the 132 // handle. The return value contains the number of tabs, or -1 if the
133 // request failed. 133 // request failed.
134 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_TabCount, int, int) 134 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_TabCount, int, int)
135 135
136 // This message requests the type of the window with the given handle. The
137 // return value contains the type (Browser::Type), or -1 if the request
138 // failed.
139 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_Type, int, int)
140
141 // This message requests the handle of the tab with the given (zero-based) 136 // This message requests the handle of the tab with the given (zero-based)
142 // index in the given app window. First parameter specifies the given window 137 // index in the given app window. First parameter specifies the given window
143 // handle, second specifies the given tab_index. On error, the returned handle 138 // handle, second specifies the given tab_index. On error, the returned handle
144 // value is 0. 139 // value is 0.
145 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_Tab, int, int, int) 140 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_Tab, int, int, int)
146 141
147 // This message requests the the title of the tab with the given handle. 142 // This message requests the the title of the tab with the given handle.
148 // The return value contains the size of the title string. On error, this 143 // The return value contains the size of the title string. On error, this
149 // value should be -1 and empty string. Note that the title can be empty in 144 // value should be -1 and empty string. Note that the title can be empty in
150 // which case the size would be 0. 145 // which case the size would be 0.
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_IsWindowActive, 357 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_IsWindowActive,
363 int /* view_handle */, 358 int /* view_handle */,
364 bool /* success */, 359 bool /* success */,
365 bool /* active */) 360 bool /* active */)
366 361
367 // Makes the specified window the active window. 362 // Makes the specified window the active window.
368 IPC_SYNC_MESSAGE_ROUTED1_0(AutomationMsg_ActivateWindow, 363 IPC_SYNC_MESSAGE_ROUTED1_0(AutomationMsg_ActivateWindow,
369 int /* view_handle */) 364 int /* view_handle */)
370 365
371 // Opens a new browser window. 366 // Opens a new browser window.
372 IPC_SYNC_MESSAGE_ROUTED2_0(AutomationMsg_OpenNewBrowserWindow, 367 IPC_SYNC_MESSAGE_ROUTED1_0(AutomationMsg_OpenNewBrowserWindow,
373 int /* Type (Browser::Type) */, 368 bool /* show */ )
374 bool /* show */ )
375 369
376 // This message requests the handle (int64 app-unique identifier) of the 370 // This message requests the handle (int64 app-unique identifier) of the
377 // current active top window. On error, the returned handle value is 0. 371 // current active top window. On error, the returned handle value is 0.
378 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_ActiveWindow, int) 372 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_ActiveWindow, int)
379 373
380 // This message requests the browser associated with the specified window 374 // This message requests the browser associated with the specified window
381 // handle. 375 // handle.
382 // The return value contains a success flag and the handle of the browser. 376 // The return value contains a success flag and the handle of the browser.
383 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_BrowserForWindow, 377 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_BrowserForWindow,
384 int /* window handle */, 378 int /* window handle */,
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 AutomationMsg_ExtensionResponseValues) 1138 AutomationMsg_ExtensionResponseValues)
1145 1139
1146 // Silently load the extension in the given directory. This expects an 1140 // Silently load the extension in the given directory. This expects an
1147 // extension expanded into the directory, not a crx file. 1141 // extension expanded into the directory, not a crx file.
1148 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_LoadExpandedExtension, 1142 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_LoadExpandedExtension,
1149 FilePath /* root directory of extension */, 1143 FilePath /* root directory of extension */,
1150 AutomationMsg_ExtensionResponseValues) 1144 AutomationMsg_ExtensionResponseValues)
1151 1145
1152 1146
1153 IPC_END_MESSAGES(Automation) 1147 IPC_END_MESSAGES(Automation)
OLDNEW
« no previous file with comments | « chrome/test/automated_ui_tests/automated_ui_test_base.cc ('k') | chrome/test/automation/automation_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698