summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/tab_proxy.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-06 22:45:14 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-06 22:45:14 +0000
commit4eaf265da17a1dc133067296ab9a16b519f63bac (patch)
tree65cf7ca979067bef262230a66047dbc3b757a0c8 /chrome/test/automation/tab_proxy.h
parenta80edd4bf4e8f692fd02a7108a490d7921cc53b9 (diff)
downloadchromium_src-4eaf265da17a1dc133067296ab9a16b519f63bac.zip
chromium_src-4eaf265da17a1dc133067296ab9a16b519f63bac.tar.gz
chromium_src-4eaf265da17a1dc133067296ab9a16b519f63bac.tar.bz2
Handle review comments form previous change. Also, use enum types and not int in IPC messages to make things clearer.
Review URL: http://codereview.chromium.org/20140 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9351 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/tab_proxy.h')
-rw-r--r--chrome/test/automation/tab_proxy.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/chrome/test/automation/tab_proxy.h b/chrome/test/automation/tab_proxy.h
index 508de11..932f5c7 100644
--- a/chrome/test/automation/tab_proxy.h
+++ b/chrome/test/automation/tab_proxy.h
@@ -12,6 +12,7 @@
#include "chrome/browser/download/save_package.h"
#include "chrome/browser/tab_contents/navigation_entry.h"
#include "chrome/browser/tab_contents/security_style.h"
+#include "chrome/test/automation/automation_constants.h"
#include "chrome/test/automation/automation_handle_tracker.h"
class ConstrainedWindowProxy;
@@ -67,21 +68,19 @@ class TabProxy : public AutomationResourceProxy {
// Navigates to a url. This method accepts the same kinds of URL input that
// can be passed to Chrome on the command line. This is a synchronous call and
// hence blocks until the navigation completes.
- // Returns a status from AutomationMsg_NavigationResponseValues.
- int NavigateToURL(const GURL& url);
+ AutomationMsg_NavigationResponseValues NavigateToURL(const GURL& url);
// Navigates to a url. This is same as NavigateToURL with a timeout option.
// The function returns until the navigation completes or timeout (in
// milliseconds) occurs. If return after timeout, is_timeout is set to true.
- int NavigateToURLWithTimeout(const GURL& url, uint32 timeout_ms,
- bool* is_timeout);
+ AutomationMsg_NavigationResponseValues NavigateToURLWithTimeout(
+ const GURL& url, uint32 timeout_ms, bool* is_timeout);
// Navigates to a url in an externally hosted tab.
// This method accepts the same kinds of URL input that
// can be passed to Chrome on the command line. This is a synchronous call and
// hence blocks until the navigation completes.
- // Returns a status from AutomationMsg_NavigationResponseValues.
- int NavigateInExternalTab(const GURL& url);
+ AutomationMsg_NavigationResponseValues NavigateInExternalTab(const GURL& url);
// Navigates to a url. This is an asynchronous version of NavigateToURL.
// The function returns immediately after sending the LoadURL notification
@@ -99,16 +98,15 @@ class TabProxy : public AutomationResourceProxy {
// Equivalent to hitting the Back button. This is a synchronous call and
// hence blocks until the navigation completes.
- int GoBack();
+ AutomationMsg_NavigationResponseValues GoBack();
// Equivalent to hitting the Forward button. This is a synchronous call and
// hence blocks until the navigation completes.
- // Returns a status from AutomationMsg_NavigationResponseValues.
- int GoForward();
+ AutomationMsg_NavigationResponseValues GoForward();
// Equivalent to hitting the Reload button. This is a synchronous call and
// hence blocks until the navigation completes.
- int Reload();
+ AutomationMsg_NavigationResponseValues Reload();
// Closes the tab. This is synchronous, but does NOT block until the tab has
// closed, rather it blocks until the browser has initiated the close. Use
@@ -131,7 +129,6 @@ class TabProxy : public AutomationResourceProxy {
// Gets the HWND that corresponds to the content area of this tab.
// Returns true if the call was successful.
- // Returns a status from AutomationMsg_NavigationResponseValues.
bool GetHWND(HWND* hwnd) const;
// Gets the process ID that corresponds to the content area of this tab.