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

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

Issue 2901583002: Fold AppModalDialog into its only subclass, JavaScriptAppModalDialog. (Closed)
Patch Set: fix collapse Created 3 years, 6 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
« no previous file with comments | « chrome/browser/unload_browsertest.cc ('k') | chrome/test/base/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) 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
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/unload_browsertest.cc ('k') | chrome/test/base/ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698