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

Unified Diff: chrome/test/automation/tab_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/browser_proxy.cc ('k') | chrome/test/automation/tab_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/automation/tab_proxy.h
diff --git a/chrome/test/automation/tab_proxy.h b/chrome/test/automation/tab_proxy.h
index 1e393f5461eb0645a613c72b17425d56733355af..1984224d4428e2c43dfbd485d1a81fa36e88a31f 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);
« no previous file with comments | « chrome/test/automation/browser_proxy.cc ('k') | chrome/test/automation/tab_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698