Home
last modified time | relevance | path

Searched refs:menu_position (Results 1 – 3 of 3) sorted by relevance

/external/chromium_org/ui/views/controls/button/
Dmenu_button.cc78 gfx::Point menu_position(lb.right(), lb.bottom()); in Activate() local
80 menu_position.set_x(lb.x()); in Activate()
82 View::ConvertPointToScreen(this, &menu_position); in Activate()
84 menu_position.Offset(-menu_offset_.x(), menu_offset_.y()); in Activate()
86 menu_position.Offset(menu_offset_.x(), menu_offset_.y()); in Activate()
89 if (max_x_coordinate && max_x_coordinate <= menu_position.x()) in Activate()
90 menu_position.set_x(max_x_coordinate - 1); in Activate()
107 listener_->OnMenuButtonClicked(this, menu_position); in Activate()
/external/chromium_org/chrome/browser/ui/views/toolbar/
Dtoolbar_button.cc175 gfx::Point menu_position(lb.origin()); in ShowDropDownMenu() local
176 menu_position.Offset(0, lb.height() - 1); in ShowDropDownMenu()
178 menu_position.Offset(lb.width() - 1, 0); in ShowDropDownMenu()
180 View::ConvertPointToScreen(this, &menu_position); in ShowDropDownMenu()
196 if (menu_position.x() < left_bound) in ShowDropDownMenu()
197 menu_position.set_x(left_bound); in ShowDropDownMenu()
211 gfx::Rect(menu_position, gfx::Size(0, 0)), in ShowDropDownMenu()
223 gfx::Rect(menu_position, gfx::Size(0, 0)), in ShowDropDownMenu()
/external/chromium_org/ui/views/controls/combobox/
Dcombobox.cc740 gfx::Point menu_position(lb.origin()); in ShowDropDownMenu() local
744 menu_position.set_x(menu_position.x() + kMenuBorderWidthLeft); in ShowDropDownMenu()
745 menu_position.set_y(menu_position.y() + kMenuBorderWidthTop); in ShowDropDownMenu()
748 View::ConvertPointToScreen(this, &menu_position); in ShowDropDownMenu()
749 if (menu_position.x() < 0) in ShowDropDownMenu()
750 menu_position.set_x(0); in ShowDropDownMenu()
752 gfx::Rect bounds(menu_position, lb.size()); in ShowDropDownMenu()