Changeset 8425 in vbox for trunk/src/VBox/Main
- Timestamp:
- Apr 28, 2008 3:03:37 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 30274
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/GuestImpl.cpp
r8350 r8425 161 161 } 162 162 163 STDMETHODIMP Guest::COMGETTER(MaxGuestWidth) (ULONG *aMaxWidth)164 {165 if (!VALID_PTR(aMaxWidth))166 return E_POINTER;167 168 AutoCaller autoCaller (this);169 CheckComRCReturnRC (autoCaller.rc());170 171 AutoReadLock alock (this);172 173 *aMaxWidth = mData.mMaxWidth;174 175 return S_OK;176 }177 178 STDMETHODIMP Guest::COMGETTER(MaxGuestHeight) (ULONG *aMaxHeight)179 {180 if (!VALID_PTR(aMaxHeight))181 return E_POINTER;182 183 AutoCaller autoCaller (this);184 CheckComRCReturnRC (autoCaller.rc());185 186 AutoReadLock alock (this);187 188 *aMaxHeight = mData.mMaxHeight;189 190 return S_OK;191 }192 193 163 STDMETHODIMP Guest::COMGETTER(SupportsSeamless) (BOOL *aSupportsSeamless) 194 164 { … … 367 337 } 368 338 369 void Guest::set MaxGuestResolution (ULONG aMaxWidth, ULONG aMaxHeight)339 void Guest::setSupportsSeamless (BOOL aSupportsSeamless) 370 340 { 371 341 AutoCaller autoCaller (this); … … 374 344 AutoWriteLock alock (this); 375 345 376 mData.mMaxWidth = aMaxWidth; 377 mData.mMaxHeight = aMaxHeight; 378 } 379 380 void Guest::setSupportsSeamless (BOOL aSupportsSeamless) 346 mData.mSupportsSeamless = aSupportsSeamless; 347 } 348 349 void Guest::setSupportsGraphics (BOOL aSupportsGraphics) 381 350 { 382 351 AutoCaller autoCaller (this); … … 385 354 AutoWriteLock alock (this); 386 355 387 mData.mSupportsSeamless = aSupportsSeamless;388 }389 390 void Guest::setSupportsGraphics (BOOL aSupportsGraphics)391 {392 AutoCaller autoCaller (this);393 AssertComRCReturnVoid (autoCaller.rc());394 395 AutoWriteLock alock (this);396 397 356 mData.mSupportsGraphics = aSupportsGraphics; 398 357 } -
trunk/src/VBox/Main/VMMDevInterface.cpp
r8312 r8425 215 215 pDrv->pVMMDev->getParent()->onAdditionsStateChange(); 216 216 217 }218 219 /**220 * Update the maximum guest resolution.221 * This is called when the guest sends us a corresponding notification. The new resolution222 * is given and the connector should update its internal state.223 * @note This member can be left null if the connector is not interested in the224 * notification.225 *226 * @param pInterface Pointer to this interface.227 * @param u32MaxWidth New width.228 * @param u32MaxHeight New Height.229 * @thread The emulation thread.230 */231 DECLCALLBACK(void) vmmdevUpdateMaxGuestResolution(PPDMIVMMDEVCONNECTOR pInterface, uint32_t u32MaxWidth, uint32_t u32MaxHeight)232 {233 PDRVMAINVMMDEV pDrv = PDMIVMMDEVCONNECTOR_2_MAINVMMDEV(pInterface);234 235 /* store that information in IGuest */236 Guest* guest = pDrv->pVMMDev->getParent()->getGuest();237 Assert(guest);238 if (!guest)239 return;240 241 guest->setMaxGuestResolution(u32MaxWidth, u32MaxHeight);242 243 /* This information is queried when it is needed, so there is no need to244 issue any further notifications. */245 217 } 246 218 … … 705 677 pData->Connector.pfnUpdateGuestVersion = vmmdevUpdateGuestVersion; 706 678 pData->Connector.pfnUpdateGuestCapabilities = vmmdevUpdateGuestCapabilities; 707 pData->Connector.pfnUpdateMaxGuestResolution = vmmdevUpdateMaxGuestResolution;708 679 pData->Connector.pfnUpdateMouseCapabilities = vmmdevUpdateMouseCapabilities; 709 680 pData->Connector.pfnUpdatePointerShape = vmmdevUpdatePointerShape; -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r8367 r8425 5184 5184 <interface 5185 5185 name="IGuest" extends="$unknown" 5186 uuid=" 655f0f7f-a35b-4e2f-a728-175d7e18dcce"5186 uuid="d8556fca-81bc-12af-fca3-365528fa38ca" 5187 5187 5188 5188 wsmap="suppress" … … 5227 5227 the version might be refused by VirtualBox (incompatible) or 5228 5228 other failures occured. 5229 </desc>5230 </attribute>5231 5232 <attribute name="maxGuestWidth" type="unsigned long" readonly="yes">5233 <desc>5234 The maximum horizontal resolution currently supported by the5235 Guest Additions for the purpose of host-initiated resiing5236 (and fullscreen and seamless). A value of zero means no5237 arbitrary maximum other than that imposed by VRAM limits.5238 </desc>5239 </attribute>5240 5241 <attribute name="maxGuestHeight" type="unsigned long" readonly="yes">5242 <desc>5243 The maximum vertical resolution currently supported by the5244 Guest Additions for the purpose of host-initiated resiing5245 (and fullscreen and seamless). A value of zero means no5246 arbitrary maximum other than that imposed by VRAM limits.5247 5229 </desc> 5248 5230 </attribute> -
trunk/src/VBox/Main/include/GuestImpl.h
r8323 r8425 61 61 STDMETHOD(COMGETTER(AdditionsActive)) (BOOL *aAdditionsActive); 62 62 STDMETHOD(COMGETTER(AdditionsVersion)) (BSTR *aAdditionsVersion); 63 STDMETHOD(COMGETTER(MaxGuestWidth)) (ULONG *aMaxWidth);64 STDMETHOD(COMGETTER(MaxGuestHeight)) (ULONG *aMaxHeight);65 63 STDMETHOD(COMGETTER(SupportsSeamless)) (BOOL *aSupportsSeamless); 66 64 STDMETHOD(COMGETTER(SupportsGraphics)) (BOOL *aSupportsGraphics); … … 78 76 void setAdditionsVersion (Bstr aVersion); 79 77 80 void setMaxGuestResolution (ULONG aMaxWidth, ULONG aMaxHeight);81 82 78 void setSupportsSeamless (BOOL aSupportsSeamless); 83 79 … … 93 89 struct Data 94 90 { 95 Data() : mAdditionsActive (FALSE), mMaxWidth (0), 96 mMaxHeight(0), mSupportsSeamless (FALSE), 91 Data() : mAdditionsActive (FALSE), mSupportsSeamless (FALSE), 97 92 /* Windows and OS/2 guests take this for granted */ 98 93 mSupportsGraphics (TRUE) {} … … 101 96 BOOL mAdditionsActive; 102 97 Bstr mAdditionsVersion; 103 /** The maximum width supported by the guest - zero means no maximum */104 ULONG mMaxWidth;105 /** The maximum height supported by the guest - zero means no maximum */106 ULONG mMaxHeight;107 98 BOOL mSupportsSeamless; 108 99 BOOL mSupportsGraphics;
Note:
See TracChangeset
for help on using the changeset viewer.