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

Side by Side Diff: chrome/test/ui_test_utils.h

Issue 251064: Fix focus restore bug in find-in-bar (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months 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
« no previous file with comments | « chrome/browser/views/find_bar_host_interactive_uitest.cc ('k') | chrome/test/ui_test_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_UI_TEST_UTILS_H_ 5 #ifndef CHROME_TEST_UI_TEST_UTILS_H_
6 #define CHROME_TEST_UI_TEST_UTILS_H_ 6 #define CHROME_TEST_UI_TEST_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 // Causes the specified tab to crash. Blocks until it is crashed. 105 // Causes the specified tab to crash. Blocks until it is crashed.
106 void CrashTab(TabContents* tab); 106 void CrashTab(TabContents* tab);
107 107
108 // Waits for the focus to change in the specified RenderViewHost. 108 // Waits for the focus to change in the specified RenderViewHost.
109 void WaitForFocusChange(RenderViewHost* rvh); 109 void WaitForFocusChange(RenderViewHost* rvh);
110 110
111 // Waits for the renderer to return focus to the browser (happens through tab 111 // Waits for the renderer to return focus to the browser (happens through tab
112 // traversal). 112 // traversal).
113 void WaitForFocusInBrowser(Browser* browser); 113 void WaitForFocusInBrowser(Browser* browser);
114
115 // Performs a find in the page of the specified tab. Returns the number of
116 // matches found. |ordinal| is an optional parameter which is set to the index
117 // of the current match.
118 int FindInPage(TabContents* tab,
119 const string16& search_string,
120 bool forward,
121 bool case_sensitive,
122 int* ordinal);
114 } 123 }
115 124
116 #endif // CHROME_TEST_UI_TEST_UTILS_H_ 125 #endif // CHROME_TEST_UI_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/find_bar_host_interactive_uitest.cc ('k') | chrome/test/ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698