VirtualBox

Changeset 50265 in vbox for trunk/include


Ignore:
Timestamp:
Jan 29, 2014 11:12:44 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
91898
Message:

DnD: First working implementation for Windows guest->host support; still work in progress. As for now only pure text data can be dragged over.

File:
1 edited

Legend:

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

    r49891 r50265  
    44
    55/*
    6  * Copyright (C) 2011-2013 Oracle Corporation
     6 * Copyright (C) 2011-2014 Oracle Corporation
    77 *
    88 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    6161/**
    6262 * The service functions which are callable by host.
     63 * Note: When adding new functions to this table, make sure that the actual ID
     64 *       does *not* overlap with the eGuestFn enumeration below!
    6365 */
    6466enum eHostFn
     
    8284
    8385    /* G->H */
    84     HOST_DND_GH_REQ_PENDING            = 300,
     86    /** The host asks the guest whether a DnD operation
     87     *  is in progress when the mouse leaves the guest window. */
     88    HOST_DND_GH_REQ_PENDING            = 600,
     89    /** The host informs the guest that a DnD drop operation
     90     *  has been started and that the host wants the data in
     91     *  a specific mime-type. */
    8592    HOST_DND_GH_EVT_DROPPED
    8693};
     
    8895/**
    8996 * The service functions which are called by guest.
     97 * Note: When adding new functions to this table, make sure that the actual ID
     98 *       does *not* overlap with the eGuestFn enumeration above!
    9099 */
    91100enum eGuestFn
    92101{
    93102    /**
    94      * Guest waits for a new message the host wants to process on the guest side.
    95      * This is a blocking call and can be deferred.
     103     * Guest waits for a new message the host wants to process
     104     * on the guest side. This can be a blocking call.
    96105     */
    97106    GUEST_DND_GET_NEXT_HOST_MSG        = 300,
     
    103112
    104113    /* G->H */
     114    /**
     115     * The guests acknowledges that it currently has a drag'n drop
     116     * operation in progress on the guest, which eventually could be
     117     * dragged over to the host.
     118     */
    105119    GUEST_DND_GH_ACK_PENDING           = 500,
    106120    GUEST_DND_GH_SND_DATA,
     
    416430    void     *pvData;
    417431    uint32_t  cbData;
    418     uint32_t  cbAllSize;
     432    uint32_t  cbAllSize; /** @todo Why is this transmitted every time? */
    419433} VBOXDNDCBSNDDATADATA;
    420434typedef VBOXDNDCBSNDDATADATA *PVBOXDNDCBSNDDATADATA;
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