Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsDragService.cpp File Reference
#include "nsDragService.h"
#include "nsITransferable.h"
#include "nsString.h"
#include "nsClipboard.h"
#include "nsIRegion.h"
#include "nsISupportsPrimitives.h"
#include "nsPrimitiveHelpers.h"
#include "nsCOMPtr.h"
#include "nsXPIDLString.h"
#include "nsWidgetsCID.h"

Go to the source code of this file.


#define kMimeCustom   "text/_moz_htmlcontext"


int CancelDrag (PhRid_t rid, unsigned input_group)

Define Documentation

#define kMimeCustom   "text/_moz_htmlcontext"

Definition at line 60 of file nsDragService.cpp.

Function Documentation

int CancelDrag ( PhRid_t  rid,
unsigned  input_group 

Definition at line 122 of file nsDragService.cpp.

  struct dragevent {
      PhEvent_t hdr;
      PhDragEvent_t drag;
      } ev;
  memset( &ev, 0, sizeof(ev) );
  ev.hdr.type = Ph_EV_DRAG;
  ev.hdr.emitter.rid = Ph_DEV_RID;
  ev.hdr.flags = Ph_EVENT_INCLUSIVE | Ph_EMIT_TOWARD;
  ev.hdr.data_len = sizeof( ev.drag );
  ev.hdr.subtype = Ph_EV_DRAG_COMPLETE;
  ev.hdr.input_group = input_group;
  ev.drag.rid = rid;
  return PhEmit( &ev.hdr, NULL, &ev.drag );

Here is the call graph for this function: