Home | History | Annotate | Download | only in wm

Lines Matching defs:shelf

12 #include "ash/shelf/shelf_layout_manager.h"
13 #include "ash/shelf/shelf_widget.h"
126 return Shell::GetPrimaryRootWindowController()->shelf();
337 // it isn't over the shelf.
344 ShelfLayoutManager* shelf = shelf_layout_manager();
345 shelf->SetAutoHideBehavior(ash::SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS);
347 0, shelf->GetIdealBounds().y() - 10, 101, 102);
348 // Move |w1| to overlap the shelf.
359 // Make it visible, since visible shelf overlaps should be true.
368 EXPECT_EQ(SHELF_AUTO_HIDE, shelf->visibility_state());
372 EXPECT_EQ(SHELF_AUTO_HIDE, shelf->visibility_state());
373 EXPECT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf->auto_hide_state());
377 EXPECT_EQ(SHELF_AUTO_HIDE, shelf->visibility_state());
382 EXPECT_EQ(SHELF_HIDDEN, shelf->visibility_state());
386 EXPECT_EQ(SHELF_AUTO_HIDE, shelf->visibility_state());
390 // Move window so it obscures shelf.
400 EXPECT_EQ(SHELF_AUTO_HIDE, shelf->visibility_state());
401 EXPECT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf->auto_hide_state());
405 EXPECT_EQ(SHELF_AUTO_HIDE, shelf->visibility_state());
418 EXPECT_EQ(SHELF_AUTO_HIDE, shelf->visibility_state());
427 EXPECT_EQ(SHELF_AUTO_HIDE, shelf->visibility_state());
428 EXPECT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf->auto_hide_state());
433 EXPECT_EQ(SHELF_AUTO_HIDE, shelf->visibility_state());
441 EXPECT_EQ(SHELF_AUTO_HIDE, shelf->visibility_state());
442 EXPECT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf->auto_hide_state());
448 shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_NEVER);
452 // Move w1 to overlap shelf, it shouldn't change window overlaps shelf since
546 ShelfLayoutManager* shelf = shelf_layout_manager();
548 0, shelf->GetIdealBounds().y() - 10, 101, 102);
549 // Move |w1| to overlap the shelf.
574 ShelfLayoutManager* shelf = shelf_layout_manager();
575 const gfx::Rect w1_bounds(0, shelf->GetIdealBounds().y(), 100, 200);
576 // Move |w1| so that the top edge is the same as the top edge of the shelf.
634 // Force the shelf
635 ShelfLayoutManager* shelf = shelf_layout_manager();
636 shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_NEVER);
651 shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS);