Searched refs:tooltip_rect (Results 1 - 2 of 2) sorted by relevance

/external/chromium_org/ash/shelf/
H A Dshelf_tooltip_manager_unittest.cc229 gfx::Rect tooltip_rect = GetTooltipWidget()->GetNativeWindow()->bounds(); local
230 ASSERT_FALSE(tooltip_rect.IsEmpty());
233 ui::MouseEvent mouse_event(ui::ET_MOUSE_MOVED, tooltip_rect.CenterPoint(),
234 tooltip_rect.CenterPoint(), ui::EF_NONE,
244 test_api.set_location(tooltip_rect.origin() + gfx::Vector2d(-1, -1));
259 gfx::Rect tooltip_rect = GetTooltipWidget()->GetNativeWindow()->bounds(); local
260 ASSERT_FALSE(tooltip_rect.IsEmpty());
263 ui::MouseEvent mouse_event(ui::ET_MOUSE_PRESSED, tooltip_rect.CenterPoint(),
264 tooltip_rect.CenterPoint(), ui::EF_NONE,
278 test_api.set_location(tooltip_rect
[all...]
/external/chromium_org/ui/views/corewm/
H A Dtooltip_aura.cc154 gfx::Rect tooltip_rect(mouse_pos, tooltip_size);
155 tooltip_rect.Offset(kCursorOffsetX, kCursorOffsetY);
161 if (tooltip_rect.right() > display_bounds.right()) {
162 int h_offset = tooltip_rect.right() - display_bounds.right();
163 tooltip_rect.Offset(-h_offset, 0);
168 if (tooltip_rect.bottom() > display_bounds.bottom())
169 tooltip_rect.set_y(mouse_pos.y() - tooltip_size.height());
171 tooltip_rect.AdjustToFit(display_bounds);
172 widget_->SetBounds(tooltip_rect);

Completed in 116 milliseconds