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

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

Issue 2500093003: Re-enable tabs_interactive_uitest for linux_aura (Closed)
Patch Set: based on comments Created 4 years, 1 month 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/test/BUILD.gn ('k') | chrome/test/base/interactive_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_INTERACTIVE_TEST_UTILS_H_ 5 #ifndef CHROME_TEST_BASE_INTERACTIVE_TEST_UTILS_H_
6 #define CHROME_TEST_BASE_INTERACTIVE_TEST_UTILS_H_ 6 #define CHROME_TEST_BASE_INTERACTIVE_TEST_UTILS_H_
7 7
8 #include "chrome/browser/ui/view_ids.h" 8 #include "chrome/browser/ui/view_ids.h"
9 #include "chrome/test/base/ui_test_utils.h" 9 #include "chrome/test/base/ui_test_utils.h"
10 #include "ui/base/test/ui_controls.h" 10 #include "ui/base/test/ui_controls.h"
11 11
12 namespace gfx { 12 namespace gfx {
13 class Point; 13 class Point;
14 } 14 }
15 15
16 #if defined(TOOLKIT_VIEWS) 16 #if defined(TOOLKIT_VIEWS)
17 namespace views { 17 namespace views {
18 class View; 18 class View;
19 } 19 }
20 #endif 20 #endif
21 21
22 namespace ui_test_utils { 22 namespace ui_test_utils {
23 23
24 // Activates browser window and wait it to be activated. Returns true on
25 // success.
26 bool ActivateBrowserWindow(Browser* browser) WARN_UNUSED_RESULT;
27
24 // Brings the native window for |browser| to the foreground. Returns true on 28 // Brings the native window for |browser| to the foreground. Returns true on
25 // success. 29 // success.
26 bool BringBrowserWindowToFront(const Browser* browser) WARN_UNUSED_RESULT; 30 bool BringBrowserWindowToFront(const Browser* browser) WARN_UNUSED_RESULT;
sky 2016/11/15 17:45:12 Aren't ActivateBrowserWindow and BringBrowserWindo
Qiang(Joe) Xu 2016/11/15 19:01:26 yes.. sorry for not noticing that : )
27 31
28 // Returns true if the View is focused. 32 // Returns true if the View is focused.
29 bool IsViewFocused(const Browser* browser, ViewID vid); 33 bool IsViewFocused(const Browser* browser, ViewID vid);
30 34
31 // Simulates a mouse click on a View in the browser. 35 // Simulates a mouse click on a View in the browser.
32 void ClickOnView(const Browser* browser, ViewID vid); 36 void ClickOnView(const Browser* browser, ViewID vid);
33 37
34 // Makes focus shift to the given View without clicking it. 38 // Makes focus shift to the given View without clicking it.
35 void FocusView(const Browser* browser, ViewID vid); 39 void FocusView(const Browser* browser, ViewID vid);
36 40
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // ui_controls_linux.cc and ui_controls_mac.cc 147 // ui_controls_linux.cc and ui_controls_mac.cc
144 void ClickTask(ui_controls::MouseButton button, 148 void ClickTask(ui_controls::MouseButton button,
145 int state, 149 int state,
146 const base::Closure& followup); 150 const base::Closure& followup);
147 151
148 } // namespace internal 152 } // namespace internal
149 153
150 } // namespace ui_test_utils 154 } // namespace ui_test_utils
151 155
152 #endif // CHROME_TEST_BASE_INTERACTIVE_TEST_UTILS_H_ 156 #endif // CHROME_TEST_BASE_INTERACTIVE_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/test/BUILD.gn ('k') | chrome/test/base/interactive_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698