mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1444919 part 1. Remove unused nsIDOMClipboardEvent methods. r=mystor
MozReview-Commit-ID: 39sy6Nnt1oy
This commit is contained in:
parent
aa3ff36ffc
commit
99dc41ddbf
@ -33,21 +33,6 @@ NS_INTERFACE_MAP_END_INHERITING(Event)
|
||||
NS_IMPL_ADDREF_INHERITED(ClipboardEvent, Event)
|
||||
NS_IMPL_RELEASE_INHERITED(ClipboardEvent, Event)
|
||||
|
||||
nsresult
|
||||
ClipboardEvent::InitClipboardEvent(const nsAString& aType,
|
||||
bool aCanBubble,
|
||||
bool aCancelable,
|
||||
nsIDOMDataTransfer* aClipboardData)
|
||||
{
|
||||
nsCOMPtr<DataTransfer> clipboardData = do_QueryInterface(aClipboardData);
|
||||
// Null clipboardData is OK
|
||||
|
||||
ErrorResult rv;
|
||||
InitClipboardEvent(aType, aCanBubble, aCancelable, clipboardData);
|
||||
|
||||
return rv.StealNSResult();
|
||||
}
|
||||
|
||||
void
|
||||
ClipboardEvent::InitClipboardEvent(const nsAString& aType, bool aCanBubble,
|
||||
bool aCancelable,
|
||||
@ -90,13 +75,6 @@ ClipboardEvent::Constructor(const GlobalObject& aGlobal,
|
||||
return e.forget();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
ClipboardEvent::GetClipboardData(nsIDOMDataTransfer** aClipboardData)
|
||||
{
|
||||
NS_IF_ADDREF(*aClipboardData = GetClipboardData());
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
DataTransfer*
|
||||
ClipboardEvent::GetClipboardData()
|
||||
{
|
||||
|
@ -6,17 +6,7 @@
|
||||
#include "domstubs.idl"
|
||||
#include "nsISupports.idl"
|
||||
|
||||
interface nsIDOMDataTransfer;
|
||||
|
||||
[builtinclass, uuid(b54d6144-3980-4895-83c7-82f158bc1cf5)]
|
||||
interface nsIDOMClipboardEvent : nsISupports
|
||||
{
|
||||
readonly attribute nsIDOMDataTransfer clipboardData;
|
||||
|
||||
// The constructor must be used from script to initialize
|
||||
// clipboard events.
|
||||
[noscript] void initClipboardEvent(in DOMString typeArg,
|
||||
in boolean canBubbleArg,
|
||||
in boolean cancelableArg,
|
||||
in nsIDOMDataTransfer clipboardData);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user