Home
last modified time | relevance | path

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

/external/chromium/chrome/browser/ui/gtk/
Dstatus_bubble_gtk.cc36 const int kMousePadding = 20; variable
204 bubble_rect.x() - bubble_rect.height() - kMousePadding; in MouseMoved()
206 bubble_rect.right() + bubble_rect.height() + kMousePadding; in MouseMoved()
207 int top_threshold = bubble_rect.y() - kMousePadding; in MouseMoved()
/external/chromium/chrome/browser/ui/views/
Dstatus_bubble_views.cc44 static const int kMousePadding = 20; variable
727 if (relative_location.y() > -kMousePadding && in AvoidMouse()
728 relative_location.x() < size_.width() + kMousePadding) { in AvoidMouse()
729 int offset = kMousePadding + relative_location.y(); in AvoidMouse()
732 offset = offset * offset / kMousePadding; in AvoidMouse()
738 static_cast<float>(kMousePadding - in AvoidMouse()
740 static_cast<float>(kMousePadding))); in AvoidMouse()
/external/chromium/chrome/browser/ui/cocoa/
Dstatus_bubble_mac.mm31 const int kMousePadding = 20;
291 if (cursor_location.y < kMousePadding &&
292 cursor_location.x < kMousePadding) {
293 int offset = kMousePadding - cursor_location.y;
296 offset = offset * offset / kMousePadding;
301 offset = offset * ((kMousePadding - cursor_location.x) / kMousePadding);