зеркало из https://github.com/mozilla/gecko-dev.git
Bug 499008, part 7, merge html drag type constants into one place, r=ehsan
This commit is contained in:
Родитель
57b44554c6
Коммит
990f276bb8
|
@ -86,10 +86,6 @@
|
|||
#include "imgIRequest.h"
|
||||
#include "nsDOMDataTransfer.h"
|
||||
|
||||
// private clipboard data flavors for html copy, used by editor when pasting
|
||||
#define kHTMLContext "text/_moz_htmlcontext"
|
||||
#define kHTMLInfo "text/_moz_htmlinfo"
|
||||
|
||||
class NS_STACK_CLASS DragDataProducer
|
||||
{
|
||||
public:
|
||||
|
|
|
@ -91,10 +91,6 @@ static NS_DEFINE_CID(kCClipboardCID, NS_CLIPBOARD_CID);
|
|||
static NS_DEFINE_CID(kCTransferableCID, NS_TRANSFERABLE_CID);
|
||||
static NS_DEFINE_CID(kHTMLConverterCID, NS_HTMLFORMATCONVERTER_CID);
|
||||
|
||||
// private clipboard data flavors for html copy, used by editor when pasting
|
||||
#define kHTMLContext "text/_moz_htmlcontext"
|
||||
#define kHTMLInfo "text/_moz_htmlinfo"
|
||||
|
||||
// copy string data onto the transferable
|
||||
static nsresult AppendString(nsITransferable *aTransferable,
|
||||
const nsAString& aString,
|
||||
|
|
|
@ -133,9 +133,6 @@ const PRUnichar nbsp = 160;
|
|||
|
||||
static NS_DEFINE_CID(kCParserCID, NS_PARSER_CID);
|
||||
|
||||
// private clipboard data flavors for html copy/paste
|
||||
#define kHTMLContext "text/_moz_htmlcontext"
|
||||
#define kHTMLInfo "text/_moz_htmlinfo"
|
||||
#define kInsertCookie "_moz_Insert Here_moz_"
|
||||
|
||||
#define NS_FOUND_TARGET NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_EDITOR, 3)
|
||||
|
|
|
@ -72,10 +72,6 @@
|
|||
#include "nsEventDispatcher.h"
|
||||
#include "nsContentUtils.h"
|
||||
|
||||
// private clipboard data flavors for html copy/paste
|
||||
#define kHTMLContext "text/_moz_htmlcontext"
|
||||
#define kHTMLInfo "text/_moz_htmlinfo"
|
||||
|
||||
using namespace mozilla;
|
||||
|
||||
NS_IMETHODIMP nsPlaintextEditor::PrepareTransferable(nsITransferable **transferable)
|
||||
|
|
|
@ -63,6 +63,13 @@
|
|||
#define kNativeImageMime "application/x-moz-nativeimage"
|
||||
#define kNativeHTMLMime "application/x-moz-nativehtml"
|
||||
|
||||
// These are used to indicate the context for a fragment of HTML source, such
|
||||
// that some parent structure and style can be preserved. kHTMLContext
|
||||
// contains the serialized ancestor elements, whereas kHTMLInfo are numbers
|
||||
// identifying where in the context the fragment was from.
|
||||
#define kHTMLContext "text/_moz_htmlcontext"
|
||||
#define kHTMLInfo "text/_moz_htmlinfo"
|
||||
|
||||
// the source URL for a file promise
|
||||
#define kFilePromiseURLMime "application/x-moz-file-promise-url"
|
||||
// the destination filename for a file promise
|
||||
|
|
Загрузка…
Ссылка в новой задаче