VirtualBox

Changeset 15716 in vbox for trunk


Ignore:
Timestamp:
Dec 22, 2008 1:36:56 PM (16 years ago)
Author:
vboxsync
Message:

#3285: Improve error handling API to include unique error numbers
Document

  • IMouse::putMouseEvent
  • IMouse::putMouseEventAbsolute
Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MouseImpl.cpp

    r14772 r15716  
    221221    if (mouseCaps & VMMDEV_MOUSEHOSTWANTSABS)
    222222    {
    223         mParent->getVMMDev()->getVMMDevPort()
    224             ->pfnSetMouseCapabilities(mParent->getVMMDev()->getVMMDevPort(), uHostCaps);
     223        mParent->getVMMDev()->getVMMDevPort()->pfnSetMouseCapabilities(
     224            mParent->getVMMDev()->getVMMDevPort(), uHostCaps);
    225225    }
    226226
     
    235235    int vrc = mpDrv->pUpPort->pfnPutEvent(mpDrv->pUpPort, dx, dy, dz, fButtons);
    236236    if (RT_FAILURE (vrc))
    237         rc = setError (E_FAIL, tr ("Could not send the mouse event to the virtual mouse (%Rrc)"),
    238                        vrc);
     237        rc = setError (VBOX_E_IPRT_ERROR,
     238            tr ("Could not send the mouse event to the virtual mouse (%Rrc)"),
     239                vrc);
    239240
    240241    return rc;
     
    277278    if (!(mouseCaps & VMMDEV_MOUSEHOSTWANTSABS))
    278279    {
    279         mParent->getVMMDev()->getVMMDevPort()
    280             ->pfnSetMouseCapabilities(mParent->getVMMDev()->getVMMDevPort(),
    281                                       uHostCaps | VMMDEV_MOUSEHOSTWANTSABS);
     280        mParent->getVMMDev()->getVMMDevPort()->pfnSetMouseCapabilities(
     281            mParent->getVMMDev()->getVMMDevPort(),
     282            uHostCaps | VMMDEV_MOUSEHOSTWANTSABS);
    282283    }
    283284
     
    296297
    297298    /*
    298      * Send the absolute mouse position to the VMM device
     299     * Send the absolute mouse position to the VMM device.
    299300     */
    300301    int vrc = mParent->getVMMDev()->getVMMDevPort()
     
    303304    ComAssertRCRet (vrc, E_FAIL);
    304305
    305     // check if the guest actually wants absolute mouse positions
     306    // Check if the guest actually wants absolute mouse positions.
    306307    if (mouseCaps & VMMDEV_MOUSEGUESTWANTSABS)
    307308    {
     
    317318                                          fButtons);
    318319        if (RT_FAILURE (vrc))
    319             rc = setError (E_FAIL, tr ("Could not send the mouse event to the virtual mouse (%Rrc)"),
    320                            vrc);
     320            rc = setError (VBOX_E_IPRT_ERROR,
     321                tr ("Could not send the mouse event to the virtual mouse (%Rrc)"),
     322                    vrc);
    321323    }
    322324
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r15715 r15716  
    89798979        Initiates a mouse event using relative pointer movements
    89808980        along x and y axis.
     8981
     8982        <result name="E_ACCESSDENIED">
     8983          Console not powered up.
     8984        </result>
     8985        <result name="VBOX_E_IPRT_ERROR">
     8986          Could not send mouse event to virtual mouse.
     8987        </result>
     8988
    89818989      </desc>
    89828990
     
    90219029        start from <tt>[1,1]</tt> which corresponds to the top left
    90229030        corner of the virtual display.
     9031
     9032        <result name="E_ACCESSDENIED">
     9033          Console not powered up.
     9034        </result>
     9035        <result name="VBOX_E_IPRT_ERROR">
     9036          Could not send mouse event to virtual mouse.
     9037        </result>
    90239038
    90249039        <note>
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette