Changeset 7409 in vbox for trunk/src/VBox/Main
- Timestamp:
- Mar 10, 2008 2:50:08 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28842
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/GuestImpl.cpp
r5999 r7409 172 172 } 173 173 174 STDMETHODIMP Guest::COMGETTER(SupportsGraphics) (BOOL *aSupportsGraphics) 175 { 176 if (!aSupportsGraphics) 177 return E_POINTER; 178 179 AutoCaller autoCaller (this); 180 CheckComRCReturnRC (autoCaller.rc()); 181 182 AutoReaderLock alock (this); 183 184 *aSupportsGraphics = mData.mSupportsGraphics; 185 186 return S_OK; 187 } 188 174 189 STDMETHODIMP Guest::COMGETTER(MemoryBalloonSize) (ULONG *aMemoryBalloonSize) 175 190 { … … 327 342 mData.mSupportsSeamless = aSupportsSeamless; 328 343 } 344 345 void Guest::setSupportsGraphics (BOOL aSupportsGraphics) 346 { 347 AutoCaller autoCaller (this); 348 AssertComRCReturnVoid (autoCaller.rc()); 349 350 AutoLock alock (this); 351 352 mData.mSupportsGraphics = aSupportsGraphics; 353 } -
trunk/src/VBox/Main/VMMDevInterface.cpp
r6955 r7409 202 202 return; 203 203 204 Assert(!(newCapabilities & ~VMMDEV_GUEST_SUPPORTS_SEAMLESS));205 206 204 guest->setSupportsSeamless(BOOL (newCapabilities & VMMDEV_GUEST_SUPPORTS_SEAMLESS)); 205 guest->setSupportsGraphics(BOOL (newCapabilities & VMMDEV_GUEST_SUPPORTS_GRAPHICS)); 207 206 208 207 /* -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r7350 r7409 5139 5139 <interface 5140 5140 name="IGuest" extends="$unknown" 5141 uuid="c101f037-b03d-4bd4-bd25-381123980be2" 5141 uuid="d8556fca-81bc-12af-fca3-365528fa38ca" 5142 5142 5143 wsmap="suppress" 5143 5144 > … … 5188 5189 Flag whether seamless guest display rendering (seamless desktop 5189 5190 integration) is supported. 5191 </desc> 5192 </attribute> 5193 5194 <attribute name="supportsGraphics" type="boolean" readonly="yes"> 5195 <desc> 5196 Flag whether the guest is in graphics mode. If it is not, then 5197 seamless rendering will not work, resize hints are not immediately 5198 acted on and guest display resizes are probably not initiated by 5199 the guest additions. 5190 5200 </desc> 5191 5201 </attribute> -
trunk/src/VBox/Main/include/GuestImpl.h
r5999 r7409 58 58 STDMETHOD(COMGETTER(AdditionsVersion)) (BSTR *aAdditionsVersion); 59 59 STDMETHOD(COMGETTER(SupportsSeamless)) (BOOL *aSupportsSeamless); 60 STDMETHOD(COMGETTER(SupportsGraphics)) (BOOL *aSupportsGraphics); 60 61 STDMETHOD(COMGETTER(MemoryBalloonSize)) (ULONG *aMemoryBalloonSize); 61 62 STDMETHOD(COMSETTER(MemoryBalloonSize)) (ULONG aMemoryBalloonSize); … … 73 74 void setSupportsSeamless (BOOL aSupportsSeamless); 74 75 76 void setSupportsGraphics (BOOL aSupportsGraphics); 77 75 78 STDMETHOD(SetStatistic)(ULONG aCpuId, GuestStatisticType_T aStatistic, ULONG aStatVal); 76 79 … … 82 85 struct Data 83 86 { 84 Data() : mAdditionsActive (FALSE), mSupportsSeamless (FALSE) {} 87 Data() : mAdditionsActive (FALSE), mSupportsSeamless (FALSE), 88 /* Windows and OS/2 guests take this for granted */ 89 mSupportsGraphics (TRUE) {} 85 90 86 91 Bstr mOSTypeId; … … 88 93 Bstr mAdditionsVersion; 89 94 BOOL mSupportsSeamless; 95 BOOL mSupportsGraphics; 90 96 }; 91 97
Note:
See TracChangeset
for help on using the changeset viewer.