Chromium Code Reviews| Index: chrome/test/automated_ui_tests/automated_ui_test_base.h |
| =================================================================== |
| --- chrome/test/automated_ui_tests/automated_ui_test_base.h (revision 14951) |
| +++ chrome/test/automated_ui_tests/automated_ui_test_base.h (working copy) |
| @@ -21,7 +21,17 @@ |
| // Actions |
| // NOTE: This list is sorted alphabetically. |
| + // All functions are synchronous unless specified with Async. |
| + // Close the selected tab in the current browser window. The function will |
| + // not try close the tab if it is the only tab of the last normal window. |
| + // Returns true if the tab is closed, false otherwise. |
|
Finnur
2009/05/01 04:05:49
Please document why we never close the last tab of
|
| + bool CloseActiveTab(); |
| + |
| + // Close the current browser window if it is not the only window left. |
| + // Returns true if the window is closed, false otherwise. |
|
Finnur
2009/05/01 04:05:49
Please document why we never close the last window
|
| + bool CloseActiveWindow(); |
| + |
| // Duplicates the current tab. |
| // Returns true if a duplicated tab is added. |
| bool DuplicateTab(); |
| @@ -59,6 +69,11 @@ |
| } |
| BrowserProxy* active_browser() const { return active_browser_.get(); } |
| + // Get the selected tab within the current active browser window, then |
| + // create a corresponding TabProxy and transfer the ownership to caller. |
| + // If success return the pointer to the newly created TabProxy and the |
| + // caller owns the TabProxy. Return NULL otherwise. |
| + TabProxy* GetActiveTab(); |
| private: |
| scoped_ptr<BrowserProxy> active_browser_; |