diff options
Diffstat (limited to 'chrome/browser/chromeos/panels/panel_browsertest.cc')
-rw-r--r-- | chrome/browser/chromeos/panels/panel_browsertest.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/chromeos/panels/panel_browsertest.cc b/chrome/browser/chromeos/panels/panel_browsertest.cc index 961446f..5e47953 100644 --- a/chrome/browser/chromeos/panels/panel_browsertest.cc +++ b/chrome/browser/chromeos/panels/panel_browsertest.cc @@ -3,7 +3,6 @@ // found in the LICENSE file. #include "base/command_line.h" -#include "chrome/browser/chromeos/wm_ipc.h" #include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/browser_list.h" #include "chrome/browser/ui/browser_window.h" @@ -13,6 +12,10 @@ #include "content/browser/renderer_host/render_view_host.h" #include "third_party/cros_system_api/window_manager/chromeos_wm_ipc_enums.h" +#if defined(TOOLKIT_USES_GTK) +#include "chrome/browser/chromeos/wm_ipc.h" +#endif + namespace chromeos { class PanelTest : public InProcessBrowserTest { @@ -59,12 +62,15 @@ IN_PROC_BROWSER_TEST_F(PanelTest, PanelOpenSmall) { ASSERT_TRUE(new_browser); EXPECT_TRUE(new_browser->is_type_popup()); EXPECT_FALSE(new_browser->is_app()); + +#if defined(TOOLKIT_USES_GTK) // This window type tells the cros window manager to treat the window // as a panel. EXPECT_EQ( WM_IPC_WINDOW_CHROME_PANEL_CONTENT, WmIpc::instance()->GetWindowType( GTK_WIDGET(new_browser->window()->GetNativeHandle()), NULL)); +#endif } // Large popups should open as new tab. |