VirtualBox

Changeset 74442 in vbox


Ignore:
Timestamp:
Sep 24, 2018 1:09:14 PM (6 years ago)
Author:
vboxsync
Message:

DnD: Build fix.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/HostServices/DragAndDropSvc.h

    r74439 r74442  
    6767#include <VBox/VMMDevCoreTypes.h>
    6868#include <VBox/VBoxGuestCoreTypes.h>
     69
     70#include <VBox/GuestHost/DragAndDropDefs.h>
    6971
    7072namespace DragAndDropSvc {
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp

    r74439 r74442  
    917917 * @param   u32yPos                 Absolute Y position (in pixels) of the host cursor
    918918 *                                  inside the guest.
    919  * @param   uAction                 Action the host wants to perform while moving.
     919 * @param   dndAction               Action the host wants to perform while moving.
    920920 *                                  Currently ignored.
    921921 */
    922 int VBoxDnDWnd::OnHgMove(uint32_t u32xPos, uint32_t u32yPos, uint32_t uAction)
    923 {
    924     RT_NOREF(uAction);
     922int VBoxDnDWnd::OnHgMove(uint32_t u32xPos, uint32_t u32yPos, VBOXDNDACTION dndAction)
     923{
     924    RT_NOREF(dndAction);
    925925    int rc;
    926926
     
    928928    if (mMode == HG)
    929929    {
    930         LogFlowThisFunc(("u32xPos=%RU32, u32yPos=%RU32, uAction=0x%x\n",
    931                          u32xPos, u32yPos, uAction));
     930        LogFlowThisFunc(("u32xPos=%RU32, u32yPos=%RU32, dndAction=0x%x\n",
     931                         u32xPos, u32yPos, dndAction));
    932932
    933933        rc = mouseMove(u32xPos, u32yPos, MOUSEEVENTF_LEFTDOWN);
     
    12641264 * @param   pszFormat               Format the host requests the data in.
    12651265 * @param   cbFormat                Size (in bytes) of format string.
    1266  * @param   uDefAction              Default action on the host.
    1267  */
    1268 int VBoxDnDWnd::OnGhDrop(const RTCString &strFormat, uint32_t uDefAction)
    1269 {
    1270     RT_NOREF(uDefAction);
    1271 
    1272     LogFlowThisFunc(("mMode=%ld, mState=%ld, pDropTarget=0x%p, strFormat=%s, uDefAction=0x%x\n",
    1273                      mMode, mState, pDropTarget, strFormat.c_str(), uDefAction));
     1266 * @param   dndActionDefault        Default action on the host.
     1267 */
     1268int VBoxDnDWnd::OnGhDrop(const RTCString &strFormat, uint32_t dndActionDefault)
     1269{
     1270    RT_NOREF(dndActionDefault);
     1271
     1272    LogFlowThisFunc(("mMode=%ld, mState=%ld, pDropTarget=0x%p, strFormat=%s, dndActionDefault=0x%x\n",
     1273                     mMode, mState, pDropTarget, strFormat.c_str(), dndActionDefault));
    12741274    int rc;
    12751275    if (mMode == GH)
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.h

    r74439 r74442  
    9797public:
    9898
    99     uint32_t GetCurrentAction(void) { return muCurAction; }
     99    VBOXDNDACTION GetCurrentAction(void) { return mDnDActionCurrent; }
    100100
    101101public: /* IUnknown methods. */
     
    119119    DWORD                 mdwCurEffect;
    120120    /** Current action to perform on the host. */
    121     uint32_t              muCurAction;
     121    VBOXDNDACTION         mDnDActionCurrent;
    122122};
    123123
     
    333333
    334334    /* H->G */
    335     int OnHgEnter(const RTCList<RTCString> &formats, uint32_t uAllActions);
    336     int OnHgMove(uint32_t u32xPos, uint32_t u32yPos, uint32_t uAllActions);
     335    int OnHgEnter(const RTCList<RTCString> &formats, VBOXDNDACTIONLIST dndLstActionsAllowed);
     336    int OnHgMove(uint32_t u32xPos, uint32_t u32yPos, VBOXDNDACTION dndAction);
    337337    int OnHgDrop(void);
    338338    int OnHgLeave(void);
     
    342342#ifdef VBOX_WITH_DRAG_AND_DROP_GH
    343343    int OnGhIsDnDPending(void);
    344     int OnGhDrop(const RTCString &strFormat, uint32_t uDefAction);
     344    int OnGhDrop(const RTCString &strFormat, VBOXDNDACTION dndActionDefault);
    345345#endif
    346346
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnDDropSource.cpp

    r74411 r74442  
    3737      mpWndParent(pParent),
    3838      mdwCurEffect(0),
    39       muCurAction(VBOX_DND_ACTION_IGNORE)
     39      mDnDActionCurrent(VBOX_DND_ACTION_IGNORE)
    4040{
    4141    LogFlowFuncEnter();
     
    9797{
    9898#if 1
    99     LogFlowFunc(("fEscapePressed=%RTbool, dwKeyState=0x%x, mdwCurEffect=%RI32, muCurAction=%RU32\n",
    100                  fEscapePressed, dwKeyState, mdwCurEffect, muCurAction));
     99    LogFlowFunc(("fEscapePressed=%RTbool, dwKeyState=0x%x, mdwCurEffect=%RI32, mDnDActionCurrent=%RU32\n",
     100                 fEscapePressed, dwKeyState, mdwCurEffect, mDnDActionCurrent));
    101101#endif
    102102
     
    105105    {
    106106        mdwCurEffect = 0;
    107         muCurAction = VBOX_DND_ACTION_IGNORE;
     107        mDnDActionCurrent = VBOX_DND_ACTION_IGNORE;
    108108
    109109        LogFlowFunc(("Canceled\n"));
     
    146146
    147147    mdwCurEffect = dwEffect;
    148     muCurAction = uAction;
     148    mDnDActionCurrent = uAction;
    149149
    150150    return DRAGDROP_S_USEDEFAULTCURSORS;
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