home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / BrowserDrop.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.7 KB  |  62 lines

  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. /* 
  19.    BrowserDrop.h -- class definition for the browser drop class
  20.    Created: Alastair Gourlay <sgidev@netscape.com>, 1-Jan-96.
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _BROWSER_DROP_H
  26. #define _BROWSER_DROP_H
  27.  
  28. class XFE_BrowserDrop;
  29. class XFE_BrowserFrame;
  30.  
  31. #include "BrowserFrame.h"
  32. #include "DragDrop.h"
  33. #include <libevent.h>
  34.  
  35. //
  36. // XFE_BrowserDrop class
  37. //
  38.  
  39. class XFE_BrowserDrop : public XFE_DropNetscape
  40. {
  41. public:
  42.     XFE_BrowserDrop(Widget,XFE_BrowserFrame*);
  43.     ~XFE_BrowserDrop();
  44. protected:
  45.     XFE_BrowserFrame *_browserFrame;
  46.     char **_jsList;
  47.     int _sameDragSource;
  48.     
  49.     void targets();
  50.     void operations();
  51.     int processTargets(Atom*,const char**,int);
  52.     void jsDropEventCb(int);
  53.     void loadURL(const char*,int);
  54.     void cleanupJsList();
  55.  
  56.     static void JsDropEventCb(MWContext*,LO_Element*,int32,void*,ETEventStatus);
  57.     
  58. private:
  59. };
  60.  
  61. #endif // _BROWSER_DROP_H
  62.