VirtualBox

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


Ignore:
Timestamp:
Apr 28, 2008 3:03:37 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30274
Message:

Frontends/VirtualBox3/4, Main, Devices/VMMDev, Frontends/VBoxBFE, Additions/common, Additions/x11: reverted r30152, r30085, r30074 and r30072

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

Legend:

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

    r8350 r8425  
    161161}
    162162
    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 
    193163STDMETHODIMP Guest::COMGETTER(SupportsSeamless) (BOOL *aSupportsSeamless)
    194164{
     
    367337}
    368338
    369 void Guest::setMaxGuestResolution (ULONG aMaxWidth, ULONG aMaxHeight)
     339void Guest::setSupportsSeamless (BOOL aSupportsSeamless)
    370340{
    371341    AutoCaller autoCaller (this);
     
    374344    AutoWriteLock alock (this);
    375345
    376     mData.mMaxWidth  = aMaxWidth;
    377     mData.mMaxHeight = aMaxHeight;
    378 }
    379 
    380 void Guest::setSupportsSeamless (BOOL aSupportsSeamless)
     346    mData.mSupportsSeamless = aSupportsSeamless;
     347}
     348
     349void Guest::setSupportsGraphics (BOOL aSupportsGraphics)
    381350{
    382351    AutoCaller autoCaller (this);
     
    385354    AutoWriteLock alock (this);
    386355
    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 
    397356    mData.mSupportsGraphics = aSupportsGraphics;
    398357}
  • trunk/src/VBox/Main/VMMDevInterface.cpp

    r8312 r8425  
    215215    pDrv->pVMMDev->getParent()->onAdditionsStateChange();
    216216   
    217 }
    218 
    219 /**
    220  * Update the maximum guest resolution.
    221  * This is called when the guest sends us a corresponding notification. The new resolution
    222  * 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 the
    224  *          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 to
    244        issue any further notifications. */
    245217}
    246218
     
    705677    pData->Connector.pfnUpdateGuestVersion            = vmmdevUpdateGuestVersion;
    706678    pData->Connector.pfnUpdateGuestCapabilities       = vmmdevUpdateGuestCapabilities;
    707     pData->Connector.pfnUpdateMaxGuestResolution      = vmmdevUpdateMaxGuestResolution;
    708679    pData->Connector.pfnUpdateMouseCapabilities       = vmmdevUpdateMouseCapabilities;
    709680    pData->Connector.pfnUpdatePointerShape            = vmmdevUpdatePointerShape;
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r8367 r8425  
    51845184  <interface
    51855185     name="IGuest" extends="$unknown"
    5186      uuid="655f0f7f-a35b-4e2f-a728-175d7e18dcce"
     5186     uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
    51875187
    51885188     wsmap="suppress"
     
    52275227        the version might be refused by VirtualBox (incompatible) or
    52285228        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 the
    5235         Guest Additions for the purpose of host-initiated resiing
    5236         (and fullscreen and seamless).  A value of zero means no
    5237         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 the
    5244         Guest Additions for the purpose of host-initiated resiing
    5245         (and fullscreen and seamless).  A value of zero means no
    5246         arbitrary maximum other than that imposed by VRAM limits.
    52475229      </desc>
    52485230    </attribute>
  • trunk/src/VBox/Main/include/GuestImpl.h

    r8323 r8425  
    6161    STDMETHOD(COMGETTER(AdditionsActive)) (BOOL *aAdditionsActive);
    6262    STDMETHOD(COMGETTER(AdditionsVersion)) (BSTR *aAdditionsVersion);
    63     STDMETHOD(COMGETTER(MaxGuestWidth)) (ULONG *aMaxWidth);
    64     STDMETHOD(COMGETTER(MaxGuestHeight)) (ULONG *aMaxHeight);
    6563    STDMETHOD(COMGETTER(SupportsSeamless)) (BOOL *aSupportsSeamless);
    6664    STDMETHOD(COMGETTER(SupportsGraphics)) (BOOL *aSupportsGraphics);
     
    7876    void setAdditionsVersion (Bstr aVersion);
    7977
    80     void setMaxGuestResolution (ULONG aMaxWidth, ULONG aMaxHeight);
    81 
    8278    void setSupportsSeamless (BOOL aSupportsSeamless);
    8379
     
    9389    struct Data
    9490    {
    95         Data() : mAdditionsActive (FALSE), mMaxWidth (0),
    96                  mMaxHeight(0), mSupportsSeamless (FALSE),
     91        Data() : mAdditionsActive (FALSE), mSupportsSeamless (FALSE),
    9792                  /* Windows and OS/2 guests take this for granted */
    9893                 mSupportsGraphics (TRUE) {}
     
    10196        BOOL  mAdditionsActive;
    10297        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;
    10798        BOOL  mSupportsSeamless;
    10899        BOOL  mSupportsGraphics;
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