Lines Matching refs:button

42 #include "ui/views/controls/button/menu_button.h"
191 ui_controls::MouseButton button,
195 ui_controls::SendMouseEventsNotifyWhenDone(button, state, closure);
285 // Calculate the preferred size so that one button doesn't fit, which
286 // triggers the overflow button to appear.
294 // we brute force search for a size that triggers the overflow button.
301 views::LabelButton* button = GetBookmarkButton(6);
302 while (button->visible()) {
395 // Clicks on first menu, makes sure button is depressed. Moves mouse to first
402 views::LabelButton* button = GetBookmarkButton(0);
403 ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT,
416 views::LabelButton* button = GetBookmarkButton(0);
417 ASSERT_TRUE(button->state() == views::CustomButton::STATE_PRESSED);
434 // Make sure button is no longer pushed.
435 views::LabelButton* button = GetBookmarkButton(0);
436 ASSERT_TRUE(button->state() == views::CustomButton::STATE_NORMAL);
453 views::LabelButton* button = GetBookmarkButton(0);
454 ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT,
490 // Make sure button is no longer pushed.
491 views::LabelButton* button = GetBookmarkButton(0);
492 ASSERT_TRUE(button->state() == views::CustomButton::STATE_NORMAL);
514 views::MenuButton* button = bb_view_->other_bookmarked_button();
515 ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT,
621 views::LabelButton* button = bb_view_->other_bookmarked_button();
622 ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT,
677 views::LabelButton* button = GetBookmarkButton(0);
678 ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT,
694 // Move mouse to center of menu and press button.
740 // Tests holding mouse down on overflow button, dragging such that menu pops up
745 // Press the mouse button on the overflow button. Don't release it though.
746 views::LabelButton* button = bb_view_->overflow_button();
747 ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT,
787 views::LabelButton* button = GetBookmarkButton(0);
788 ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT,
804 // Move mouse to center of menu and press button.
811 // Drag over other button.
833 // Drag over other button.
887 views::LabelButton* button = GetBookmarkButton(0);
888 ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT,
904 // Move mouse to center of menu and press button.
911 // Drag over other button.
932 // Drag over other button.
948 views::LabelButton* button = GetBookmarkButton(0);
949 gfx::Point loc(button->width() / 2, button->height() / 2);
950 views::View::ConvertPointToScreen(button, &loc);
986 // Moves the mouse over the scroll button and makes sure we get scrolling.
994 views::LabelButton* button = GetBookmarkButton(0);
995 ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT,
1012 // Move the mouse over the scroll button.
1063 views::LabelButton* button = GetBookmarkButton(0);
1064 ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT,
1184 views::LabelButton* button = bb_view_->other_bookmarked_button();
1185 ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT,
1263 views::LabelButton* button = bb_view_->other_bookmarked_button();
1264 ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT,
1315 // Press tab to give focus to the cancel button. Wait until the widget
1332 // And press enter so that the cancel button is selected.
1366 views::LabelButton* button = bb_view_->other_bookmarked_button();
1367 ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT,
1449 // right mouse button.
1450 views::LabelButton* button = GetBookmarkButton(0);
1451 ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::RIGHT,
1496 views::LabelButton* button = bb_view_->other_bookmarked_button();
1497 ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT,
1532 // Click on the delete button.
1568 views::LabelButton* button = GetBookmarkButton(0);
1569 ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT,
1582 views::LabelButton* button = GetBookmarkButton(0);
1583 ASSERT_TRUE(button->state() == views::CustomButton::STATE_PRESSED);
1614 // left mouse button.
1615 views::LabelButton* button = bb_view_->other_bookmarked_button();
1616 ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT,
1703 // left mouse button.
1704 views::LabelButton* button = bb_view_->other_bookmarked_button();
1705 ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT,
1718 views::LabelButton* button = GetBookmarkButton(0);
1719 gfx::Point button_center(button->width() / 2, button->height() / 2);
1720 views::View::ConvertPointToScreen(button, &button_center);
1760 // left mouse button.
1761 views::LabelButton* button = bb_view_->other_bookmarked_button();
1762 ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT,
1789 // Move the mouse back to the other bookmark button.
1790 views::LabelButton* button = bb_view_->other_bookmarked_button();
1791 gfx::Point button_center(button->width() / 2, button->height() / 2);
1792 views::View::ConvertPointToScreen(button, &button_center);
1828 // Verify that when clicking a mouse button outside a context menu,
1847 // Move the mouse to the Test View and press the left mouse button.
1859 // left mouse button.
1860 views::LabelButton* button = GetBookmarkButton(0);
1862 button, ui_controls::LEFT, ui_controls::DOWN | ui_controls::UP,
1872 // Move the mouse to the Test View and press the left mouse button.
1936 // The opened context menu should behave as it is from the folder button.
1945 // left mouse button.
1947 views::LabelButton* button = GetBookmarkButton(5);
1948 ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT,
1994 views::LabelButton* button = GetBookmarkButton(5);
1995 ASSERT_TRUE(button);
1996 EXPECT_EQ(ASCIIToUTF16("d"), button->GetText());