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

Unified Diff: chrome/test/automation/browser_proxy.h

Issue 27060: Make basic bits of chrome/test/automation build on Linux. (Closed)
Patch Set: use base::kNoTimeout Created 11 years, 10 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
« no previous file with comments | « chrome/test/automation/automation_proxy.cc ('k') | chrome/test/automation/browser_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/automation/browser_proxy.h
diff --git a/chrome/test/automation/browser_proxy.h b/chrome/test/automation/browser_proxy.h
index 9a619932ec15e76c13e95a6d29d2060bc9d35146..cc27d61f7f902bc2a2ffbe65fc75475b7210254d 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
« no previous file with comments | « chrome/test/automation/automation_proxy.cc ('k') | chrome/test/automation/browser_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698