Home | History | Annotate | Download | only in page

Lines Matching defs:scrollbar

97 #include "platform/scroll/Scrollbar.h"
594 // so it's allowed to start a drag or selection if it wasn't in a scrollbar.
595 m_mouseDownMayStartSelect = canMouseDownStartSelect(event.targetNode()) && !event.scrollbar();
1195 if ((editable || (renderer && renderer->isText() && node->canStartSelection())) && !inResizer && !result.scrollbar())
1296 m_capturesDragging = !swallowEvent || mev.scrollbar();
1298 // If the hit testing originally determined the event was in a scrollbar, refetch the MouseEventWithHitTestResults
1299 // in case the scrollbar widget was destroyed when the mouse event was handled.
1300 if (mev.scrollbar()) {
1301 const bool wasLastScrollBar = mev.scrollbar() == m_lastScrollbarUnderMouse.get();
1304 if (wasLastScrollBar && mev.scrollbar() != m_lastScrollbarUnderMouse.get())
1411 // Send events right to a scrollbar if the mouse is pressed.
1439 Scrollbar* scrollbar = 0;
1445 scrollbar = view->scrollbarAtPoint(mouseEvent.position());
1447 if (!scrollbar)
1448 scrollbar = mev.scrollbar();
1450 updateLastScrollbarUnderMouse(scrollbar, !m_mousePressed);
1471 if (scrollbar && !m_mousePressed)
1472 scrollbar->mouseMoved(mouseEvent); // Handle hover effects on platforms that support visual feedback on scrollbar hovering.
1880 // If clicking on a frame scrollbar, do not mess up with content focus.
1942 return result.scrollbar();
2100 RefPtr<Scrollbar> scrollbar;
2105 scrollbar = m_scrollbarHandlingScrollGesture.get();
2133 if ((!scrollbar && !eventTarget) || !(hitType & HitTestRequest::ReadOnly)) {
2143 if (!scrollbar) {
2145 scrollbar = view ? view->scrollbarAtPoint(gestureEvent.position()) : 0;
2147 if (!scrollbar)
2148 scrollbar = result.scrollbar();
2151 if (scrollbar) {
2152 bool eventSwallowed = scrollbar->gestureEvent(gestureEvent);
2154 m_scrollbarHandlingScrollGesture = scrollbar;
2505 // If the touch is over a scrollbar, don't adjust the touch point since touch adjustment only takes into account
2506 // DOM nodes so a touch over a scrollbar will be adjusted towards nearby nodes. This leads to things like textarea
2508 if (result.scrollbar())
2593 && !mev.scrollbar()
3330 // First try to use the frame scrollbar.
3332 Scrollbar* scrollbar = view ? view->scrollbarAtPoint(mev.event().position()) : 0;
3334 // Then try the scrollbar in the hit test.
3335 if (!scrollbar)
3336 scrollbar = mev.scrollbar();
3338 updateLastScrollbarUnderMouse(scrollbar, true);
3340 if (!scrollbar || !scrollbar->enabled())
3343 scrollbar->mouseDown(mev.event());
3347 // If scrollbar (under mouse) is different from last, send a mouse exited. Set
3348 // last to scrollbar if setLast is true; else set last to 0.
3349 void EventHandler::updateLastScrollbarUnderMouse(Scrollbar* scrollbar, bool setLast)
3351 if (m_lastScrollbarUnderMouse != scrollbar) {
3352 // Send mouse exited to the old scrollbar.
3356 // Send mouse entered if we're setting a new scrollbar.
3357 if (scrollbar && setLast)
3358 scrollbar->mouseEntered();
3360 m_lastScrollbarUnderMouse = setLast ? scrollbar : 0;