diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 10:57:47 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 10:57:47 +0000 |
commit | 6d4480b50022d0eaee080b86be3a304a46b0454d (patch) | |
tree | b806197b02428264100c33d71d1fc9cba496e482 /chrome/test/automation/tab_proxy.h | |
parent | 55e57d4d2326bd98d6e14c92ba055754ef77b0e6 (diff) | |
download | chromium_src-6d4480b50022d0eaee080b86be3a304a46b0454d.zip chromium_src-6d4480b50022d0eaee080b86be3a304a46b0454d.tar.gz chromium_src-6d4480b50022d0eaee080b86be3a304a46b0454d.tar.bz2 |
Make basic bits of chrome/test/automation build on Linux.
Review URL: http://codereview.chromium.org/27060
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10331 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/tab_proxy.h')
-rw-r--r-- | chrome/test/automation/tab_proxy.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/test/automation/tab_proxy.h b/chrome/test/automation/tab_proxy.h index 1e393f54..1984224 100644 --- a/chrome/test/automation/tab_proxy.h +++ b/chrome/test/automation/tab_proxy.h @@ -5,7 +5,12 @@ #ifndef CHROME_TEST_AUTOMATION_TAB_PROXY_H_ #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_ +#include "build/build_config.h" + +#if defined(OS_WIN) #include <wtypes.h> +#endif + #include <string> #include <vector> @@ -127,9 +132,13 @@ class TabProxy : public AutomationResourceProxy { // the last tab. bool Close(bool wait_until_closed); +#if defined(OS_WIN) + // TODO(port): Use portable replacement for HWND. + // Gets the HWND that corresponds to the content area of this tab. // Returns true if the call was successful. bool GetHWND(HWND* hwnd) const; +#endif // defined(OS_WIN) // Gets the process ID that corresponds to the content area of this tab. // Returns true if the call was successful. If the specified tab has no @@ -197,6 +206,9 @@ class TabProxy : public AutomationResourceProxy { // page has been hidden. Return false if a failure happens. bool HideInterstitialPage(); +#if defined(OS_WIN) + // TODO(port): Use something portable. + // This sets the keyboard accelerators to be used by an externally // hosted tab. This call is not valid on a regular tab hosted within // Chrome. @@ -206,6 +218,7 @@ class TabProxy : public AutomationResourceProxy { // accelerator keys that it did not process. This gives the tab a chance // to handle the keys bool ProcessUnhandledAccelerator(const MSG& msg); +#endif // defined(OS_WIN) // Ask the tab to set focus to either the first or last element on the page. bool SetInitialFocus(bool reverse); |