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

Unified Diff: chrome/test/automation/window_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/tab_proxy.cc ('k') | chrome/test/automation/window_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/automation/window_proxy.h
diff --git a/chrome/test/automation/window_proxy.h b/chrome/test/automation/window_proxy.h
index 76c863e4776a78e0d2f6438eb38e07de3979f287..8bade17da5d2548fcc4318e17fa7345e619d5c0e 100644
--- a/chrome/test/automation/window_proxy.h
+++ b/chrome/test/automation/window_proxy.h
@@ -5,9 +5,13 @@
#ifndef CHROME_TEST_AUTOMATION_WINDOW_PROXY_H__
#define CHROME_TEST_AUTOMATION_WINDOW_PROXY_H__
-#include <string>
+#include "build/build_config.h"
+#if defined(OS_WIN)
#include <windows.h>
+#endif
+
+#include <string>
#include "base/thread.h"
#include "chrome/test/automation/automation_handle_tracker.h"
@@ -31,6 +35,9 @@ class WindowProxy : public AutomationResourceProxy {
: AutomationResourceProxy(tracker, sender, handle) {}
virtual ~WindowProxy() {}
+#if defined(OS_WIN)
+ // TODO(port): Use portable replacements for windowsisms.
+
// Gets the outermost HWND that corresponds to the given window.
// Returns true if the call was successful.
bool GetHWND(HWND* handle) const;
@@ -41,6 +48,7 @@ class WindowProxy : public AutomationResourceProxy {
// the mouse and pressing the button. So if there is a window on top of this
// window, the top window is clicked.
bool SimulateOSClick(const POINT& click, int flags);
+#endif // defined(OS_WIN)
// Simulates a key press at the OS level. |key| is the key pressed and
// |flags| specifies which modifiers keys are also pressed (as defined in
« no previous file with comments | « chrome/test/automation/tab_proxy.cc ('k') | chrome/test/automation/window_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698