Index: chrome/test/automation/tab_proxy.cc |
=================================================================== |
--- chrome/test/automation/tab_proxy.cc (revision 6273) |
+++ chrome/test/automation/tab_proxy.cc (working copy) |
@@ -121,7 +121,8 @@ |
int TabProxy::FindInPage(const std::wstring& search_string, |
FindInPageDirection forward, |
FindInPageCase match_case, |
- bool find_next) { |
+ bool find_next, |
+ int* active_ordinal) { |
if (!is_valid()) |
return -1; |
@@ -136,14 +137,18 @@ |
bool succeeded = sender_->SendAndWaitForResponse( |
new AutomationMsg_FindRequest(0, handle_, request), |
&response, |
- AutomationMsg_FindInPageResponse::ID); |
+ AutomationMsg_FindInPageResponse2::ID); |
if (!succeeded) |
return -1; |
void* iter = NULL; |
+ int ordinal; |
int matches_found; |
- AutomationMsg_FindInPageResponse::Read(response, &matches_found); |
- |
+ response->ReadInt(&iter, &ordinal); |
+ response->ReadInt(&iter, &matches_found); |
+ if (active_ordinal) |
+ *active_ordinal = ordinal; |
+ delete response; |
return matches_found; |
} |