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

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

Issue 13130: Fix issue 5079: Incorrect "Active match ordinal" count during Find-in-page... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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 #ifndef CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 5 #ifndef CHROME_TEST_AUTOMATION_TAB_PROXY_H_
6 #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 6 #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_
7 7
8 #include <wtypes.h> 8 #include <wtypes.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 bool IsFindWindowFullyVisible(bool* is_visible); 171 bool IsFindWindowFullyVisible(bool* is_visible);
172 172
173 // Get the x, y coordinates for the Find window. If animating, |x| and |y| 173 // Get the x, y coordinates for the Find window. If animating, |x| and |y|
174 // will be -1, -1. Returns false on failure. 174 // will be -1, -1. Returns false on failure.
175 bool GetFindWindowLocation(int* x, int* y); 175 bool GetFindWindowLocation(int* x, int* y);
176 176
177 // Starts a search within the current tab. The parameter |search_string| 177 // Starts a search within the current tab. The parameter |search_string|
178 // specifies what string to search for, |forward| specifies whether to search 178 // specifies what string to search for, |forward| specifies whether to search
179 // in forward direction, and |match_case| specifies case sensitivity 179 // in forward direction, and |match_case| specifies case sensitivity
180 // (true=case sensitive). |find_next| specifies whether this is a new search 180 // (true=case sensitive). |find_next| specifies whether this is a new search
181 // or a continuation of the old one. A return value of -1 indicates failure. 181 // or a continuation of the old one. |ordinal| is an optional paramater that
182 // returns the ordinal of the active match (also known as "the 7" part of
183 // "7 of 9". A return value of -1 indicates failure.
idana 2008/12/04 19:02:05 "7 of 9". -> "7 of 9").
182 int FindInPage(const std::wstring& search_string, FindInPageDirection forward, 184 int FindInPage(const std::wstring& search_string, FindInPageDirection forward,
183 FindInPageCase match_case, bool find_next); 185 FindInPageCase match_case, bool find_next, int* ordinal);
184 186
185 bool GetCookies(const GURL& url, std::string* cookies); 187 bool GetCookies(const GURL& url, std::string* cookies);
186 bool GetCookieByName(const GURL& url, 188 bool GetCookieByName(const GURL& url,
187 const std::string& name, 189 const std::string& name,
188 std::string* cookies); 190 std::string* cookies);
189 bool SetCookie(const GURL& url, const std::string& value); 191 bool SetCookie(const GURL& url, const std::string& value);
190 192
191 // Sends a InspectElement message for the current tab. |x| and |y| are the 193 // Sends a InspectElement message for the current tab. |x| and |y| are the
192 // coordinates that we want to simulate that the user is trying to inspect. 194 // coordinates that we want to simulate that the user is trying to inspect.
193 int InspectElement(int x, int y); 195 int InspectElement(int x, int y);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 // tab_proxy->SomeOperationThatTriggersAnAsynchronousNavigation(); 276 // tab_proxy->SomeOperationThatTriggersAnAsynchronousNavigation();
275 // tab_proxy->WaitForNavigation(last_nav_time); 277 // tab_proxy->WaitForNavigation(last_nav_time);
276 bool WaitForNavigation(int64 last_navigation_time); 278 bool WaitForNavigation(int64 last_navigation_time);
277 279
278 private: 280 private:
279 DISALLOW_COPY_AND_ASSIGN(TabProxy); 281 DISALLOW_COPY_AND_ASSIGN(TabProxy);
280 }; 282 };
281 283
282 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 284 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_
283 285
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698