OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BASE_UI_TEST_UTILS_H_ | 5 #ifndef CHROME_TEST_BASE_UI_TEST_UTILS_H_ |
6 #define CHROME_TEST_BASE_UI_TEST_UTILS_H_ | 6 #define CHROME_TEST_BASE_UI_TEST_UTILS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 #include <set> | 10 #include <set> |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "ui/base/window_open_disposition.h" | 26 #include "ui/base/window_open_disposition.h" |
27 #include "ui/events/keycodes/keyboard_codes.h" | 27 #include "ui/events/keycodes/keyboard_codes.h" |
28 #include "ui/gfx/native_widget_types.h" | 28 #include "ui/gfx/native_widget_types.h" |
29 #include "url/gurl.h" | 29 #include "url/gurl.h" |
30 | 30 |
31 class Browser; | 31 class Browser; |
32 class LocationBar; | 32 class LocationBar; |
33 class Profile; | 33 class Profile; |
34 | 34 |
35 namespace app_modal { | 35 namespace app_modal { |
36 class AppModalDialog; | 36 class JavaScriptAppModalDialog; |
37 } | 37 } |
38 | 38 |
39 namespace base { | 39 namespace base { |
40 class FilePath; | 40 class FilePath; |
41 } | 41 } |
42 | 42 |
43 namespace chrome { | 43 namespace chrome { |
44 struct NavigateParams; | 44 struct NavigateParams; |
45 } | 45 } |
46 | 46 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 // Generate the URL for testing a particular test. | 124 // Generate the URL for testing a particular test. |
125 // HTML for the tests is all located in | 125 // HTML for the tests is all located in |
126 // test_root_directory/dir/<file> | 126 // test_root_directory/dir/<file> |
127 // The returned path is GURL format. | 127 // The returned path is GURL format. |
128 GURL GetTestUrl(const base::FilePath& dir, const base::FilePath& file); | 128 GURL GetTestUrl(const base::FilePath& dir, const base::FilePath& file); |
129 | 129 |
130 // Generate the path of the build directory, relative to the source root. | 130 // Generate the path of the build directory, relative to the source root. |
131 bool GetRelativeBuildDirectory(base::FilePath* build_dir); | 131 bool GetRelativeBuildDirectory(base::FilePath* build_dir); |
132 | 132 |
133 // Blocks until an application modal dialog is showns and returns it. | 133 // Blocks until an application modal dialog is shown and returns it. |
134 app_modal::AppModalDialog* WaitForAppModalDialog(); | 134 app_modal::JavaScriptAppModalDialog* WaitForAppModalDialog(); |
135 | 135 |
136 // Performs a find in the page of the specified tab. Returns the number of | 136 // Performs a find in the page of the specified tab. Returns the number of |
137 // matches found. |ordinal| is an optional parameter which is set to the index | 137 // matches found. |ordinal| is an optional parameter which is set to the index |
138 // of the current match. |selection_rect| is an optional parameter which is set | 138 // of the current match. |selection_rect| is an optional parameter which is set |
139 // to the location of the current match. | 139 // to the location of the current match. |
140 int FindInPage(content::WebContents* tab, | 140 int FindInPage(content::WebContents* tab, |
141 const base::string16& search_string, | 141 const base::string16& search_string, |
142 bool forward, | 142 bool forward, |
143 bool case_sensitive, | 143 bool case_sensitive, |
144 int* ordinal, | 144 int* ordinal, |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 const Browser* browser_; | 310 const Browser* browser_; |
311 bool observed_; | 311 bool observed_; |
312 scoped_refptr<content::MessageLoopRunner> message_loop_runner_; | 312 scoped_refptr<content::MessageLoopRunner> message_loop_runner_; |
313 | 313 |
314 DISALLOW_COPY_AND_ASSIGN(BrowserActivationWaiter); | 314 DISALLOW_COPY_AND_ASSIGN(BrowserActivationWaiter); |
315 }; | 315 }; |
316 | 316 |
317 } // namespace ui_test_utils | 317 } // namespace ui_test_utils |
318 | 318 |
319 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_ | 319 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_ |
OLD | NEW |