VirtualBox

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


Ignore:
Timestamp:
May 8, 2012 8:56:52 AM (13 years ago)
Author:
vboxsync
Message:

Main+Frontends: replace custom QueryInterface method to eliminate unnecessary code variation

File:
1 edited

Legend:

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

    r41187 r41201  
    3232    VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(Framebuffer, IFramebuffer)
    3333
    34     DECLARE_NOT_AGGREGATABLE (Framebuffer)
     34    DECLARE_NOT_AGGREGATABLE(Framebuffer)
    3535
    3636    DECLARE_PROTECT_FINAL_CONSTRUCT()
    3737
    38     BEGIN_COM_MAP (Framebuffer)
    39         VBOX_DEFAULT_INTERFACE_ENTRIES (IFramebuffer)
     38    BEGIN_COM_MAP(Framebuffer)
     39        VBOX_DEFAULT_INTERFACE_ENTRIES(IFramebuffer)
    4040    END_COM_MAP()
    4141
    42     DECLARE_EMPTY_CTOR_DTOR (Framebuffer)
     42    DECLARE_EMPTY_CTOR_DTOR(Framebuffer)
    4343
    4444    /* IFramebuffer properties */
    45     STDMETHOD(COMGETTER(Address)) (BYTE **aAddress) = 0;
    46     STDMETHOD(COMGETTER(Width)) (ULONG *aWidth) = 0;
    47     STDMETHOD(COMGETTER(Height)) (ULONG *aHeight) = 0;
    48     STDMETHOD(COMGETTER(BitsPerPixel)) (ULONG *aBitsPerPixel) = 0;
    49     STDMETHOD(COMGETTER(BytesPerLine)) (ULONG *aBytesPerLine) = 0;
    50     STDMETHOD(COMGETTER(PixelFormat)) (ULONG *aPixelFormat) = 0;
    51     STDMETHOD(COMGETTER(UsesGuestVRAM)) (BOOL *aUsesGuestVRAM) = 0;
    52     STDMETHOD(COMGETTER(HeightReduction)) (ULONG *aHeightReduction) = 0;
    53     STDMETHOD(COMGETTER(Overlay)) (IFramebufferOverlay **aOverlay) = 0;
    54     STDMETHOD(COMGETTER(WinId)) (ULONG64 *winId) = 0;
     45    STDMETHOD(COMGETTER(Address))(BYTE **aAddress) = 0;
     46    STDMETHOD(COMGETTER(Width))(ULONG *aWidth) = 0;
     47    STDMETHOD(COMGETTER(Height))(ULONG *aHeight) = 0;
     48    STDMETHOD(COMGETTER(BitsPerPixel))(ULONG *aBitsPerPixel) = 0;
     49    STDMETHOD(COMGETTER(BytesPerLine))(ULONG *aBytesPerLine) = 0;
     50    STDMETHOD(COMGETTER(PixelFormat))(ULONG *aPixelFormat) = 0;
     51    STDMETHOD(COMGETTER(UsesGuestVRAM))(BOOL *aUsesGuestVRAM) = 0;
     52    STDMETHOD(COMGETTER(HeightReduction))(ULONG *aHeightReduction) = 0;
     53    STDMETHOD(COMGETTER(Overlay))(IFramebufferOverlay **aOverlay) = 0;
     54    STDMETHOD(COMGETTER(WinId))(ULONG64 *winId) = 0;
    5555
    5656    /* IFramebuffer methods */
     
    5858    STDMETHOD(Unlock)() = 0;
    5959
    60     STDMETHOD(RequestResize) (ULONG aScreenId, ULONG aPixelFormat,
    61                               BYTE *aVRAM, ULONG aBitsPerPixel, ULONG aBytesPerLine,
    62                               ULONG aWidth, ULONG aHeight,
    63                               BOOL *aFinished) = 0;
     60    STDMETHOD(RequestResize)(ULONG aScreenId, ULONG aPixelFormat,
     61                             BYTE *aVRAM, ULONG aBitsPerPixel, ULONG aBytesPerLine,
     62                             ULONG aWidth, ULONG aHeight,
     63                             BOOL *aFinished) = 0;
    6464
    65     STDMETHOD(VideoModeSupported) (ULONG aWidth, ULONG aHeight, ULONG aBPP,
    66                                    BOOL *aSupported) = 0;
     65    STDMETHOD(VideoModeSupported)(ULONG aWidth, ULONG aHeight, ULONG aBPP,
     66                                  BOOL *aSupported) = 0;
    6767
    6868    STDMETHOD(GetVisibleRegion)(BYTE *aRectangles, ULONG aCount,
    69                                ULONG *aCountCopied) = 0;
     69                                ULONG *aCountCopied) = 0;
    7070    STDMETHOD(SetVisibleRegion)(BYTE *aRectangles, ULONG aCount) = 0;
    7171
Note: See TracChangeset for help on using the changeset viewer.

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