summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/browser_proxy.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-25 10:57:47 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-25 10:57:47 +0000
commit6d4480b50022d0eaee080b86be3a304a46b0454d (patch)
treeb806197b02428264100c33d71d1fc9cba496e482 /chrome/test/automation/browser_proxy.h
parent55e57d4d2326bd98d6e14c92ba055754ef77b0e6 (diff)
downloadchromium_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/browser_proxy.h')
-rw-r--r--chrome/test/automation/browser_proxy.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/test/automation/browser_proxy.h b/chrome/test/automation/browser_proxy.h
index 9a61993..cc27d61 100644
--- a/chrome/test/automation/browser_proxy.h
+++ b/chrome/test/automation/browser_proxy.h
@@ -5,8 +5,14 @@
#ifndef CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_
#define CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_
+#include "build/build_config.h"
+
+#if defined(OS_WIN)
#include <windows.h>
+#endif
+
#include <string>
+
#include "chrome/test/automation/automation_handle_tracker.h"
class GURL;
@@ -116,6 +122,9 @@ class BrowserProxy : public AutomationResourceProxy {
// desktop.
bool ApplyAccelerator(int id);
+#if defined(OS_WIN)
+ // TODO(port): Use portable replacement for POINT.
+
// Performs a drag operation between the start and end points (both defined
// in window coordinates). |flags| specifies which buttons are pressed for
// the drag, as defined in chrome/views/event.h.
@@ -128,6 +137,7 @@ class BrowserProxy : public AutomationResourceProxy {
int flags, uint32 timeout_ms,
bool* is_timeout,
bool press_escape_en_route);
+#endif // defined(OS_WIN)
// Block the thread until the tab count changes.
// |count| is the original tab count.
@@ -156,12 +166,16 @@ class BrowserProxy : public AutomationResourceProxy {
// will be false. Returns false on failure.
bool IsFindWindowFullyVisible(bool* is_visible);
+#if defined(OS_WIN)
+ // TODO(port): Use portable equivalent of HWND.
+
// Gets the outermost HWND that corresponds to the given browser.
// Returns true if the call was successful.
// Note that ideally this should go and the version of WindowProxy should be
// used instead. We have to keep it for start_up_tests that test against a
// reference build.
bool GetHWND(HWND* handle) const;
+#endif // defined(OS_WIN)
// Run the specified command in the browser (see browser_commands.cc for the
// list of supported commands). Returns true if the command was successfully