Changeset 47190 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Jul 16, 2013 1:44:46 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 87296
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ConsoleImpl.h
r47174 r47190 49 49 class ExtPackManager; 50 50 #endif 51 class VMMDevMouseInterface; 52 class DisplayMouseInterface; 51 53 52 54 #include <VBox/RemoteDesktop/VRDE.h> … … 89 91 /////////////////////////////////////////////////////////////////////////////// 90 92 93 class ConsoleMouseInterface 94 { 95 public: 96 virtual VMMDevMouseInterface *getVMMDevMouseInterface() = 0; 97 virtual DisplayMouseInterface *getDisplayMouseInterface() = 0; 98 virtual void onMouseCapabilityChange(BOOL supportsAbsolute, 99 BOOL supportsRelative, 100 BOOL supportsMT, 101 BOOL needsHostCursor) = 0; 102 }; 103 91 104 /** IConsole implementation class */ 92 105 class ATL_NO_VTABLE Console : 93 106 public VirtualBoxBase, 94 VBOX_SCRIPTABLE_IMPL(IConsole) 107 VBOX_SCRIPTABLE_IMPL(IConsole), public ConsoleMouseInterface 95 108 { 96 109 Q_OBJECT … … 291 304 HRESULT onNATRedirectRuleChange(ULONG ulInstance, BOOL aNatRuleRemove, 292 305 NATProtocol_T aProto, IN_BSTR aHostIp, LONG aHostPort, IN_BSTR aGuestIp, LONG aGuestPort); 306 307 // Mouse interface 308 VMMDevMouseInterface *getVMMDevMouseInterface(); 309 DisplayMouseInterface *getDisplayMouseInterface(); 293 310 294 311 private: -
trunk/src/VBox/Main/include/DisplayImpl.h
r46523 r47190 104 104 } DISPLAYFBINFO; 105 105 106 class DisplayMouseInterface 107 { 108 public: 109 virtual int getScreenResolution(uint32_t cScreen, uint32_t *pcx, 110 uint32_t *pcy, uint32_t *pcBPP) = 0; 111 virtual void getFramebufferDimensions(int32_t *px1, int32_t *py1, 112 int32_t *px2, int32_t *py2) = 0; 113 }; 114 106 115 class ATL_NO_VTABLE Display : 107 116 public VirtualBoxBase, 108 117 VBOX_SCRIPTABLE_IMPL(IEventListener), 109 VBOX_SCRIPTABLE_IMPL(IDisplay) 118 VBOX_SCRIPTABLE_IMPL(IDisplay), 119 public DisplayMouseInterface 110 120 { 111 121 public: … … 151 161 } 152 162 void getFramebufferDimensions(int32_t *px1, int32_t *py1, int32_t *px2, int32_t *py2); 163 int getScreenResolution(uint32_t cScreen, uint32_t *pcx, uint32_t *pcy, 164 uint32_t *pcBPP) 165 { 166 return GetScreenResolution(cScreen, pcx, pcy, pcBPP); 167 } 153 168 154 169 int handleSetVisibleRegion(uint32_t cRect, PRTRECT pRect); -
trunk/src/VBox/Main/include/MouseImpl.h
r47174 r47190 52 52 53 53 // public initializer/uninitializer for internal purposes only 54 HRESULT init(Console *parent);54 HRESULT init(ConsoleMouseInterface *parent); 55 55 void uninit(); 56 56 … … 70 70 static const PDMDRVREG DrvReg; 71 71 72 Console *getParent() const72 ConsoleMouseInterface *getParent() const 73 73 { 74 74 return mParent; … … 112 112 bool supportsMT(void); 113 113 114 Console * const mParent;114 ConsoleMouseInterface * const mParent; 115 115 /** Pointer to the associated mouse driver. */ 116 116 struct DRVMAINMOUSE *mpDrv[MOUSE_MAX_DEVICES]; -
trunk/src/VBox/Main/include/VMMDev.h
r44528 r47190 24 24 class Console; 25 25 26 class VMMDev 26 class VMMDevMouseInterface 27 { 28 public: 29 virtual PPDMIVMMDEVPORT getVMMDevPort() = 0; 30 }; 31 32 class VMMDev : public VMMDevMouseInterface 27 33 { 28 34 public: … … 49 55 PPDMIVMMDEVPORT getVMMDevPort(); 50 56 57 #ifdef VBOX_WITH_HGCM 51 58 int hgcmLoadService (const char *pszServiceLibrary, const char *pszServiceName); 52 59 int hgcmHostCall (const char *pszServiceName, uint32_t u32Function, uint32_t cParms, PVBOXHGCMSVCPARM paParms); … … 59 66 60 67 bool hgcmIsActive (void) { return ASMAtomicReadBool(&m_fHGCMActive); } 68 #endif /* VBOX_WITH_HGCM */ 61 69 62 70 private:
Note:
See TracChangeset
for help on using the changeset viewer.