diff options
Diffstat (limited to 'chrome/common/automation_messages_internal.h')
-rw-r--r-- | chrome/common/automation_messages_internal.h | 42 |
1 files changed, 27 insertions, 15 deletions
diff --git a/chrome/common/automation_messages_internal.h b/chrome/common/automation_messages_internal.h index a0a71ae..d6008e0 100644 --- a/chrome/common/automation_messages_internal.h +++ b/chrome/common/automation_messages_internal.h @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -11,10 +11,10 @@ #include "chrome/common/content_settings.h" #include "chrome/common/navigation_types.h" #include "chrome/test/automation/autocomplete_edit_proxy.h" -#include "gfx/rect.h" #include "googleurl/src/gurl.h" #include "ipc/ipc_message_macros.h" #include "net/url_request/url_request_status.h" +#include "ui/gfx/rect.h" @@ -24,7 +24,7 @@ // any other purpose in these message types. // NOTE: All the new IPC messages should go at the end. -// The IPC message IDs need to match the reference builds. Since we know +// The IPC message IDs need to match the reference builds. Since we now // define the IDs based on __LINE__, to allow these IPC messages to be // used to control an old version of Chrome we need the message IDs to // remain the same. This means that you should not change the line number @@ -364,7 +364,7 @@ IPC_MESSAGE_CONTROL3(AutomationMsg_WindowClick, // This message requests that a key press be performed. // Request: // int - the handle of the window that's the context for this click -// int - the app::KeyboardCode of the key that was pressed. +// int - the ui::KeyboardCode of the key that was pressed. // int - the flags which identify the modifiers (shift, ctrl, alt) // associated for, as defined in chrome/views/event.h IPC_MESSAGE_CONTROL3(AutomationMsg_WindowKeyPress, @@ -533,8 +533,8 @@ IPC_MESSAGE_ROUTED3(AutomationMsg_OpenURL, // - int: handle of the tab // Response: // - bool: whether the operation was successful. -IPC_SYNC_MESSAGE_CONTROL1_0(AutomationMsg_WaitForTabToBeRestored, - int) +IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_WaitForTabToBeRestored, + int, bool) // This message is an outgoing message from Chrome to an external host. // It is a notification that a navigation happened @@ -653,7 +653,7 @@ IPC_SYNC_MESSAGE_CONTROL4_1(AutomationMsg_SavePage, IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_AutocompleteEditGetText, int /* autocomplete edit handle */, bool /* the requested autocomplete edit exists */, - std::wstring /* omnibox text */) + string16 /* omnibox text */) // This message sets the text being displayed in the AutocompleteEdit. The // first parameter is the handle to the omnibox and the second parameter is @@ -662,7 +662,7 @@ IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_AutocompleteEditGetText, // completed. IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_AutocompleteEditSetText, int /* autocomplete edit handle */, - std::wstring /* text to set */, + string16 /* text to set */, bool /* the requested autocomplete edit exists */) // This message requests if a query to a autocomplete provider is still in @@ -755,16 +755,16 @@ IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_BookmarkBarVisibility, // returns -1 if an error occurred. IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_GetInfoBarCount, int /* tab_handle */, - int /* info bar count */) + size_t /* info bar count */) // This message triggers the action associated with the "accept" button in // the info-bar at the specified index. If |wait for navigation| is true, it // won't return until a navigation has occurred. IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_ClickInfoBarAccept, int /* tab_handle */, - int /* info bar index */, + size_t /* info bar index */, bool /* wait for navigation */, - +// This line blank on purpose, see comment atop file about __LINE__. /* navigation result */ AutomationMsg_NavigationResponseValues) @@ -779,7 +779,7 @@ IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_GetLastNavigationTime, IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_WaitForNavigation, int /* tab_handle */, int64 /* last navigation time */, - +// This line blank on purpose, see comment atop file about __LINE__. /* navigation result */ AutomationMsg_NavigationResponseValues) @@ -958,7 +958,7 @@ IPC_MESSAGE_ROUTED2(AutomationMsg_RequestData, IPC_MESSAGE_ROUTED2(AutomationMsg_RequestEnd, int /* request_id */, - URLRequestStatus /* status */) + net::URLRequestStatus /* status */) IPC_MESSAGE_CONTROL1(AutomationMsg_PrintAsync, int /* tab_handle */) @@ -1027,7 +1027,7 @@ IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_NavigateExternalTabAtIndex, // This message requests the provider to wait until the window count // reached the specified value. // Request: -// - int: target browser window count +// - int: target browser window count // Response: // - bool: whether the operation was successful. IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_WaitForBrowserWindowCountToBecome, @@ -1414,7 +1414,7 @@ IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_WaitForTabCountToBecome, // Waits for the infobar count to reach given number. IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_WaitForInfoBarCount, int /* tab handle */, - int /* target count */, + size_t /* target count */, bool /* success */) // Waits for the autocomplete edit to receive focus. @@ -1438,3 +1438,15 @@ IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_CaptureEntirePageAsPNG, int, FilePath, bool) + +// Notify the JavaScript engine in the render to change its parameters +// while performing stress testing. +IPC_MESSAGE_ROUTED3(AutomationMsg_JavaScriptStressTestControl, + int /* tab handle */, + int /* command */, + int /* type or run */) + +// This message posts a task to the PROCESS_LAUNCHER thread. Once processed +// the response is sent back. This is useful when you want to make sure all +// changes to the number of processes have completed. +IPC_SYNC_MESSAGE_CONTROL0_0(AutomationMsg_WaitForProcessLauncherThreadToGoIdle) |