OLD | NEW |
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_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ | 5 #ifndef CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ |
6 #define CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ | 6 #define CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ |
7 | 7 |
8 // This takes an input file of commands, which consist of a series of | 8 // This takes an input file of commands, which consist of a series of |
9 // actions, and runs every command, reporting the status of each one | 9 // actions, and runs every command, reporting the status of each one |
10 // to an output file once all the commands have been run. | 10 // to an output file once all the commands have been run. |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 // <DragTabRight/> - Calls DragActiveTab(true, false) (attempt to drag right) | 335 // <DragTabRight/> - Calls DragActiveTab(true, false) (attempt to drag right) |
336 // <DragTabLeft/> - Calls DragActiveTab(false, false) (attempt to drag left) | 336 // <DragTabLeft/> - Calls DragActiveTab(false, false) (attempt to drag left) |
337 // <DragTabOut/> - Calls DragActiveTab(false, true) (attempt to drag tab out) | 337 // <DragTabOut/> - Calls DragActiveTab(false, true) (attempt to drag tab out) |
338 bool DragActiveTab(bool drag_right, bool drag_out); | 338 bool DragActiveTab(bool drag_right, bool drag_out); |
339 | 339 |
340 // Utility functions -------------------------------------------------------- | 340 // Utility functions -------------------------------------------------------- |
341 | 341 |
342 // Returns the WindowProxy associated with the given BrowserProxy | 342 // Returns the WindowProxy associated with the given BrowserProxy |
343 // (transferring ownership of the pointer to the caller) and brings that | 343 // (transferring ownership of the pointer to the caller) and brings that |
344 // window to the top. | 344 // window to the top. |
345 WindowProxy* GetAndActivateWindowForBrowser(BrowserProxy* browser); | 345 scoped_refptr<WindowProxy> GetAndActivateWindowForBrowser(BrowserProxy* browse
r); |
346 | 346 |
347 // Calls SimulateOSKeyPress on the active window. Simulates a key press at | 347 // Calls SimulateOSKeyPress on the active window. Simulates a key press at |
348 // the OS level. |key| is the key pressed and |flags| specifies which | 348 // the OS level. |key| is the key pressed and |flags| specifies which |
349 // modifiers keys are also pressed (as defined in chrome/views/event.h). | 349 // modifiers keys are also pressed (as defined in chrome/views/event.h). |
350 bool SimulateKeyPressInActiveWindow(wchar_t key, int flags); | 350 bool SimulateKeyPressInActiveWindow(wchar_t key, int flags); |
351 | 351 |
352 // Opens init file, reads it into the reader, and closes the file. | 352 // Opens init file, reads it into the reader, and closes the file. |
353 // Returns false if there are any errors. | 353 // Returns false if there are any errors. |
354 bool InitXMLReader(); | 354 bool InitXMLReader(); |
355 | 355 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 // results. | 441 // results. |
442 bool debug_logging_enabled_; | 442 bool debug_logging_enabled_; |
443 | 443 |
444 // A delay in second we wait for after each action. Useful for debugging. | 444 // A delay in second we wait for after each action. Useful for debugging. |
445 int post_action_delay_; | 445 int post_action_delay_; |
446 | 446 |
447 DISALLOW_COPY_AND_ASSIGN(AutomatedUITest); | 447 DISALLOW_COPY_AND_ASSIGN(AutomatedUITest); |
448 }; | 448 }; |
449 | 449 |
450 #endif // CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ | 450 #endif // CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ |
OLD | NEW |