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

Unified Diff: chrome/test/automated_ui_tests/automated_ui_test_base.h

Issue 99268: Making CloseWindow and CloseTab automation API... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 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 side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698