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

Unified Diff: ash/root_window_controller_unittest.cc

Issue 280383009: Fixing invalid window opacity/visibility combination with the shelf (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Created 6 years, 7 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 | « no previous file | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/root_window_controller_unittest.cc
diff --git a/ash/root_window_controller_unittest.cc b/ash/root_window_controller_unittest.cc
index 3edd28013e160131fde6d374312f1c40f5da724c..4666eadcdf9297e5fab3b08627049abc560a676b 100644
--- a/ash/root_window_controller_unittest.cc
+++ b/ash/root_window_controller_unittest.cc
@@ -583,6 +583,13 @@ typedef test::NoSessionAshTestBase NoSessionRootWindowControllerTest;
// Make sure that an event handler exists for entire display area.
TEST_F(NoSessionRootWindowControllerTest, Event) {
+ // Hide the shelf since it might otherwise get an event target.
+ RootWindowController* controller = Shell::GetPrimaryRootWindowController();
+ ShelfLayoutManager* shelf_layout_manager =
+ controller->GetShelfLayoutManager();
+ shelf_layout_manager->SetAutoHideBehavior(
+ ash::SHELF_AUTO_HIDE_ALWAYS_HIDDEN);
+
aura::Window* root = Shell::GetPrimaryRootWindow();
const gfx::Size size = root->bounds().size();
aura::Window* event_target = root->GetEventHandlerForPoint(gfx::Point(0, 0));
« no previous file with comments | « no previous file | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698