VirtualBox

Changeset 44580 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Feb 7, 2013 11:35:37 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83655
Message:

VBoxBFE: RIP.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/MouseImpl.h

    r44528 r44580  
    2222#include "ConsoleEvents.h"
    2323#include "ConsoleImpl.h"
    24 #ifndef VBOXBFE_WITHOUT_COM
    2524#include "EventImpl.h"
    26 #endif
    2725#include <VBox/vmm/pdmdrv.h>
    2826
     
    3432class ATL_NO_VTABLE Mouse :
    3533    public VirtualBoxBase
    36 #ifndef VBOXBFE_WITHOUT_COM
    3734    , VBOX_SCRIPTABLE_IMPL(IMouse)
    38 #endif
    3935{
    4036public:
     
    6965    STDMETHOD(PutMouseEventAbsolute)(LONG x, LONG y, LONG dz, LONG dw,
    7066                                     LONG buttonState);
    71 #ifndef VBOXBFE_WITHOUT_COM
    7267    STDMETHOD(COMGETTER(EventSource)) (IEventSource ** aEventSource);
    73 #endif
    7468
    7569    static const PDMDRVREG  DrvReg;
     
    114108    bool supportsRel(void);
    115109
    116 #ifdef VBOXBFE_WITHOUT_COM
    117     Console *mParent;
    118 #else
    119110    Console * const         mParent;
    120 #endif
    121111    /** Pointer to the associated mouse driver. */
    122112    struct DRVMAINMOUSE    *mpDrv[MOUSE_MAX_DEVICES];
     
    127117    uint32_t mfLastButtons;
    128118
    129 #ifndef VBOXBFE_WITHOUT_COM
    130119    const ComObjPtr<EventSource> mEventSource;
    131120    VBoxEventDesc                mMouseEvent;
    132121
    133122    void fireMouseEvent(bool fAbsolute, LONG x, LONG y, LONG dz, LONG dw, LONG Buttons);
    134 #else
    135     void fireMouseEvent(bool fAbsolute, LONG x, LONG y, LONG dz, LONG dw, LONG Buttons)
    136     {}
    137 #endif
    138123};
    139 
    140 #ifdef VBOXBFE_WITHOUT_COM
    141 /** @todo make this a member of Console */
    142 extern Mouse *gMouse;
    143 
    144 /** @todo can we get these from the API somehow? */
    145 enum
    146 {
    147     MouseButtonState_LeftButton = 1,
    148     MouseButtonState_RightButton = 2,
    149     MouseButtonState_MiddleButton = 4,
    150     MouseButtonState_XButton1 = 8,
    151     MouseButtonState_XButton2 = 16
    152 };
    153 #endif
    154124
    155125#endif // !____H_MOUSEIMPL
  • trunk/src/VBox/Main/src-client/MouseImpl.cpp

    r44528 r44580  
    110110    unconst(mParent) = parent;
    111111
    112 #ifndef VBOXBFE_WITHOUT_COM
    113112    unconst(mEventSource).createObject();
    114113    HRESULT rc = mEventSource->init(static_cast<IMouse*>(this));
     
    116115    mMouseEvent.init(mEventSource, VBoxEventType_OnGuestMouse,
    117116                     0, 0, 0, 0, 0);
    118 #endif
    119117
    120118    /* Confirm a successful initialization */
     
    144142    }
    145143
    146 #ifdef VBOXBFE_WITHOUT_COM
    147     mParent = NULL;
    148 #else
    149144    mMouseEvent.uninit();
    150145    unconst(mEventSource).setNull();
    151146    unconst(mParent) = NULL;
    152 #endif
    153147}
    154148
     
    256250}
    257251
    258 #ifndef VBOXBFE_WITHOUT_COM
    259252STDMETHODIMP Mouse::COMGETTER(EventSource)(IEventSource ** aEventSource)
    260253{
     
    269262    return S_OK;
    270263}
    271 #endif
    272264
    273265/**
     
    413405}
    414406
    415 #ifndef VBOXBFE_WITHOUT_COM
    416407void Mouse::fireMouseEvent(bool fAbsolute, LONG x, LONG y, LONG dz, LONG dw, LONG Buttons)
    417408{
     
    430421    }
    431422}
    432 #endif
    433423
    434424
Note: See TracChangeset for help on using the changeset viewer.

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