summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_focus_uitest.cc
diff options
context:
space:
mode:
authorpvalchev@google.com <pvalchev@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-09 19:52:16 +0000
committerpvalchev@google.com <pvalchev@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-09 19:52:16 +0000
commit753efc479384c254e263fd11390846a060fa6ce0 (patch)
tree488097f0622c5d744059f3c2ada4894b683c5305 /chrome/browser/browser_focus_uitest.cc
parent5e4d24d67febed160e2020f5c8f13d8073921fc4 (diff)
downloadchromium_src-753efc479384c254e263fd11390846a060fa6ce0.zip
chromium_src-753efc479384c254e263fd11390846a060fa6ce0.tar.gz
chromium_src-753efc479384c254e263fd11390846a060fa6ce0.tar.bz2
BSD ifdefs, etc. necessary for chrome/
Review URL: http://codereview.chromium.org/656009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41067 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_focus_uitest.cc')
-rw-r--r--chrome/browser/browser_focus_uitest.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/browser_focus_uitest.cc b/chrome/browser/browser_focus_uitest.cc
index 05b45205..47bace1 100644
--- a/chrome/browser/browser_focus_uitest.cc
+++ b/chrome/browser/browser_focus_uitest.cc
@@ -28,7 +28,7 @@
#include "chrome/browser/views/tab_contents/tab_contents_container.h"
#endif
-#if defined(OS_LINUX)
+#if defined(TOOLKIT_USES_GTK)
#include "chrome/browser/gtk/view_id_util.h"
#endif
@@ -74,7 +74,7 @@ class BrowserFocusTest : public InProcessBrowserTest {
// TODO(jcampan): retrieve the WidgetWin and show/hide on it instead of
// using Windows API.
::ShowWindow(window, SW_HIDE);
-#elif defined(OS_LINUX)
+#elif defined(TOOLKIT_USES_GTK)
gtk_widget_hide(GTK_WIDGET(window));
#else
NOTIMPLEMENTED();
@@ -86,7 +86,7 @@ class BrowserFocusTest : public InProcessBrowserTest {
// TODO(jcampan): retrieve the WidgetWin and show/hide on it instead of
// using Windows API.
::ShowWindow(window, SW_SHOW);
-#elif defined(OS_LINUX)
+#elif defined(TOOLKIT_USES_GTK)
gtk_widget_hide(GTK_WIDGET(window));
#else
NOTIMPLEMENTED();
@@ -169,7 +169,7 @@ class TestInterstitialPage : public InterstitialPage {
} // namespace
IN_PROC_BROWSER_TEST_F(BrowserFocusTest, ClickingMovesFocus) {
-#if defined(OS_LINUX)
+#if defined(USE_X11)
// It seems we have to wait a little bit for the widgets to spin up before
// we can start clicking on them.
MessageLoop::current()->PostDelayedTask(FROM_HERE,
@@ -377,8 +377,8 @@ IN_PROC_BROWSER_TEST_F(BrowserFocusTest, BackgroundBrowserDontStealFocus) {
Browser* focused_browser = NULL;
Browser* unfocused_browser = NULL;
-#if defined(OS_LINUX)
- // On Linux, calling Activate() is not guaranteed to move focus, so we have
+#if defined(USE_X11)
+ // On X11, calling Activate() is not guaranteed to move focus, so we have
// to figure out which browser does have focus.
if (browser2->window()->IsActive()) {
focused_browser = browser2;