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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc

Issue 97943002: Enable revealing the top-of-window views in immersive fullscreen when the owning window is inactive (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/wm/immersive_fullscreen_controller_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.h" 5 #include "chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.h"
6 6
7 #include "ash/wm/window_state.h" 7 #include "ash/wm/window_state.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1680 matching lines...) Expand 10 before | Expand all | Expand 10 after
1691 ASSERT_FALSE(tab_strip2->IsImmersiveStyle()); 1691 ASSERT_FALSE(tab_strip2->IsImmersiveStyle());
1692 1692
1693 // Release the mouse, stopping the drag session. 1693 // Release the mouse, stopping the drag session.
1694 ASSERT_TRUE(ReleaseInput()); 1694 ASSERT_TRUE(ReleaseInput());
1695 ASSERT_FALSE(tab_strip2->IsDragSessionActive()); 1695 ASSERT_FALSE(tab_strip2->IsDragSessionActive());
1696 ASSERT_FALSE(tab_strip->IsDragSessionActive()); 1696 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1697 ASSERT_FALSE(TabDragController::IsActive()); 1697 ASSERT_FALSE(TabDragController::IsActive());
1698 EXPECT_EQ("0 100", IDString(browser2->tab_strip_model())); 1698 EXPECT_EQ("0 100", IDString(browser2->tab_strip_model()));
1699 EXPECT_EQ("1", IDString(browser()->tab_strip_model())); 1699 EXPECT_EQ("1", IDString(browser()->tab_strip_model()));
1700 1700
1701 // Move the mouse off of browser2's top chrome.
1702 aura::Window* primary_root = roots[0];
1703 ASSERT_TRUE(ui_test_utils::SendMouseMoveSync(
1704 primary_root->GetBoundsInScreen().CenterPoint()));
1705
1701 // The first browser window should not be in immersive fullscreen. 1706 // The first browser window should not be in immersive fullscreen.
1702 // browser2 should still be in immersive fullscreen, but the top chrome should 1707 // browser2 should still be in immersive fullscreen, but the top chrome should
1703 // no longer be revealed. 1708 // no longer be revealed.
1704 BrowserView* browser_view = BrowserView::GetBrowserViewForBrowser(browser()); 1709 BrowserView* browser_view = BrowserView::GetBrowserViewForBrowser(browser());
1705 EXPECT_FALSE(browser_view->immersive_mode_controller()->IsEnabled()); 1710 EXPECT_FALSE(browser_view->immersive_mode_controller()->IsEnabled());
1706 1711
1707 EXPECT_TRUE(immersive_controller2->IsEnabled()); 1712 EXPECT_TRUE(immersive_controller2->IsEnabled());
1708 EXPECT_FALSE(immersive_controller2->IsRevealed()); 1713 EXPECT_FALSE(immersive_controller2->IsRevealed());
1709 EXPECT_TRUE(tab_strip2->IsImmersiveStyle()); 1714 EXPECT_TRUE(tab_strip2->IsImmersiveStyle());
1710 } 1715 }
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
2179 DetachToDockedTabDragControllerTest, 2184 DetachToDockedTabDragControllerTest,
2180 ::testing::Values("mouse", "mouse docked")); 2185 ::testing::Values("mouse", "mouse docked"));
2181 INSTANTIATE_TEST_CASE_P(TabDragging, 2186 INSTANTIATE_TEST_CASE_P(TabDragging,
2182 DetachToBrowserTabDragControllerTestTouch, 2187 DetachToBrowserTabDragControllerTestTouch,
2183 ::testing::Values("touch", "touch docked")); 2188 ::testing::Values("touch", "touch docked"));
2184 #else 2189 #else
2185 INSTANTIATE_TEST_CASE_P(TabDragging, 2190 INSTANTIATE_TEST_CASE_P(TabDragging,
2186 DetachToBrowserTabDragControllerTest, 2191 DetachToBrowserTabDragControllerTest,
2187 ::testing::Values("mouse")); 2192 ::testing::Values("mouse"));
2188 #endif 2193 #endif
OLDNEW
« no previous file with comments | « ash/wm/immersive_fullscreen_controller_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698