VirtualBox

Changeset 52926 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Oct 2, 2014 8:41:00 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
96361
Message:

ConsoleImpl: removed obsolete CONSOLE_WITH_EVENT_CACHE

File:
1 edited

Legend:

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

    r52319 r52926  
    10011001    ComObjPtr<Progress> mptrCancelableProgress;
    10021002
    1003     /* The purpose of caching of some events is probably in order to
    1004        automatically fire them at new event listeners.  However, there is no
    1005        (longer?) any code making use of this... */
    1006 #ifdef CONSOLE_WITH_EVENT_CACHE
    1007     struct
    1008     {
    1009         /** OnMousePointerShapeChange() cache */
    1010         struct
    1011         {
    1012             bool valid;
    1013             bool visible;
    1014             bool alpha;
    1015             uint32_t xHot;
    1016             uint32_t yHot;
    1017             uint32_t width;
    1018             uint32_t height;
    1019             com::SafeArray<BYTE> shape;
    1020         } mpsc;
    1021 
    1022         /** OnMouseCapabilityChange() cache */
    1023         struct
    1024         {
    1025             bool valid;
    1026             BOOL supportsAbsolute;
    1027             BOOL supportsRelative;
    1028             BOOL needsHostCursor;
    1029         } mcc;
    1030 
    1031         /** OnKeyboardLedsChange() cache */
    1032         struct
    1033         {
    1034             bool valid;
    1035             bool numLock;
    1036             bool capsLock;
    1037             bool scrollLock;
    1038         } klc;
    1039 
    1040         void clear()
    1041         {
    1042             RT_ZERO(mcc);
    1043             RT_ZERO(klc);
    1044 
    1045             /* We cannot RT_ZERO mpsc because of shape's vtable. */
    1046             mpsc.shape.setNull();
    1047             mpsc.valid = mpsc.visible = mpsc.alpha = false;
    1048             mpsc.xHot = mpsc.yHot = mpsc.width = mpsc.height = 0;
    1049         }
    1050     } mCallbackData;
    1051 #endif
    10521003    ComPtr<IEventListener> mVmListener;
    10531004
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