Source/web/WebViewImpl.cpp
// FIXME: autogenerate this kind of code, and use it throughout Blink rather than
// the one-offs for subsets of these values.
autogenerate this kind of code, and use it throughout Blink rather than
the one-offs for subsets of these values.
autogenerate this kind of code and use it throughout Blink rather than the one - offs for subsets of these values .
static const AtomicString* inputTypeToName(WebInputEvent::Type type)
{
    switch (type) {
    case WebInputEvent::MouseDown:
        return &EventTypeNames::mousedown;
    case WebInputEvent::MouseUp:
        return &EventTypeNames::mouseup;
    case WebInputEvent::MouseMove:
        return &EventTypeNames::mousemove;
    case WebInputEvent::MouseEnter:
        return &EventTypeNames::mouseenter;
    case WebInputEvent::MouseLeave:
        return &EventTypeNames::mouseleave;
    case WebInputEvent::ContextMenu:
        return &EventTypeNames::contextmenu;
    case WebInputEvent::MouseWheel:
        return &EventTypeNames::mousewheel;
    case WebInputEvent::KeyDown:
        return &EventTypeNames::keydown;
    case WebInputEvent::KeyUp:
        return &EventTypeNames::keyup;
    case WebInputEvent::GestureScrollBegin:
        return &EventTypeNames::gesturescrollstart;
    case WebInputEvent::GestureScrollEnd:
        return &EventTypeNames::gesturescrollend;
    case WebInputEvent::GestureScrollUpdate:
        return &EventTypeNames::gesturescrollupdate;
    case WebInputEvent::TouchStart:
        return &EventTypeNames::touchstart;
    case WebInputEvent::TouchMove:
        return &EventTypeNames::touchmove;
    case WebInputEvent::TouchEnd:
        return &EventTypeNames::touchend;
    case WebInputEvent::TouchCancel:
        return &EventTypeNames::touchcancel;
    default:
        return 0;
    }
}
static const AtomicString * inputTypeToName ( WebInputEvent :: Type type ) { switch ( type ) { case WebInputEvent :: MouseDown : return & EventTypeNames :: mousedown ; case WebInputEvent :: MouseUp : return & EventTypeNames :: mouseup ; case WebInputEvent :: MouseMove : return & EventTypeNames :: mousemove ; case WebInputEvent :: MouseEnter : return & EventTypeNames :: mouseenter ; case WebInputEvent :: MouseLeave : return & EventTypeNames :: mouseleave ; case WebInputEvent :: ContextMenu : return & EventTypeNames :: contextmenu ; case WebInputEvent :: MouseWheel : return & EventTypeNames :: mousewheel ; case WebInputEvent :: KeyDown : return & EventTypeNames :: keydown ; case WebInputEvent :: KeyUp : return & EventTypeNames :: keyup ; case WebInputEvent :: GestureScrollBegin : return & EventTypeNames :: gesturescrollstart ; case WebInputEvent :: GestureScrollEnd : return & EventTypeNames :: gesturescrollend ; case WebInputEvent :: GestureScrollUpdate : return & EventTypeNames :: gesturescrollupdate ; case WebInputEvent :: TouchStart : return & EventTypeNames :: touchstart ; case WebInputEvent :: TouchMove : return & EventTypeNames :: touchmove ; case WebInputEvent :: TouchEnd : return & EventTypeNames :: touchend ; case WebInputEvent :: TouchCancel : return & EventTypeNames :: touchcancel ; default : return 0 ; } }
FIXME: autogenerate this kind of code, and use it throughout Blink rather than
the one-offs for subsets of these values.
FIXME : autogenerate this kind of code and use it throughout Blink rather than the one - offs for subsets of these values .